Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Michael Jerris
There is no way to make the dialplan continue to run when you hang up the a leg, that is correct. Mike On Dec 26, 2008, at 3:20 PM, Frank @ Impact wrote: > I also tried to add this > > > > to keep the dialplan process on a-leg hangup. But that did not work > either. > > Svn 10960 is what I a

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Frank @ Impact
I also tried to add this to keep the dialplan process on a-leg hangup. But that did not work either. Svn 10960 is what I am testing. -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Michael Jerr

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Michael Jerris
This should work, is there any debug output at hangup that would indicate why it doesn't run? Mike On Dec 26, 2008, at 2:57 PM, Frank @ Impact wrote: > I also tried this without success. This will not fire at all > regardless > of who hangs up. > > > > __

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Michael Collins
Frank, I'm going to check this out as soon as I can get my test system back on line. Thanks. -MC P.S. - what FS version and OS version are you on? I test with latest trunk and CentOS 5.2 On Fri, Dec 26, 2008 at 11:57 AM, Frank @ Impact wrote: > I also tried this without success. This will not

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Michael Jerris
This is correct, if the a leg hangs up it will not continue to run the dialplan actions. On Dec 26, 2008, at 11:57 AM, Frank @ Impact wrote: > I have confirmed that this system call does not fire if the calling > party hangs up the phone first. Is there a way to get the script to > fire regar

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Frank @ Impact
I also tried this without success. This will not fire at all regardless of who hangs up. -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.freeswitch.org] On Behalf Of Frank @ Impact -Original Message- From: freesw

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Frank @ Impact
I have confirmed that this system call does not fire if the calling party hangs up the phone first. Is there a way to get the script to fire regardless of who hangs up first? -F -Original Message- From: freeswitch-users-boun...@lists.freeswitch.org [mailto:freeswitch-users-boun...@lists.

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-26 Thread Frank @ Impact
All I am passing into the script is the recording file name. I tried using the system command right after the bridge command but before a hangup command. Thusly, The problem I am seeing is that sometimes this script gets run and sometimes it does not. I think it has to do maybe with which e

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-23 Thread Michael S Collins
I'm pretty sure that this is doable. Could you give us a hint as to what arguments you want to send? For example, do you have one or more channel variables you'd like to pass to the shell script? -MC Sent from my iPhone On Dec 23, 2008, at 6:25 PM, Jason White wrote: > Frank @ Impact wrot

Re: [Freeswitch-users] api_hangup_hook and bash

2008-12-23 Thread Jason White
Frank @ Impact wrote: > Can this command be used to run a bash script? Based on information at the wiki, this should be possible; use the system command. http://wiki.freeswitch.org/wiki/Misc._Dialplan_Tools_system ___ Freeswitch-users mailing list

[Freeswitch-users] api_hangup_hook and bash

2008-12-23 Thread Frank @ Impact
Can this command be used to run a bash script? I wanted to do some sox processing on some recordings after the bridge ends and thought I should use this command. But would like to do it in bash. Is there a better way? If this is the right way, what is the syntax for calling the bash script