Hello. I am trying to use the goto function in extensions_custom.conf, however I am not getting it to work right.
When it hits the Goto function, I get error and it drops the caller.
Error:
Channel ‘SIP/mysip-0000002d’ sent to invalid extension but no invalid handler: context,exten,priority=Check-CallerID,s,1
It never gets to even the Wait(1) within the [Check-CallerID].
Here is my config:
[incoming-custom-config]
include => Check-CallerID
exten => s,1,answer
exten => s,n,Wait(1)
exten => s,n,Goto(Check-CallerID,s,1)
exten => s,n,Return()
[Check-CallerID]
exten => s,n,Wait(1)
exten => s,n,GotoIf($["${CALLERID(num)}" = “5555551212”]?ivr-1,s,1)
exten => s,n,Return()