]> 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:19 +0000 (14:38 -0600)
commitf7f1a2cbb797f67a83826de2a9d47425a1b7ebe7
treea44e01afbd69d1c9a9c1701227d420bbcd592245
parentcb282d5c17935e01dc1b8b9737121c01581bc777
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