[Freeswitch-users] Clarificaton on record_post_process_exec_api
Sean Devoy
sdevoy at bizfocused.com
Thu Mar 13 03:41:02 MSK 2014
Hi,
I am trying to run a bash shell script when a recording completes. I tried it like I do for fax completion, but it either does not trigger or fails to run.
For faxes I have:
<action application="set" data="api_hangup_hook=system /usr/local/freeswitch/scripts/emailfax.sh 410-420-7778 /tmp/${uuid}.rxfax.tiff sdevoy at bizfocused.com" />
So I guessed recordings would work like:
<action application="set" data="record_post_process_exec_api=system /usr/local/freeswitch/scripts/emailwav.sh 410-420-7777 /tmp/recordings/${destination_number}.wav sdevoy at bizfocused.com" />
I tried with a space and with a ":" following the "system" api name.
How can I run achieve this? I will update the wiki if someone will explain it.
The complete wiki contents are currently:
Post Processing Recordings in the Dialplan
* record_post_process_exec_api
* record_post_process_exec_app
These two variables allow the postprocessing of recorded audio. The reason this is required is if the A leg hangs up first in a call, the dialplan stops being processed, and then you aren't able to take action on the file that was recorded. These variables take the form of:
<action application="set" data="record_post_process_exec_api=some_api_app:api_app args" />
<action application="set" data="record_post_process_exec_app=some_app:app args" />
Thanks,
Sean
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140313/18b107fa/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.gif
Type: image/gif
Size: 70 bytes
Desc: image001.gif
Url : http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20140313/18b107fa/attachment-0001.gif
Join us at ClueCon 2013 Aug 6-8, 2013
More information about the FreeSWITCH-users
mailing list