]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_ael: Use Gosub in for loop expressions
authorSean Bright <sean.bright@gmail.com>
Thu, 11 Apr 2019 20:29:20 +0000 (16:29 -0400)
committerSean Bright <sean.bright@gmail.com>
Thu, 11 Apr 2019 20:38:12 +0000 (14:38 -0600)
commitea3109beaabdc96e6bb64d962334fc1ca2eec75f
tree1d05c254b57e4a916b496c5d8e8c31b76873d994
parentfbed32a1a5e38b6ab4e963ae8ca8627e02f7d4bd
res_ael: Use Gosub in for loop expressions

In AEL2, if a 'for' statement contains macro* calls, like:

    for (&iterator(${TRY},A); "${A}" != ""; &iterate(A)) {

The AEL2 parser will translate these into calls to the deprecated Macro
dialplan application and use the antiquated pipe delimiter.

Instead, convert these into calls to the Gosub dialplan application and
use commas as argument separators.

ASTERISK-18593 #close
Reported by: Luke-Jr

* 'macro' in this context means AEL2 macros, not the 'Macro' application

Change-Id: I3d73716033b8e3e42e0209d355bf5f10c97045fc
res/ael/pval.c