SIP sent into invalid extension in context, but

Hello,

I’m a newbie to Asterisk. I’ve got Asterisk 1.8 installed and running.

I’m trying to build an interactive dialplan using the Goto() function, but I keep getting errors despite having the context set up in the extensions.conf. I’ve been combing the web and forums and trying all kinds of different things, but can’t seem to get to the bottom of it.

Can anyone tell me what I am missing? I’d really appreciate it!

Here’s the error ---->

*CLI> – Executing [201@LocalSets:1] Goto(“SIP/1000-00000004”, “TestMenu, start, 1”) in new stack
– Goto (TestMenu, start,1)
[Jan 21 22:23:25] WARNING[3160]: pbx.c:4972 __ast_pbx_run: Channel ‘SIP/1000-00000004’ sent into invalid extension ’ start’ in context ‘TestMenu’, but no invalid handler

Here’s my dialplan show ----->

[ Context ‘TestMenu’ created by ‘pbx_config’ ]
‘1’ => 1. Playback(digits/1) [pbx_config]
‘2’ => 1. Playback(digits/2) [pbx_config]
‘start’ => 1. Answer() [pbx_config]
2. Background(main-menu) [pbx_config]
3. WaitExten(5) [pbx_config]

[ Context ‘LocalSets’ created by ‘pbx_config’ ]
‘100’ => 1. Dial(SIP/1001) [pbx_config]
‘101’ => 1. Dial(SIP/1000) [pbx_config]
‘200’ => 1. Answer() [pbx_config]
2. Playback(hello-world) [pbx_config]
3. Hangup() [pbx_config]
‘201’ => 1. Goto(TestMenu, start, 1) [pbx_config]

[ Context ‘default’ created by ‘pbx_config’ ]

[ Context ‘global’ created by ‘pbx_config’ ]

Here’s my extensions.conf ----->

[LocalSets]

exten => 100, 1, Dial(SIP/1001)

exten => 101, 1, Dial(SIP/1000)

exten => 200, 1, Answer()
same => n, Playback(hello-world)
same => n, Hangup()

exten => 201, 1, Goto(TestMenu, start, 1)

[TestMenu]

exten => start, 1, Answer()
same => n, Background(main-menu)
same => n, WaitExten(5)

exten => 1, 1, Playback(digits/1)
exten => 2, 1, Playback(digits/2)

You have an extra space in in your Goto :mrgreen:

:blush:

Thanks Thor…I see that note in the reference now. :blush:

Cheers.