# \[HELP\] Asterisk extensions.conf routing?

**URL:** <https://community.asterisk.org/t/help-asterisk-extensions-conf-routing/796>\
**Category:** Asterisk Support\
**Created:** [July 28, 2005, 4:29pm UTC](https://community.asterisk.org/t/help-asterisk-extensions-conf-routing/796 "2005-07-28T16:29:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![hmorgan883](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@hmorgan883](https://community.asterisk.org/u/hmorgan883)\
**Post date:** [July 28, 2005, 4:29pm UTC](https://community.asterisk.org/t/help-asterisk-extensions-conf-routing/796/1 "2005-07-28T16:29:45Z")

</div>

Hi,

I am trying to get Asterisk functioning as a system that has SIP and IAX DID’s going in, answers the calls, prompts and then lets a user dial a long distance or international number and connect.

Anyway, I know how to strip digits from the front of the dialstring by using EXTEN, but how do I strip digits and add new ones?

i.e Caller dials 00 61 123456789

BUT… I want to dial it like 011 61 123456789 on my IAX/SIP trunks.

How do I strip the 00, then add 011 onto the front?

I can’t find it in the manual, and it’s quite an important question especially for novices!

P.S. If anyone is really kind and has any conf files for a similar implementation, let me know!

Thanks.

---

<div class="post-metadata">

**Author:** ![SGM](https://avatars.discourse-cdn.com/v4/letter/s/ac91a4/32.png) [@SGM](https://community.asterisk.org/u/SGM)\
**Post date:** [July 28, 2005, 4:37pm UTC](https://community.asterisk.org/t/help-asterisk-extensions-conf-routing/796/2 "2005-07-28T16:37:36Z")

</div>

Try using Dial(…/011${EXTEN:2})

---

<div class="post-metadata">

**Author:** ![hmorgan883](https://avatars.discourse-cdn.com/v4/letter/h/ebca7d/32.png) [@hmorgan883](https://community.asterisk.org/u/hmorgan883)\
**Post date:** [July 28, 2005, 4:39pm UTC](https://community.asterisk.org/t/help-asterisk-extensions-conf-routing/796/3 "2005-07-28T16:39:20Z")

</div>

Will give it a go, that makes sense!

Thanks 😄
