[Asterisk-Dev] Oh what could the if-then-else syntax in AEL b e?
Brian Capouch
brianc at palaver.net
Wed Jul 6 11:23:20 MST 2005
Watkins, Bradley wrote:
>
> So the actual if-else syntax is:
>
> if ${DIALSTATUS} = "BUSY") {
> Voicemail(${EXTEN}|b);
> } else
> Voicemail(${EXTEN}|u);
>
That does not seem to help.
I have moved into another project, but the syntax appears to be
identical to what you have there:
if (${temp} = 0) {
Dial(${dev}/${ext},20);
} else
Dial(${temp});
But the parser still gives the same error:
Jul 6 13:17:05 WARNING[4295]: pbx_ael.c:129 __grab_token: Syntax error
at line 13 of 'extensions.ael', too many closing braces!
And the else side statement doesn't appear in the resulting dialplan:
6. Goto(${IF($[ ${temp} = 0 ]?7:8)}) [pbx_ael]
7. Dial(${dev}/${ext}|20) [pbx_ael]
8. NoOp(Finish if-std-exten-ael-6) [pbx_ael]
Thx.
B.
More information about the asterisk-dev
mailing list