[Asterisk-Users] GotoIf in Stable 1.0.4

MF Hulber asterisk-admin at hulber.com
Wed Apr 20 19:11:35 MST 2005


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
>
>  
>



More information about the asterisk-users mailing list