[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:39:30 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:39 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.

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

---------------------------------------------------------------------- 
 (0106572) svnbot (reporter) - 2009-06-17 14:39
 https://issues.asterisk.org/view.php?id=15330#c106572 
---------------------------------------------------------------------- 
Repository: asterisk
Revision: 201444

_U  branches/1.6.1/
U   branches/1.6.1/channels/chan_sip.c

------------------------------------------------------------------------
r201444 | dbrooks | 2009-06-17 14:39:29 -0500 (Wed, 17 Jun 2009) | 23
lines

Merged revisions 201381 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/trunk

................
  r201381 | dbrooks | 2009-06-17 14:15:07 -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=201444 

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




More information about the asterisk-bugs mailing list