[Asterisk-Users] GotoIf problem

Chris Wade clwade at sparco.com
Wed Mar 9 11:07:51 MST 2005


kurt x wrote:
> [globals]
> Setvar(DIGITS=10)
> 
> 
> [vmail]
> exten => s,1,Answer
> exten => s,2,NoOp(${ext})
> exten => s,3,GotoIf($[${LEN(${CALLERIDNUM})} != $DIGITS}]?4:5)
> exten => s,4,Setvar(${CALLERIDNUM}="Unknown")
> exten => s,5,Voicemail(u${ext})
> exten => s,6,Hangup

Oh, and it should be

exten => s,3,GotoIf($[${LEN(${CALLERIDNUM})} != ${DIGITS}]?4:5)

-Chris





More information about the asterisk-users mailing list