[Freeswitch-users] how to know which gateway used after continue_on_fail=true
Muhammad Naseer Bhatti
nbhatti at gmail.com
Thu Dec 22 15:09:44 MSK 2011
So, I would have to parse xml_cdr, for hangup_cause=NORMAL_CLEARING
and billsec > 0, and that will only be the last good leg for the call
was connected? The rest of the legs will return hangup_cause !=
NORMAL_CLEARING
-M
On Thu, Dec 22, 2011 at 2:35 PM, Avi Marcus <avi at avimarcus.net> wrote:
> I usually manually add [gateway=mycarrier] to each bridge leg, that it gets
> logged in leg B.
>
> -Avi
>
>
> On Thu, Dec 22, 2011 at 12:50 PM, Muhammad Naseer Bhatti <nbhatti at gmail.com>
> wrote:
>>
>> Hello, I am using LUA to generate a DP and set channel variables for
>> the bridge. All the variables are set, and LUA exits and the bridge is
>> made outside the LUA script and the call is connected. I am using
>> mod_xml_cdr for CDRs. If I set 1 gateway and bridge the call, I can
>> see that gateway used in the CDR. Problem comes in when I use
>> continue_on_fail=true, and have multiple gateways in bridge. The call
>> fails from the first gateway, and is successfully connected via the
>> second gateway. But I am not able to see the real gateway used in the
>> CDR. I tried enabling log-b-leg in mod_xml_cdr to see what it shows,
>> but I just can't see the gateway which was actually used to bridge the
>> call. In the last_asg, I see both of the gateways passed.
>>
>> How can I know which gateway was used for the bridge? And no, I am NOT
>> using mod_lcr.
>>
>>
>> -Muhammad
>>
>> _________________________________________________________________________
>> 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
>
>
>
> _________________________________________________________________________
> 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
>
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list