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 _______________________________________________ -- 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