Hi,<br><br>I'm using asterisk 1.6.1 and AEL2.<br>I'm trying to find the best way to write my own custom functions ?<br><br><br>At the moment, I'm using this pattern (extensions.ael) :<br><br>context foo {<br>123 => {<br>
&myfunc(123456);<br> NoOp(${GOSUB_RETVAL});<br>};<br><br>macro myfunc (arg) {<br> Return (${arg});<br>}<br><br>1. First, I keep getting warnings like<br>Warning: file /etc/asterisk/extensions.ael, line 446-446: application call to Return affects flow of control, and needs to be re-written using AEL if, while, goto, etc. keywords instead!<br>
and I would like to get rid of them.<br><br>2. Secondly, I would like not to use GOSUB_RETVAL and call a custom function just like I'm calling other functions with statements like :<br>123 => {<br> NoOp(TOLOWER(fOo BaR));<br>
NoOp(myfunc(123456));<br>};<br><br><br>What would you advise me to do ?<br><br>Regards<br><br><br>