[Asterisk-Users] Gotoif question

Diego Aguirre dagmoller at click21.com.br
Thu Jan 6 06:42:28 MST 2005


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
> 




More information about the asterisk-users mailing list