[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 17:32:53 CST 2009
The following issue has been CLOSED
======================================================================
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: closed
Asterisk Version: SVN
JIRA:
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): N/A
SVN Revision (number only!):
Request Review:
Resolution: no change required
Fixed in Version:
======================================================================
Date Submitted: 2009-08-10 16:12 CDT
Last Modified: 2009-12-29 17:32 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.
======================================================================
----------------------------------------------------------------------
(0115840) tilghman (administrator) - 2009-12-29 17:32
https://issues.asterisk.org/view.php?id=15690#c115840
----------------------------------------------------------------------
Already fixed in 1.6.0.14 and 1.6.1.5. Please, in the future, try the
latest release before reporting an issue, because the problem you're
reporting may already be fixed.
Issue History
Date Modified Username Field Change
======================================================================
2009-12-29 17:32 tilghman Asterisk Version 1.6.1.2 => SVN
2009-12-29 17:32 tilghman Note Added: 0115840
2009-12-29 17:32 tilghman Status acknowledged => closed
2009-12-29 17:32 tilghman Resolution open => no change
required
======================================================================
More information about the asterisk-bugs
mailing list