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

Mike Burlingame mike.burlingame at me.com
Wed Sep 5 21:18:39 MSD 2012


as promised here is the update testing and enabling {sip_wait_for_aleg_ack=true} causes a log delay before the audio starts to flow to the B-Leg endpoint with multi 200 OK's being sent to FS from the B-Leg as well as an abnormally long delay in getting an ACK from the A-Leg

I can open a JIRA case on this and provide the console log file / PCAP's ect if that would help


Call Flow with out {sip_wait_for_aleg_ack=true}
  0.000000 A-LEG -> FreeSwitch SIP/SDP Request: INVITE sip:+13605551212 at A-LEG:5060, with session description
  0.000652 FreeSwitch -> A-LEG SIP Status: 100 Trying
  0.042837 FreeSwitch -> B-Leg SIP/SDP Request: INVITE sip:13605551212 at B-Leg, with session description
  0.043059 B-Leg -> FreeSwitch SIP Status: 100 Giving a try
  0.290947 B-Leg -> FreeSwitch SIP Status: 180 Ringing
  0.292890 FreeSwitch -> A-LEG SIP Status: 180 Ringing
  0.490220 B-Leg -> FreeSwitch SIP Status: 180 Ringing
  4.481038 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  4.482310 FreeSwitch -> B-Leg SIP Request: ACK sip:13605551212 at B-Leg
  4.483474 FreeSwitch -> A-LEG SIP/SDP Status: 200 OK, with session description
  4.533691 A-LEG -> FreeSwitch SIP Request: ACK sip:+13605551212 at FreeSwitch:5070;transport=udp
 19.953061 A-LEG -> FreeSwitch SIP Request: BYE sip:+13605551212 at FreeSwitch:5070;transport=udp
 19.954592 FreeSwitch -> A-LEG SIP Status: 200 OK
 19.955454 FreeSwitch -> B-Leg SIP Request: BYE sip:13605551212 at B-Leg
 19.956014 B-Leg -> FreeSwitch SIP Status: 200 OK

Call Flow with {sip_wait_for_aleg_ack=true} enabled
  0.000000 A-LEG -> FreeSwitch SIP/SDP Request: INVITE sip:+13605551212 at A-LEG:5060, with session description
  0.000651 FreeSwitch -> A-LEG SIP Status: 100 Trying
  0.039455 FreeSwitch -> B-Leg SIP/SDP Request: INVITE sip:13605551212 at B-Leg, with session description
  0.039709 B-Leg -> FreeSwitch SIP Status: 100 Giving a try
  0.244269 B-Leg -> FreeSwitch SIP Status: 180 Ringing
  0.245607 FreeSwitch -> A-LEG SIP Status: 180 Ringing
  0.363325 B-Leg -> FreeSwitch SIP Status: 180 Ringing
  4.718173 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  4.918915 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  5.117917 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  5.518902 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  6.318053 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
  7.917921 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
 11.118917 B-Leg -> FreeSwitch SIP/SDP Status: 200 OK, with session description
 15.102917 FreeSwitch -> B-Leg SIP Request: ACK sip:13605551212 at B-Leg
 15.104488 FreeSwitch -> A-LEG SIP/SDP Status: 200 OK, with session description
 15.173265 A-LEG -> FreeSwitch SIP Request: ACK sip:+13605551212 at FreeSwitch:5070;transport=udp
 29.566504 A-LEG -> FreeSwitch SIP Request: BYE sip:+13605551212 at FreeSwitch:5070;transport=udp
 29.568902 FreeSwitch -> A-LEG SIP Status: 200 OK
 29.570603 FreeSwitch -> B-Leg SIP Request: BYE sip:13605551212 at B-Leg
 29.571240 B-Leg -> FreeSwitch SIP Status: 200 OK

On Aug 31, 2012, at 1:52 PM, Mike Burlingame <mike.burlingame at me.com> wrote:

> No worries I will be out this weekend for the long weekend I will work on getting the test box upgraded and a test case setup on Tuesday I will report back the results mid to late next week and provided everything works as I hope it will I will be happy to pay the Wiki tax :)
> 
> 
> On Aug 31, 2012, at 1:42 PM, Michael Collins <msc at freeswitch.org> wrote:
> 
>> 
>> 
>> On Fri, Aug 31, 2012 at 12:59 PM, Mike Burlingame <mike.burlingame at me.com> wrote:
>> Cool I will nail that up on my test box and see if that works
>> 
>> Please report back on whether it works or not and then be prepared to pay the wiki tax. :) I'll be glad to assist with getting this documented although I think you're in the best position to give that documentation some real-world context.
>> 
>> -MC
>> _________________________________________________________________________
>> 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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120905/bd26f220/attachment-0001.html 


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