[asterisk-bugs] [Asterisk 0016095]: With delayreject=yes calls sometimes fail

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Oct 19 05:49:24 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=16095 
====================================================================== 
Reported By:                alecdavis
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   16095
Category:                   Channels/chan_iax2
Reproducibility:            sometimes
Severity:                   minor
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-10-19 04:18 CDT
Last Modified:              2009-10-19 05:49 CDT
====================================================================== 
Summary:                    With delayreject=yes calls sometimes fail
Description: 
This is repeatable about 1 in https://issues.asterisk.org/view.php?id=11#c10
calls

Every call succeeds when commenting out delayreject=yes in iax.conf.
 
Or with delayreject=yes set in iax.conf but also commenting out the
following code in the 3 places iax2.c fixes it.<pre>
/* For security, always ack immediately */
                                if (delayreject)
                                       
send_command_immediate(iaxs[fr->callno], AST_FRAME_IAX, IAX_COMMAND_ACK,
fr->ts, NULL, 0,fr->iseqno);</pre>

Obvoiusly cannot stay this way, but the Security fix that applied these
changes looks like it broke IAX.
====================================================================== 

---------------------------------------------------------------------- 
 (0112409) alecdavis (reporter) - 2009-10-19 05:49
 https://issues.asterisk.org/view.php?id=16095#c112409 
---------------------------------------------------------------------- 
Please remove iax_debug_siteb.txt I didn't manage to capture both ends.

Using iax_debug_sitea_cap2.txt and iax_debug_siteb_cap2.txt, both captured
at same time.

sitea is the originating site.
siteb is the terminating site.

The receive sequence gets out of order at site A. Timestamps are right,
but received apparently out of order.

Site A, good call:
  TX NEW
  RX ACK 
  RX AUTHREQ
  TX AUTHREP...

Site A, failed call:
  TX NEW
  RX AUTHREQ
  RX ACK 
  TX INVAL... 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-10-19 05:49 alecdavis      Note Added: 0112409                          
======================================================================




More information about the asterisk-bugs mailing list