[asterisk-bugs] [Asterisk 0018737]: [patch] MWI subscription to remote server crashes during parse

Asterisk Bug Tracker noreply at bugs.digium.com
Mon May 30 14:27:56 CDT 2011


The following issue has been UPDATED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=18737 
====================================================================== 
Reported By:                cmaj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   18737
Category:                   Channels/chan_sip/Subscriptions
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           1.8.2.3 
JIRA:                       SWP-3051 
Regression:                 No 
Reviewboard Link:            
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2011-02-02 20:50 CST
Last Modified:              2011-05-30 14:27 CDT
====================================================================== 
Summary:                    [patch] MWI subscription to remote server crashes
during parse
Description: 
Incorrect parsing in sip_subscribe_mwi was crashing Asterisk.

In sip.conf, just below your "register =>" lines and before peer/user
definitions, try adding:

mwi => 1234 at other_host/1234

...then issue "sip reload" - should crash.

Partial gdb backtrace:

(gdb) bt
https://issues.asterisk.org/view.php?id=0  0x00007fa68aabb990 in strchr () from
/lib/libc.so.6
https://issues.asterisk.org/view.php?id=1  0x00007fa65c0d4af7 in
sip_subscribe_mwi (value=0x0, lineno=0) at
chan_sip.c:7594

Attached patch corrects the problem.
======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0018350 [patch] asterisk crash when setting out...
====================================================================== 

---------------------------------------------------------------------- 
 (0135563) cmaj (reporter) - 2011-05-30 14:27
 https://issues.asterisk.org/view.php?id=18737#c135563 
---------------------------------------------------------------------- 
Re-opened because patch in this bug contains support for TCP MWI
subscriptions as well as the fix covered by the related bug. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2011-05-30 14:27 cmaj           Note Added: 0135563                          
2011-05-30 14:27 cmaj           Status                   closed => new       
2011-05-30 14:27 cmaj           Resolution               duplicate => reopened
======================================================================




More information about the asterisk-bugs mailing list