[asterisk-bugs] [Asterisk 0018408]: [patch] When a call going out an NT-PTMP port gets rejected, Asterisk crashes

Asterisk Bug Tracker noreply at bugs.digium.com
Fri Apr 1 18:15:44 CDT 2011


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18408 
====================================================================== 
Reported By:                wimpy
Assigned To:                rmudgett
====================================================================== 
Project:                    Asterisk
Issue ID:                   18408
Category:                   Channels/chan_misdn
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
JIRA:                       SWP-2679 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2010-12-01 08:54 CST
Last Modified:              2011-04-01 18:15 CDT
====================================================================== 
Summary:                    [patch] When a call going out an NT-PTMP port gets
rejected, Asterisk crashes
Description: 
When a call going out an NT-PTMP port gets rejected, Asterisk crashes.

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
related to          0015952 Sometimes asterisk Crashes in the hangu...
====================================================================== 

---------------------------------------------------------------------- 
 (0133297) svnbot (reporter) - 2011-04-01 18:15
 https://issues.asterisk.org/view.php?id=18408#c133297 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 312509

U   branches/1.8/channels/chan_misdn.c

------------------------------------------------------------------------
r312509 | rmudgett | 2011-04-01 18:15:43 -0500 (Fri, 01 Apr 2011) | 22
lines

When a call going out an NT-PTMP port gets rejected, Asterisk crashes.

If a call is sent to an ISDN phone that rejects the call with
RELEASE_COMPLETE(cause: call reject(21), or busy(17)) Asterisk crashes.

I could not get my setup to crash.  However, I could see the possibility
from a race condition between queuing an AST_CONTROL_BUSY to the core and
then queueing an AST_CONTROL_HANGUP.  If the AST_CONTROL_BUSY is processed
before the AST_CONTROL_HANGUP is queued, the ast_channel could be
destroyed out from under chan_misdn.

Avoid this particular crash scenario by not queueing the
AST_CONTROL_HANGUP if the AST_CONTROL_BUSY was queued.

(closes issue https://issues.asterisk.org/view.php?id=18408)
Reported by: wimpy
Patches:
      issue18408_v1.8.patch uploaded by rmudgett (license 664)
Tested by: rmudgett, wimpy

JIRA SWP-2679

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=312509 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-04-01 18:15 svnbot         Checkin                                      
2011-04-01 18:15 svnbot         Note Added: 0133297                          
======================================================================




More information about the asterisk-bugs mailing list