[solved] Rejected because extension not found in context

solution:

  1. backup asterisk directory, delete
  2. “make samples”
  3. “make config”
  4. put the extensions.conf and other non-version related files back

reload


The extension seems to be in the context.

extensions.conf

[from-sip]
exten => s,1,musiconhold()
exten => _x.,1,musiconhold()
exten => 333,1,musiconhold()

sip.conf

[100]
type=friend
username=100
mailbox=100
context=from-sip
secret=fqwefawdfa
host=dynamic
callerid=
port=5060

Hm, wonder what it could be.

lighter fluid and a match should handle the problem for you.

As a general rule, I have found Asterisk that when the dialplan is coded properly to do as it is told…which may not be what you think it should be doing.

Obviously, no one here could suggest what is wrong, without you bothering to post any relevant dialplan code.

what does

show dialplan from-sip

have to say ?

and for that matter

show dialplan 333@from-sip

Ian

Interesting, it cant find a context in the dial plan then ?

botCLI> dialplan show from-sip
There is no existence of ‘from-sip’ context
Command ‘dialplan show from-sip’ failed.
bot
CLI> dialplan show 333@from-sip
There is no existence of ‘from-sip’ context
Command ‘dialplan show 333@from-sip’ failed.

There you go !

try show dialplan just to see what you do have :wink:

Ian

I humbly thank you for the assistance.

/bow

Same symtoms here, but solved!

The problem was that the owner of extensions.conf was not the asterisk user :unamused: