The REGEX function should be useable to "fix" the number as you need.
-----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Rémi Philippe Sent: Friday, May 28, 2010 4:05 PM To: [email protected] 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 -- _____________________________________________________________________ -- 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
