Extensions_custom.conf - Goto command not working

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

Every context needs a priority 1 line

exten => s,1,Wait(1)
1 Like

Thank you so much!

You did it again!!! :slight_smile:

1 Like

That’s why he gets paid the big bucks. That and he loves spending time in the barrel.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.