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

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Feb 16 08:47:01 CST 2009


The following issue has been SUBMITTED. 
====================================================================== 
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 08:47 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)});
}

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-16 08:47 pj             New Issue                                    
2009-02-16 08:47 pj             Asterisk Version          => SVN             
2009-02-16 08:47 pj             Regression                => No              
2009-02-16 08:47 pj             SVN Branch (only for SVN checkouts, not tarball
releases) =>  trunk          
2009-02-16 08:47 pj             SVN Revision (number only!) => 171528          
======================================================================




More information about the asterisk-bugs mailing list