[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 15:22:56 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 15:22 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/
======================================================================
----------------------------------------------------------------------
(0117083) Marquis (reporter) - 2010-01-22 15:22
https://issues.asterisk.org/view.php?id=14629#c117083
----------------------------------------------------------------------
If you're still having issues with direct assignment to a variable from a
macro, then your flex and bison stuff isn't working properly.
Also, I think you're misinterpreting the console output you've pasted. If
you get the assignment to work properly, then the resulting value of the
variable will not have the quotes in it even though the call to Return and
the NoOp on GOTSUB_RETVAL show them. Here's the output on my system using
your macro (name differently, but with the same contents:
-- Executing [s at test-assignment:1] Gosub("SIP/test-00000002",
"test-assignment-macro,s,1(12345678)") in new stack
-- Executing [s at test-assignment-macro:1] MSet("SIP/test-00000002",
"LOCAL(number)=12345678") in new stack
-- Executing [s at test-assignment-macro:2] Set("SIP/test-00000002",
"LOCAL(xx)=123-456-78") in new stack
-- Executing [s at test-assignment-macro:3] NoOp("SIP/test-00000002",
"123-456-78") in new stack
-- Executing [s at test-assignment-macro:4] Return("SIP/test-00000002",
""123-456-78"") in new stack
-- Executing [s at test-assignment:2] MSet("SIP/test-00000002",
"assignment="123-456-78"") in new stack
-- Executing [s at test-assignment:3] NoOp("SIP/test-00000002",
"123-456-78") in new stack
Issue History
Date Modified Username Field Change
======================================================================
2010-01-22 15:22 Marquis Note Added: 0117083
======================================================================
More information about the asterisk-bugs
mailing list