Hello, I have a scenario where I first place an incoming call into a FIFO, and then pop it out to bridge it to another leg. In a different thread in my application, I keep monitoring the channels, to ensure that my own application is in sync with whatever is happening within freeswitch. What I see is, after the call has been removed from the FIFO, and bridged, show channels still reports application as FIFO. This confuses my application, as it thinks there should be a call in the FIFO, but when it calls FIFO count, the count returned is 0. My question is, is there a way for me to differentiate, in the show channels output, if a call is indeed in a FIFO, or if it has already been popped out and bridged? One difference that I see, between the outputs of show channel before and after the bridge, is 'callee_direction' - before the call is bridged, this is generally blank, but once the call has been bridged, it is either SEND or RECV. Can I use this to differentiate between the two? Thanks!
Tracking call state via ESL events might work better. On 22 April 2013 08:36, Siri MM <sirimmfs@gmail.com> wrote:
Hello,
I have a scenario where I first place an incoming call into a FIFO, and then pop it out to bridge it to another leg. In a different thread in my application, I keep monitoring the channels, to ensure that my own application is in sync with whatever is happening within freeswitch. What I see is, after the call has been removed from the FIFO, and bridged, show channels still reports application as FIFO. This confuses my application, as it thinks there should be a call in the FIFO, but when it calls FIFO count, the count returned is 0.
My question is, is there a way for me to differentiate, in the show channels output, if a call is indeed in a FIFO, or if it has already been popped out and bridged? One difference that I see, between the outputs of show channel before and after the bridge, is 'callee_direction' - before the call is bridged, this is generally blank, but once the call has been bridged, it is either SEND or RECV. Can I use this to differentiate between the two?
Thanks!
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Siri MM
-
Steven Ayre