Review Board 1.7.16


Add support in AEL for macro return values and direct assignment of them to variables and functions.

Review Request #114 - Created Dec. 30, 2008 and updated

Marquis
/trunk
14629
Reviewers
asterisk-dev
Asterisk
Add support in AEL for macro return values and direct assignment of them to variables and functions.
Ran the AEL regression tests in pbx/ael/ael-test.  Also adapted much of my dialplan (used in general PBXs all over the world) to use the new assignment.
/trunk/CHANGES
Revision 166832 New Change
[20] 125 lines
[+20]
126

    
   
126

   
127
   Pragma: SuppressEvents
127
   Pragma: SuppressEvents
128

    
   
128

   
129
   If this is included, the server supports event suppression.
129
   If this is included, the server supports event suppression.
130

    
   
130

   

    
   
131
AEL

    
   
132
---

    
   
133
* Macros now support returning a value, and direct assignment of that value to a

    
   
134
  variable or function.  For example:

    
   
135

   

    
   
136
    macro returnmacro() {

    
   
137
	MYVAR=10;

    
   
138
	return ${MYVAR};

    
   
139
    }

    
   
140

   

    
   
141
   FOO=&returnmacro();

    
   
142

   

    
   
143

   
131
------------------------------------------------------------------------------
144
------------------------------------------------------------------------------
132
--- Functionality changes from Asterisk 1.6.0 to Asterisk 1.6.1  -------------
145
--- Functionality changes from Asterisk 1.6.0 to Asterisk 1.6.1  -------------
133
------------------------------------------------------------------------------
146
------------------------------------------------------------------------------
134

    
   
147

   
135
Device State Handling
148
Device State Handling
[+20] [20] 879 lines
/trunk/include/asterisk/ael_structs.h
Revision 166832 New Change
 
/trunk/include/asterisk/pval.h
Revision 166832 New Change
 
/trunk/pbx/ael/ael-test/ref.ael-vtest26
New File
 
/trunk/pbx/ael/ael-test/ael-vtest26/extensions.ael
New File
 
/trunk/res/ael/ael.y
Revision 166863 New Change
 
/trunk/res/ael/ael.flex
Revision 166863 New Change
 
/trunk/res/ael/pval.c
Revision 166863 New Change
 
  1. /trunk/CHANGES: Loading...
  2. /trunk/include/asterisk/ael_structs.h: Loading...
  3. /trunk/include/asterisk/pval.h: Loading...
  4. /trunk/pbx/ael/ael-test/ref.ael-vtest26: Loading...
  5. /trunk/pbx/ael/ael-test/ael-vtest26/extensions.ael: Loading...
  6. /trunk/res/ael/ael.y: Loading...
  7. /trunk/res/ael/ael.flex: Loading...
  8. /trunk/res/ael/pval.c: Loading...

https://reviewboard.asterisk.org/ runs on a server provided by Digium, Inc. and uses bandwidth donated to the open source Asterisk community by API Digital Communications in Huntsville, AL USA.
Please report problems with this site to asteriskteam@digium.com.