[asterisk-bugs] [Asterisk 0014629]: [patch] Add support in AEL for macro return values and direct assignment of them to variables and functions.
Asterisk Bug Tracker
noreply at bugs.digium.com
Fri Jan 22 10:42:19 CST 2010
A NOTE has been added to this issue.
======================================================================
https://issues.asterisk.org/view.php?id=14629
======================================================================
Reported By: Marquis
Assigned To:
======================================================================
Project: Asterisk
Issue ID: 14629
Category: PBX/pbx_ael
Reproducibility: N/A
Severity: feature
Priority: normal
Status: ready for review
Asterisk Version: SVN
JIRA: SWP-282
Regression: No
Reviewboard Link:
SVN Branch (only for SVN checkouts, not tarball releases): trunk
SVN Revision (number only!):
Request Review:
======================================================================
Date Submitted: 2009-03-09 06:03 CDT
Last Modified: 2010-01-22 10:42 CST
======================================================================
Summary: [patch] Add support in AEL for macro return values
and direct assignment of them to variables and functions.
Description:
This patch adds macro return value and simple assignment support to AEL.
This is the bug report for review request 114 as per Russell Bryant.
http://reviewboard.digium.com/r/114/
======================================================================
----------------------------------------------------------------------
(0117069) crjw (reporter) - 2010-01-22 10:42
https://issues.asterisk.org/view.php?id=14629#c117069
----------------------------------------------------------------------
I tried doing: return "${xx}"
But that returns a string which starts and ends with a quote.
i.e. the quotes become part of the string.
I think it would be safest let the parser map 'return ${xx}' to
'Return(${xx})'.
If somebody wants to do math, they can do it prior to the 'return'
statement as shown in the example posted by Marquis' this morning.
Please note: this issue is not related to the issue I posted at 2010-01-21
21:27.
i.e. there are two unrelated problems which need to be dealt with
separately.
1) Direct assignment of macro to variable gives a syntax error.
2) Arg to 'return' is subject to math evaluation when it should not be.
Issue History
Date Modified Username Field Change
======================================================================
2010-01-22 10:42 crjw Note Added: 0117069
======================================================================
More information about the asterisk-bugs
mailing list