[Asterisk-Users] GotoIf problem

kurt x kurtwp at gmail.com
Wed Mar 9 12:57:19 MST 2005


I,ve gotten the GotoIf statement working now.  I hard coded the value
10 in place of the ${DIGITS} varible.  Worked like a charm.

Thanks to everyone who helped.    

Kurt 

On Wed, 09 Mar 2005 12:07:51 -0600, Chris Wade <clwade at sparco.com> wrote:
> 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