Richard, this is a good work-around, but might create work for the admin if some "dumb bunny" (really want to use more harsh phrase) goes nuts and does something like +0000033112345678. You shouldn't need a line in the dialplan for each idiot user you have.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Richard Kenner Sent: Friday, May 28, 2010 4:20 PM To: [email protected] Subject: Re: [asterisk-users] Normalizing called numbers > I'm working on my dial plan and I'd like to parse all dialed numbers > to convert them to the format I want. > For example if someone dials 0112345678 or 0033112345678 I would like > to convert it to +33112345678 and then match the number to my exten => > +33XXXXXXXX statements. If I understand what transformations you want, it's: exten => _00X.,1,Goto(+${EXTEN:2},1) exten => _0[1-9]X.,1,Goto(+33${EXTEN:1},1) (You really don't need the '[1-9]' since Asterisk will match the most specific, but it's cleaner to have it.) -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
