[asterisk-bugs] [Asterisk 0010037]: SIP Reinvite Packets incorrect Sequence causes no audio when more than 1 softswitch in callpath.

noreply at bugs.digium.com noreply at bugs.digium.com
Thu Feb 14 13:41:32 CST 2008


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=10037 
====================================================================== 
Reported By:                cyberglobe
Assigned To:                file
====================================================================== 
Project:                    Asterisk
Issue ID:                   10037
Category:                   Core/RTP
Reproducibility:            always
Severity:                   block
Priority:                   normal
Status:                     resolved
Asterisk Version:            1.2.18  
SVN Branch (only for SVN checkouts, not tarball releases): N/A  
SVN Revision (number only!):  
Disclaimer on File?:        No 
Request Review:              
Resolution:                 suspended
Fixed in Version:           
====================================================================== 
Date Submitted:             06-22-2007 07:03 CDT
Last Modified:              02-14-2008 13:41 CST
====================================================================== 
Summary:                    SIP Reinvite Packets incorrect Sequence causes no
audio when more than 1 softswitch in callpath.
Description: 

Working with Thinktel to debug why our audio stream gets stuck with our
UAC connecting to their UAC but their UAC still stuck with Asterisk, we had
stumbled upon a solution by coincidence.

When our network was overloaded, our SIP packets had to retransmit the 103
REINVITE request after the Initial 102 REINVITE request was completed. 
This caused us to establish a two way audio link without any problem.  When
the 103 INVITE request never failed and did not retransmit, it always
becomes a blocker.

Basically, the issue is with the sequence how the 103 REINVITE for RTP
Bridging request gets sent to Thinktel.  The packet gets sent too early and
causes no audio either way.  (My UAC is transmitting to their UAC but since
their UAC is stuck talking to My Asterisk, ignores my UAC's Audio Stream) 
When the offending packet is retransmitted, it establishes 2 way audio
without any problems.

I have managed to create 3 different instances where it caused the
retransmission of the 103 reinvite request and all 3 times were able to
successfully establish two-way audio between the UACs.

Therefore the diagram for this configuration problem is as follows:
<MY UAC>-<MY-Asterisk>-<TT-OpenSER>-<TT-MetaSwitch>-<TT-UAC>
When SIP reinvite fails, the call stream is stuck as follows:
<MY-UAC>>>>>>|<TT-UAC>--<MY-Asterisk>
My UAC transmits to TT-UAC but TT-UAC ignores/blocks the request cause its
channel is opened for sending and receiving to MY Asterisk Box.
When we cause a retransmit request to ensure that the packets were being
retransmitted, the RTP Bridge worked and established as follows:
<My-UAC>--<TT-UAC>

I have requested Thinktel to address this issue via a patch on their
OpenSER box until Digium is able to patch this up by checking for the
following conditions:
- INVITE sip: request
- User-Agent: contains Asterisk
- X-asterisk-info contains (RTP bridge)
When it sees this first initial packet, it would drop this packet
altogether.  This would force Asterisk to retransmit this packet and due to
the retransmit, would cause the RTP Bridging to function.

However, this is just a patch to a problem that needs to be addressed by
Digium.  This could also potentially fix the existing problems that has
plagued the reinviting requests with Asterisk PBX with other vendors.  

BONUS FEATURE if fixed: When we were retransmitting the reinvite request,
the bonus was that the RTP Stream Reinvite was SEEMLESS.  We did not hear
ANY 100-200ms interruption in audio during the audio transfer what we
currently experience when an RTP Bridging occurs when there is only 1 or 2
Servers inbetween 2 UACs.

This issue occurs when there are 3 or more Servers that the SIP
Information must pass through.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0009986 RTP Reinvite fails when more than 1 sof...
====================================================================== 

---------------------------------------------------------------------- 
 file - 02-14-08 13:41  
---------------------------------------------------------------------- 
Suspended due to lack of response with vitally needed information by
alexcos. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
02-14-08 13:41  file           Note Added: 0082263                          
======================================================================




More information about the asterisk-bugs mailing list