[asterisk-users] AEL2: If-then-else not permitted in Switch-Case
Klaus Darilion
klaus.mailinglists at pernau.at
Wed Mar 4 07:02:23 CST 2009
Lee, John (Sydney) schrieb:
> I just want to confirm but it seems that if-then-else is not permitted
> in case structure.
> It was not really documented but it seems to be the case.
>
> Can anyone confirm?
>
> switch(${DIALSTATUS})
> {
> case NOANSWER:
> {
> // if-then-else not permitted
> If (${ael-var} = 1)
^^ case sensitive?
> {
> Playback(beep);
> return;
> }
> }
> case BUSY:
> {
> return;
> }
> default:
> {
> Hangup();
> };
> }
>
>
>
> _______________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
>
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
> http://lists.digium.com/mailman/listinfo/asterisk-users
More information about the asterisk-users
mailing list