"include" does not work

Hi, everyone

I’m trying to make the following context work:

include => local_calls
exten => _X.,1,Dial(SIP/${EXTEN}@provider,45)

However nothing from local_calls is being included. No matter what I dial, asterisk always tries to use the _X. rule. Is this a bug? How can I make asterisk use a match from “local_calls” context if that match is more appropriate then _X.

Thanks in advance


It will match your context first. Put

include => local_calls
exten => ABCDEFG,1,Dial(SIP/${EXTEN}@provider,45)

Now what happens? I think you would see a better definition if you did
dialplan show external_calls.