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@noach.com>
To: "'Asterisk Users Mailing List - Non-Commercial
Discussion'"
<asterisk-users@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@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
>