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

Asterisk Bug Tracker noreply at bugs.digium.com
Tue Dec 29 12:52:59 CST 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15690 
====================================================================== 
Reported By:                diLLec
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15690
Category:                   PBX/pbx_ael
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     acknowledged
Asterisk Version:           1.6.1.2 
JIRA:                        
Regression:                 No 
Reviewboard Link:            
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-12-29 12:52 CST
====================================================================== 
Summary:                    [patch] 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.

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

---------------------------------------------------------------------- 
 (0115825) coreyfarrell (reporter) - 2009-12-29 12:52
 https://issues.asterisk.org/view.php?id=15690#c115825 
---------------------------------------------------------------------- 
CrashHD: I don't believe this ticket is related to 16458. 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-12-29 12:52 coreyfarrell   Note Added: 0115825                          
======================================================================




More information about the asterisk-bugs mailing list