[asterisk-users] Normalizing called numbers

Danny Nicholas danny at debsinc.com
Fri May 28 16:18:09 CDT 2010


The REGEX function should be useable to "fix" the number as you need.

-----Original Message-----
From: asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Rémi Philippe
Sent: Friday, May 28, 2010 4:05 PM
To: asterisk-users at lists.digium.com
Subject: [asterisk-users] Normalizing called numbers

Hi,
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.

Is this possible with asterisk? I tried different ways (using _., s,
...) but I can't seem to get that working right...

Thanks for your help,

Remi

-- 
_____________________________________________________________________
-- 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




More information about the asterisk-users mailing list