<div dir="ltr">I usually manually add [gateway=mycarrier] to each bridge leg, that it gets logged in leg B.<div><br clear="all"><div dir="ltr"><span style="font-family:Verdana,Arial,Helvetica,sans-serif"><span style="font-size:small">-Avi</span></span></div>
<br><br><div class="gmail_quote">On Thu, Dec 22, 2011 at 12:50 PM, Muhammad Naseer Bhatti <span dir="ltr"><<a href="mailto:nbhatti@gmail.com">nbhatti@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hello, I am using LUA to generate a DP and set channel variables for<br>
the bridge. All the variables are set, and LUA exits and the bridge is<br>
made outside the LUA script and the call is connected. I am using<br>
mod_xml_cdr for CDRs. If I set 1 gateway and bridge the call, I can<br>
see that gateway used in the CDR. Problem comes in when I use<br>
continue_on_fail=true, and have multiple gateways in bridge. The call<br>
fails from the first gateway, and is successfully connected via the<br>
second gateway. But I am not able to see the real gateway used in the<br>
CDR. I tried enabling log-b-leg in mod_xml_cdr to see what it shows,<br>
but I just can't see the gateway which was actually used to bridge the<br>
call. In the last_asg, I see both of the gateways passed.<br>
<br>
How can I know which gateway was used for the bridge? And no, I am NOT<br>
using mod_lcr.<br>
<br>
<br>
-Muhammad<br>
<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>
</blockquote></div><br></div></div>