[Asterisk-Users] GotoIf in Stable 1.0.4

oguer oguer at wanadoo.fr
Thu Apr 21 03:09:26 MST 2005


Hi Mark

You need to close the "(" :
exten => s,2,GotoIf($[${CALLERIDNUM} = "xxxxxxxxxx"]?4)
Regards,

Fred

-----Message d'origine-----
De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Mark
Halverson
Envoyé : mercredi 20 avril 2005 21:59
À : 'Asterisk Users Mailing List - Non-Commercial Discussion'
Objet : [Asterisk-Users] GotoIf in Stable 1.0.4

I have unlimited local calling on my cell phone provider but not long
distance; so I wanted to create authentication based on me calling in and
authenticating based on the callerid of my cell phone.

Here is what I tried based on the wiki:
exten => s,1,answer
exten => s,2,GotoIf($[${CALLERIDNUM}="xxxxxxxxxx"]?4
exten => s,3,hangup
exten => s,4, ; here I am going create "please enter the number you want to
dial"
then have * dial out on a sip or iax provider...

But I keep getting the error
..

Apr 20 12:59:55 WARNING[4395]: pbx.c:1291 pbx_extension_helper: No
application 'GotoIf($[${CALLERIDNUM}="xxxxxxxxxx"]?4' 

Has GotoIF been removed or something?

-Mark

-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.19 - Release Date: 4/20/2005
 

_______________________________________________
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