<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 class="">sofia/gateway/SBC-GW2/+18019600000|sofia/gateway/SBC-GW1/+18019600000</p><p class="" style>The call could be bridged to either GW2 or GW1. </p><p class="" style>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 class="" style>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 class="" style>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 class="" style>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 class="" style><br></p><p class="" style>Thanks for the help,</p>
<p class="" style><br></p><p class="" style>Clint</p><p class="" style><br></p><p class="" style><br></p>







</div></div></div>