<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, May 23, 2013 at 4:22 PM, Clinton Goudie-Nice <span dir="ltr">&lt;<a href="mailto:cgoudie@getjive.com" target="_blank">cgoudie@getjive.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">When you make a bridge command using esl, where you specify multiple gateways or sip dials separated by or bars, you can&#39;t figure out which gateway was used.<div>
<br></div><div>For example, if you bridge to something like this:<br>
<div>







<p>sofia/gateway/SBC-GW2/<a href="tel:%2B18019600000" value="+18019600000" target="_blank">+18019600000</a>|sofia/gateway/SBC-GW1/<a href="tel:%2B18019600000" value="+18019600000" target="_blank">+18019600000</a></p></div>
</div></div></blockquote><div>Some have used this technique:<br><br>[mygw=gw2]sofia/gateway/SBC-GW2/<a href="tel:%2B18019600000" value="+18019600000" target="_blank">+18019600000</a>|[mygw=gw1]sofia/gateway/SBC-GW1/<a href="tel:%2B18019600000" value="+18019600000" target="_blank">+18019600000</a><br>
</div><div> <br></div><div>After the bridge, the chan var mygw will contain the value &quot;gw2&quot; or &quot;gw1&quot; depending on which dialstring connected the call.<br></div><div>-MC<br><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div dir="ltr"><div><div><p>The call could be bridged to either GW2 or GW1. </p><p>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.</p>

<p>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&#39;t devise a way to access that data using the org.freeswitch.esl.client library, and even if I could, I still don&#39;t want all events for this system.</p>

<p>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?</p>

<p>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.</p><p><br></p><p>Thanks for the help,</p>
<p><br></p><p>Clint</p><p><br></p><p><br></p>







</div></div></div>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Michael S Collins<br>Twitter: @mercutioviz<br><a href="http://www.FreeSWITCH.org" target="_blank">http://www.FreeSWITCH.org</a><br><a href="http://www.ClueCon.com" target="_blank">http://www.ClueCon.com</a><br>
<a href="http://www.OSTAG.org" target="_blank">http://www.OSTAG.org</a><br><br>
</div></div>