Try terminating the GotoIf statement with a ')'

MARK.

Mark Halverson wrote:

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



_______________________________________________
Asterisk-Users mailing list
[email protected]
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