[Home]

Summary:ASTERISK-13587: crash when calling macro with empty argument
Reporter:pj (pj)Labels:
Date Opened:2009-02-16 08:47:01.000-0600Date Closed:2009-02-16 14:37:15.000-0600
Priority:CriticalRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:( 0) gdb.txt
( 1) gdbfull.txt
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)});
}


****** ADDITIONAL INFORMATION ******

[Feb 16 15:29:10]     -- Executing [*2845@from-cube:1] Goto("SIP/icz-gw-08469568", "from-ccm,845,1") in new stack
[Feb 16 15:29:10]     -- Goto (from-ccm,845,1)
[Feb 16 15:29:10]     -- Executing [845@from-ccm:1] NoOp("SIP/icz-gw-08469568", "RDNIS:  VOLAJICI: "Pavel Jezek" <281>") in new stack
[Feb 16 15:29:10]     -- Executing [845@from-ccm:2] Gosub("SIP/icz-gw-08469568", "volej_vmail,s,1()") in new stack
[Feb 16 15:29:10]     -- Executing [s@volej_vmail:1] Set("SIP/icz-gw-08469568", "LOCAL(linka)=") in new stack
sip*CLI>
Disconnected from Asterisk server
Comments:By: Mark Michelson (mmichelson) 2009-02-16 14:11:02.000-0600

Please attempt to use a version of trunk after revision 172741. This appears to be the same issue as ASTERISK-13490.

By: pj (pj) 2009-02-16 14:27:05.000-0600

you have right, Asterisk SVN-trunk-r176174 isn't affected,
so please close this bugreport, thanks!