[asterisk-users] Executing commands even if user hangs up.

Jim Canfield jcanfield at tshmail.com
Wed Oct 3 13:25:15 CDT 2007


Greetings,

I have a dialplan that calls the dictate application, but I want to do 
some post-processing on the RAW file created.  The post processing is 
working fine as long as the dictation application exits gracefully, but 
fails when the user simply hangs up.

How can I make sure the system() command is run regardless?

Example:

[test-dictation]
exten => 123,1,Dictate(/tmp/dictate)
exten => 123,2,System(post_processing_script.sh)
exten => 123,3,Wait,1
exten => 123,4,Hangup

Thanks

-jc





More information about the asterisk-users mailing list