Re: [asterisk-users] Executing commands even if user hangs up.
Jim Canfield wrote: 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 If you're always running your post processing script after the call is over, I'd suggest moving the System command to the h extension. The h extension is called on hangup, so it should clear up your issue. Mark Michelson ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing commands even if user hangs up.
Have you tried adding an 'h' extension in addition? If the caller hangs up in the middle of priority 1 of extension 123, it should then jump to priority 1 of extension h and continue. ;Add to the test-dictation context: exten = h,1,System(post_processing_script.sh) OR ;Not tested, but maybe just the following single line instead? exten = h,1,Goto(123, 2) Jim Canfield wrote: 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 ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] Executing commands even if user hangs up.
Mojo with Horan Company, LLC wrote: Have you tried adding an 'h' extension in addition? If the caller hangs up in the middle of priority 1 of extension 123, it should then jump to priority 1 of extension h and continue. Thanks, That works perfectly. ___ --Bandwidth and Colocation Provided by http://www.api-digital.com-- asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users