[Freeswitch-users] ESL using bridge app doesn't return which gateway was used

Michael Collins msc at freeswitch.org
Tue May 28 20:16:09 MSD 2013


On Thu, May 23, 2013 at 4:22 PM, Clinton Goudie-Nice <cgoudie at getjive.com>wrote:

> When you make a bridge command using esl, where you specify multiple
> gateways or sip dials separated by or bars, you can't figure out which
> gateway was used.
>
> For example, if you bridge to something like this:
>
> sofia/gateway/SBC-GW2/+18019600000|sofia/gateway/SBC-GW1/+18019600000
>
Some have used this technique:

[mygw=gw2]sofia/gateway/SBC-GW2/+18019600000
|[mygw=gw1]sofia/gateway/SBC-GW1/+18019600000

After the bridge, the chan var mygw will contain the value "gw2" or "gw1"
depending on which dialstring connected the call.
-MC

The call could be bridged to either GW2 or GW1.
>
> When the CHANNEL_BRIDGE event is returned, you can see the original string
> in variable_current_application_data, and you may be able to infer the
> destination based on IP address, but nothing clearly says what gateway is
> used.
>
> If you turn on the all events firehose, you can see the CHANNEL_CREATE
> event come over the socket, and it does contain variable_sip_gateway_name
> with the actual name of the gateway, however I can't devise a way to access
> that data using the org.freeswitch.esl.client library, and even if I could,
> I still don't want all events for this system.
>
> Is it possible to get this information returned in any meaningful way
> through the ESL layer, either by an api command to query, or the setting of
> a variable that will give me back which gateway a bridge was performed
> through?
>
> If none of that is possible, this sounds worthy of filing a bug to return
> the variable_sip_gateway_name in the CHANNEL_BRIDGE event.
>
>
> Thanks for the help,
>
>
> Clint
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
> 
> 
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>


-- 
Michael S Collins
Twitter: @mercutioviz
http://www.FreeSWITCH.org
http://www.ClueCon.com
http://www.OSTAG.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20130528/781e1fbe/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list