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 <[EMAIL PROTECTED]> 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
> 
>
_______________________________________________
Asterisk-Users mailing list
Asterisk-Users@lists.digium.com
http://lists.digium.com/mailman/listinfo/asterisk-users
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to