[asterisk-bugs] [Asterisk 0014483]: crash when calling macro with empty argument

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 16 14:27:06 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=14483 
====================================================================== 
Reported By:                pj
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   14483
Category:                   Core/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     new
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 171528 
Request Review:              
====================================================================== 
Date Submitted:             2009-02-16 08:47 CST
Last Modified:              2009-02-16 14:27 CST
====================================================================== 
Summary:                    crash when calling macro with empty argument
Description: 
this simple ael dialplan macro expecting some argument, when I call this
macro from dialplan passing empty argument to this macro, asterisk crashes
immediatelly
In my example below, RDNIS value was empty


macro volej_vmail( linka ) {
    if (${MAILBOX_EXISTS(${linka})})
      Voicemail(${linka});
    return;
}

845/_ZXX => {
        NoOP(RDNIS: ${CALLERID(rdnis)} VOLAJICI: ${CALLERID(all)});
        &volej_vmail(${CALLERID(rdnis)});
}

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

---------------------------------------------------------------------- 
 (0100194) pj (reporter) - 2009-02-16 14:27
 http://bugs.digium.com/view.php?id=14483#c100194 
---------------------------------------------------------------------- 
you have right, Asterisk SVN-trunk-r176174 isn't affected, 
so please close this bugreport, thanks! 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-16 14:27 pj             Note Added: 0100194                          
======================================================================




More information about the asterisk-bugs mailing list