[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
Wed Jan 27 19:31:43 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:                     acknowledged
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-27 19:31 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/
====================================================================== 

---------------------------------------------------------------------- 
 (0117281) Marquis (reporter) - 2010-01-27 19:31
 https://issues.asterisk.org/view.php?id=14629#c117281 
---------------------------------------------------------------------- 
Yes, you will have to do that to regenerate the flex/bison stuff. 
Thankfully Tilghman made that change so it's a lot easier to do that now. 
If you have the dreaded 'XXX' instead of '[ ]' when you go to enable that
flag, you'll have to make sure you have flex/bison installed and a
reasonably recent version.

In regards to the return/Return() issue you mention, that's actually what
I was trying to do once it was pointed out by you and Tilghman that literal
strings as well as other constructs didn't work.

But the work involved in making the lexer and parser do that was a whole
lot more than just allowing Return(arbitrary stuff here) because AEL
already has the code to deal with that when calling applications.

So this syntax is by far the path of least resistance, and also much less
likely to introduce unforseen regressions.

Unfortunately AEL's lexer/parser are woolly places to be poking around and
I like to avoid breaking other peoples' dialplans. :) 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2010-01-27 19:31 Marquis        Note Added: 0117281                          
======================================================================




More information about the asterisk-bugs mailing list