Thank you. works like a charm. I'm using [EMAIL PROTECTED] so I had to massage it into AMP's structure. Your example is actually the reverse of what I needed to do, but that's not the issue.
AMP uses a macro to dial (syntax almost exactly the same).

I feel this should be documented somewhere (been googling all day) - so much appreciated.

----- Original Message ----- From: "Ira" <[EMAIL PROTECTED]> To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users@lists.digium.com>
Sent: Sunday, March 05, 2006 21:01
Subject: Re: [Asterisk-Users] Dialplan - strip IDD prefix and insert another


At 07:57 AM 03/05/2006, you wrote:
How can I "strip" the 00 and insert 011 in one entry in the dialplan. I'm stripping the 00 and passing the rest of the numbers for numbers dialled as 001X. (as in: 00|1XX.) but in case of numbers out of the US, how would I insert the 011 ?

exten => _011X. , 1, dial(sip/1/00${EXTEN:3})

Or something similar to that. Match to the 011, delete it, {EXTEN:3}, and then add the 00 before dialing.

Ira

_______________________________________________
--Bandwidth and Colocation provided by Easynews.com --

Asterisk-Users mailing list
To UNSUBSCRIBE or update options visit:
  http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to