[asterisk-bugs] [Asterisk 0015690]: ARG Variables are not overwritten when using empty values on macros

Asterisk Bug Tracker noreply at bugs.digium.com
Mon Aug 10 16:12:31 CDT 2009


The following issue has been SUBMITTED. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15690 
====================================================================== 
Reported By:                diLLec
Assigned To:                murf
====================================================================== 
Project:                    Asterisk
Issue ID:                   15690
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
Asterisk Version:           1.6.1.2 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): N/A 
SVN Revision (number only!):  
Request Review:              
====================================================================== 
Date Submitted:             2009-08-10 16:12 CDT
Last Modified:              2009-08-10 16:12 CDT
====================================================================== 
Summary:                    ARG Variables are not overwritten when using empty
values on macros
Description: 
If you pass emtpy values inside of a macro to another macro, the ARG
arguments are not overwritten:

&MacroOne("one","two","three","four");

macro MacroOne (var1, var2, var3, var4) {
   var3=""; // also tried var=${} here - makes no difference
   &MacroTwo(${var1},${var2},${var4},${var3});
};

macro MacroTwo (var1, var2, var3, var4) {
   Verbose("Arg1 ${ARG1} Arg2 ${ARG2} Arg3 ${ARG3} Arg4 ${ARG4}");
};

As you can see in the output below, four is also assigned to var4 in
MacroTwo although it is passed as an empty value.

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

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-10 16:12 diLLec         New Issue                                    
2009-08-10 16:12 diLLec         Status                   new => assigned     
2009-08-10 16:12 diLLec         Assigned To               => murf            
2009-08-10 16:12 diLLec         Asterisk Version          => 1.6.1.2         
2009-08-10 16:12 diLLec         Regression                => No              
2009-08-10 16:12 diLLec         SVN Branch (only for SVN checkouts, not tarball
releases) => N/A             
======================================================================




More information about the asterisk-bugs mailing list