[Freeswitch-users] B-Leg / A-Leg Race Condition

Anthony Minessale anthony.minessale at gmail.com
Fri Aug 31 23:50:08 MSD 2012


An idea I had you can test if you update to latest

set the variable sip_wait_for_aleg_ack on the b leg in the {} when you
make the outbound call

<action application="bridge"
data="{sip_wait_for_aleg_ack=true}sofia/internal/foo at bar.com"/>

In theory this should make the B leg delay sending the ACK until it
sees that the A leg has recv'd an ack



On Fri, Aug 31, 2012 at 2:33 PM, Mike Burlingame <mike.burlingame at me.com> wrote:
> I do have an OpenSIPs proxy in front of and behind the A and B Leg's - but
> the issue still seems to be in FS
>
> Sonus_UAC --> OpenSIPs --> Freeswitch --> OpenSIPs --> Broadsoft_M6
>
> Log and SIP trace from FS Log file posted to PasteBin:
> http://pastebin.freeswitch.org/19799
>
>
> On Aug 31, 2012, at 12:14 AM, SamyGo <govoiper at gmail.com> wrote:
>
> Well that narrow downs the possible solutions to doing some stuff on FS only
> ! - I really think that Stopping or applying a work-around for the re-invite
> from Broadsoft will get this fixed. I did some googling on the SIP 491 code
> and re-invites in FS and mostly they point to session timers or some
> media_bridging option in dialplan.
>
>
> On Fri, Aug 31, 2012 at 12:03 PM, Mike Burlingame <mike.burlingame at me.com>
> wrote:
>>
>> The Sonus and M6 are out of my control they belong to my upstream and
>> downstream so I have no access to them
>>
>> Broadsoft support will not work this issue because FS ACKs the 200 OK so
>> dialog is completed at least on the B-Leg so that's when the M6 sends the
>> 2nd invite however the dialog has not completed on the A-Leg but FS still
>> passes the Invite along resulting in the 491
>>
>>
>> Sent from my iPhone 4S
>>
>> On Aug 30, 2012, at 11:42 PM, SamyGo <govoiper at gmail.com> wrote:
>>
>> OK, and can you see whats happening inside the SONUS when it gets the
>> second invite (debug logs etc)? Can you control the M6 to stop re-invites !?
>>
>> On Fri, Aug 31, 2012 at 10:29 AM, Mike Burlingame <mike.burlingame at me.com>
>> wrote:
>>>
>>> Sure I will put logs and sip dump up tomorrow A-Leg == Sonus B-Leg ==
>>> Broadsoft M6
>>>
>>> Sent from my iPhone 4S
>>>
>>> On Aug 30, 2012, at 10:24 PM, SamyGo <govoiper at gmail.com> wrote:
>>>
>>> Hi,
>>> Can you please manage a proper sip trace for this ! I'd really love to
>>> troubleshoot and analyse the sip traces.
>>> What is the equipment on your A-leg ?
>>>
>>> BR
>>> Sammy
>>>
>>>
>>>
>>> On Fri, Aug 31, 2012 at 3:28 AM, Mike Burlingame <mike.burlingame at me.com>
>>> wrote:
>>>>
>>>> I would like to add an update to this and maybe someone has some other
>>>> suggestions - It does look like that FS is disconnecting the call with cause
>>>> code 31  [NORMAL_UNSPECIFIED] I did not notice the time stamp difference on
>>>> the Bye when I first looked at the log's
>>>>
>>>> The basis of the issue still stands a 491 Results in the B-Leg being
>>>> disconnected
>>>>
>>>> On Aug 24, 2012, at 12:53 PM, Mike Burlingame <mike.burlingame at me.com>
>>>> wrote:
>>>>
>>>> We are seeing some instances when we send a invite from the B-Leg back
>>>> to FS and FS passes the invite to the A-Leg that the dialog on the A-Leg has
>>>> not fully completed yet causing a return of a 491 from the A-Leg side
>>>> causing the call to be disconnected. wanted to see if anyone else has seen
>>>> something like this while running FS and if anyone had any suggestions on a
>>>> fix?
>>>>
>>>> A-Leg
>>>> Invite into Freeswitch
>>>> 100 Trying back from FS to A-Leg
>>>> 180 Ringing from FS to A-Leg
>>>> 200 OK from FS to A-Leg at 15:08:14.638799
>>>> Invite from FS to A-Leg (From B-Leg below) at 15:08:14.749515
>>>> 100 Giving a try form A-Leg to FS at 15:08:14.749757
>>>> 491 From A-Leg to FS at 15:08:14.780968
>>>> ACK from FS to A-Leg at 15:08:14.781102
>>>> ACK from FS to A-Leg at 15:08:14.797143
>>>> BYE from A-LEG to FS 15:11:10.791963
>>>>
>>>>    481 Call Does Not Exist back to A-LEG
>>>>
>>>>
>>>> B-Leg
>>>> Invite from Freeswitch to B-Leg
>>>> 100 Giving a try from B-Leg
>>>> 180 Ringing from B-Leg
>>>> 200 OK  from B-Leg at 15:08:14.635670
>>>> ACK from FS to B-Leg  at 15:08:14.637044
>>>> Invite from B-Leg to FS at 15:08:14.748623
>>>> 100 Trying from FS to B-Leg at 15:08:14.748954
>>>> 491 from FS to B-Leg at 15:08:14.782169
>>>> ACK from B-Leg to FS at 15:08:14.782372
>>>> BYE from FS to B-Leg at 15:08:14.790714 with Cause Code 31
>>>>
>>>>
>>>>
>>>>
>>>> _________________________________________________________________________
>>>> 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
>>>
>>>
>>> _________________________________________________________________________
>>> 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
>>
>>
>> _________________________________________________________________________
>> 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
>
>
>
> _________________________________________________________________________
> 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
>



-- 
Anthony Minessale II

FreeSWITCH http://www.freeswitch.org/
ClueCon http://www.cluecon.com/
Twitter: http://twitter.com/FreeSWITCH_wire

AIM: anthm
MSN:anthony_minessale at hotmail.com
GTALK/JABBER/PAYPAL:anthony.minessale at gmail.com
IRC: irc.freenode.net #freeswitch

FreeSWITCH Developer Conference
sip:888 at conference.freeswitch.org
googletalk:conf+888 at conference.freeswitch.org
pstn:+19193869900



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