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

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


The following issue has been RESOLVED. 
====================================================================== 
http://bugs.digium.com/view.php?id=14483 
====================================================================== 
Reported By:                pj
Assigned To:                putnopvut
====================================================================== 
Project:                    Asterisk
Issue ID:                   14483
Category:                   Core/General
Reproducibility:            always
Severity:                   crash
Priority:                   normal
Status:                     resolved
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 171528 
Request Review:              
Resolution:                 duplicate
Duplicate:                  14377
Fixed in Version:           
====================================================================== 
Date Submitted:             2009-02-16 08:47 CST
Last Modified:              2009-02-16 14:37 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)});
}

======================================================================
Relationships       ID      Summary
----------------------------------------------------------------------
duplicate of        0014377 MAILBOX_EXISTS crashes Asterisk when ca...
====================================================================== 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-02-16 14:37 putnopvut      Relationship added       duplicate of 0014377
2009-02-16 14:37 putnopvut      Duplicate ID             0 => 14377          
2009-02-16 14:37 putnopvut      Status                   new => resolved     
2009-02-16 14:37 putnopvut      Resolution               open => duplicate   
2009-02-16 14:37 putnopvut      Assigned To               => putnopvut       
======================================================================




More information about the asterisk-bugs mailing list