[asterisk-bugs] [Asterisk 0015330]: [patch] Using CHANNEL function from ZOMBIE channel stops Asterisk

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 17 13:45:51 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15330 
====================================================================== 
Reported By:                okrief
Assigned To:                dbrooks
====================================================================== 
Project:                    Asterisk
Issue ID:                   15330
Category:                   Channels/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.0 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-06-15 07:28 CDT
Last Modified:              2009-06-17 13:45 CDT
====================================================================== 
Summary:                    [patch] Using CHANNEL function from ZOMBIE channel
stops Asterisk
Description: 
In extension.ael :
context mylocal [
_ZXXX => {
        &std-exten2(${CALLERID(num)},${EXTEN});
};

macro std-exten2 (caller,callee) {
        Dial(SIP/${callee});
        return;

        catch h {
        NoOp(Channel is ${CHANNEL});
//        NoOp(Peer is ${CHANNEL(peername)});
        }
};

Removing comment make Asterisk exit when channel name is ending with
<ZOMBIE> (after a SIP REFER, for instance).
Maybe CHANNEL function shouldn't be called at all from a ZOMBIE channel
but it shouldn't exit this way.

====================================================================== 

---------------------------------------------------------------------- 
 (0106565) svnbot (reporter) - 2009-06-17 13:45
 https://issues.asterisk.org/view.php?id=15330#c106565 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 201380

U   branches/1.4/channels/chan_sip.c

------------------------------------------------------------------------
r201380 | dbrooks | 2009-06-17 13:45:50 -0500 (Wed, 17 Jun 2009) | 9 lines

Checks for NULL sip_pvt pointer in chan_sip.c->acf_channel_read()

Zombie channels could be passed, and chan_sip.c wasn't checking for it.
Could crash Asterisk. Now checking for NULL pointer.

(closes issue https://issues.asterisk.org/view.php?id=15330)
Reported by: okrief
Tested by: dbrooks

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

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-17 13:45 svnbot         Checkin                                      
2009-06-17 13:45 svnbot         Note Added: 0106565                          
======================================================================




More information about the asterisk-bugs mailing list