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

Asterisk Bug Tracker noreply at bugs.digium.com
Wed Jun 17 14:15:08 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:                     closed
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:              
Resolution:                 fixed
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-06-15 07:28 CDT
Last Modified:              2009-06-17 14:15 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.

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

---------------------------------------------------------------------- 
 (0106568) svnbot (reporter) - 2009-06-17 14:15
 https://issues.asterisk.org/view.php?id=15330#c106568 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 201381

_U  trunk/
U   trunk/channels/chan_sip.c

------------------------------------------------------------------------
r201381 | dbrooks | 2009-06-17 14:15:08 -0500 (Wed, 17 Jun 2009) | 16
lines

Merged revisions 201380 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
  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=201381 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-06-17 14:15 svnbot         Checkin                                      
2009-06-17 14:15 svnbot         Note Added: 0106568                          
======================================================================




More information about the asterisk-bugs mailing list