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@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@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