# "include" does not work

**URL:** <https://community.asterisk.org/t/include-does-not-work/19972>\
**Category:** Asterisk Support\
**Created:** [March 26, 2008, 1:45pm UTC](https://community.asterisk.org/t/include-does-not-work/19972 "2008-03-26T13:45:21Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![facha](https://avatars.discourse-cdn.com/v4/letter/f/71c47a/32.png) [@facha](https://community.asterisk.org/u/facha)\
**Post date:** [March 26, 2008, 1:45pm UTC](https://community.asterisk.org/t/include-does-not-work/19972/1 "2008-03-26T13:45:21Z")

</div>

Hi, everyone

I’m trying to make the following context work:

[external\_calls]  
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

---

<div class="post-metadata">

**Author:** ![skin256](https://avatars.discourse-cdn.com/v4/letter/s/47e85d/32.png) [@skin256](https://community.asterisk.org/u/skin256)\
**Post date:** [March 26, 2008, 7:57pm UTC](https://community.asterisk.org/t/include-does-not-work/19972/2 "2008-03-26T19:57:54Z")

</div>

Hi

It will match your context first. Put

[external\_calls]  
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.  
hth

Jeremy
