# Dial plan problem

**URL:** <https://community.asterisk.org/t/dial-plan-problem/13130>\
**Category:** Asterisk Support\
**Created:** [March 16, 2007, 12:22pm UTC](https://community.asterisk.org/t/dial-plan-problem/13130 "2007-03-16T12:22:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![highland](https://avatars.discourse-cdn.com/v4/letter/h/8edcca/32.png) [@highland](https://community.asterisk.org/u/highland)\
**Post date:** [March 16, 2007, 12:22pm UTC](https://community.asterisk.org/t/dial-plan-problem/13130/1 "2007-03-16T12:22:32Z")

</div>

Hello

in extensions.conf i have:  
[numberplan-custom-1]  
plancomment = DialPlan1  
include = default  
exten =\> \_##12X.,1,Dial(IAX2/trunk\_t2/${EXTEN:4})  
exten =\> \_X.,2,Dial(IAX2/trunk\_t2/${EXTEN})

When i call using ##12 prefix i connect thru trunk\_2 and everything works fine.  
When i call directly i can not connect and receive error:

[Mar 16 13:18:37] NOTICE[17283]: chan\_iax2.c:7146 socket\_process: Rejected connect attempt from 192.168.100.165, request ‘0801300800@numberplan-custom-1’ does not exist

Why ?  
Thanx

---

<div class="post-metadata">

**Author:** ![valley](https://avatars.discourse-cdn.com/v4/letter/v/67e7ee/32.png) [@valley](https://community.asterisk.org/u/valley)\
**Post date:** [March 16, 2007, 4:34pm UTC](https://community.asterisk.org/t/dial-plan-problem/13130/2 "2007-03-16T16:34:04Z")

</div>

> [@highland](#):
>
> ```auto
> exten => _X.,2,Dial(IAX2/trunk_t2/${EXTEN})
> ```
> 
> ‘0801300800@numberplan-custom-1’ does not exist

Because your \_X. extension does not have priority 1.
