Call rejected because extension not found in context 'public' but it is in public

Hello guys,

I am new to asterisk and really excited about it, but I ran into an error that I can’t seem to find a solution for.

Call from ’ ’ ( to extension ‘15554443333’ rejected because extension not found in context ‘public’.

I have add the extension in extensions.conf under [public] and I’m still getting this error. Does anybody know what else could cause this error to appear?

; ATTENTION: If your Asterisk is connected to the internet and you do
; not have allowguest=no in sip.conf, everybody out there may use your
; public context without authentication. In that case you want to
; double check which services you offer to the world.

exten => _15554443333,1,Goto(cust_assist,${EXTEN},1)
exten => _.,1,Congestion(1)
exten => _.,n,Hangup(16)
include => demo

Did you reload Asterisk once you added it? What does “dialplan show 15554443333@public” show?

Hey jcolp,

Thanks a lot for your answer. I did a dialplan reload but there’s more to it, probably i need to do a reinstall of asterisk.
Here’s what I’ve got

dialplan reload
Dialplan reloaded.
== Parsing ‘/etc/asterisk/extensions.conf’: Found
== Parsing ‘/etc/asterisk/extensions_assist.conf’: Found
[May 17 14:43:35] ERROR[19038]: config.c:1566 process_text_line: The file ‘extensions_validity.conf’ was listed as a #include but it does not exist.

dialplan show 15554443333@public
There is no existence of ‘public’ context
Command ‘dialplan show 15554443333@public’ failed.

Is it possible that asterisk doesn’t have access to extensions.conf or what could it be?

If you remove the include for the given file or create an empty one, does it then work?

I removed it and I think it’s working! Thanks a lot :beer:

dialplan show 15554443333@public
[ Context ‘public’ created by ‘pbx_config’ ]
15554443333’ => 1. Goto(cust_assist,${EXTEN},1) [pbx_config]
.’ => 1. Congestion(1) [pbx_config]
2. Hangup(16) [pbx_config]
[ Included context ‘stdexten’ created by ‘pbx_config’ ]
’_X.’ => 50000. NoOp(Start stdexten) [pbx_config]
50001. Set(LOCAL(ext)=${EXTEN}) [pbx_config]
50002. Set(LOCAL(dev)=${ARG1}) [pbx_config]
50003. Set(LOCAL(cntx)=${ARG2}) [pbx_config]
50004. Set(LOCAL(mbx)=${ext}${IF($[!${ISNULL(${cntx})}]?@${cntx})}) [pbx_config]
50005. Dial(${dev},20) [pbx_config]
50006. Goto(stdexten-${DIALSTATUS},1) [pbx_config]

-= 3 extensions (10 priorities) in 2 contexts. =-