[Asterisk-Users] Gotoif question

John Hill jhill at noach.com
Thu Jan 6 11:09:45 MST 2005


That did it.
Thanks
--John

> -----Original Message-----
> From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-
> bounces at lists.digium.com] On Behalf Of Diego Aguirre
> Sent: Thursday, January 06, 2005 8:42 AM
> To: Asterisk Users Mailing List - Non-Commercial Discussion
> Subject: Re: [Asterisk-Users] Gotoif question
> 
> Try this:
> 
> exten => s,2,GotoIf($["${CALLERIDNUM:0:3}" == "800"] ||
> $["${CALLERIDNUM:0:3}" = "866"] || $["${CALLERIDNUM:0:3}" = "877"] ||
> $["${CALLERIDNUM:0:3}" = "888"]?s|108)
> 
> 
> ----
> Diego Aguirre
> FWD# 459696
> 
> ----- Original Message -----
> From: "John Hill" <jhill at noach.com>
> To: "'Asterisk Users Mailing List - Non-Commercial Discussion'"
> <asterisk-users at lists.digium.com>
> Sent: Thursday, January 06, 2005 11:30 AM
> Subject: [Asterisk-Users] Gotoif question
> 
> 
> > Is there a way to combine these lines into one?
> >
> > exten => s,2,GotoIf($["${CALLERIDNUM:0:3}" = "800"]?s|108)
> > exten => s,3,GotoIf($["${CALLERIDNUM:0:3}" = "866"]?s|108)
> > exten => s,4,GotoIf($["${CALLERIDNUM:0:3}" = "877"]?s|108)
> > exten => s,5,GotoIf($["${CALLERIDNUM:0:3}" = "888"]?s|108)
> >
> > Thanks
> > --John
> >
> > _______________________________________________
> > Asterisk-Users mailing list
> > Asterisk-Users at 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
> >
> 
> _______________________________________________
> Asterisk-Users mailing list
> Asterisk-Users at 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




More information about the asterisk-users mailing list