Company_Phone_Number_Normalization_Rules
-
23. září 2010 6:49
I had to go through few hours of work before being able to find the right rules for Australian numbers. I you're setting up OCS in North America you can find all infornation and examples you need, but for the rest of the world good luck...
In Australia phones numbers are usually written that way:
Tel: 0d dddd dddd
Special: 1300 ddd ddd
Mobile: 04dd ddd ddd
Here are some examples of rules which could give you a hand with that file:
[\.\s\(0\)/-]*(\d)[\.\s\(0\)/-]*(\d{4})[\.\s\(0\)/-]*(\d{4})
+61$1$2$3
#TestInput:(07) 4197 5876 TestResult:+61741975876(1300)[\.\s\(0\)/-]*(\d{3})[\.\s\(0\)/-]*(\d{3})
+61$1$2$3
#TestInput: 1300 136 248 TestResult:+611300136248[\.\s\(0\)/-]*(\d{3})[\.\s\(0\)/-]*(\d{3})[\.\s\(0\)/-]*(\d{3})
+61$1$2$3
#TestInput: (04)22456999 TestResult:+61422456999Other important stuff is that in the Sample_Company_Phone_Number_Normalization_Rules file, it specifies to rename the file to Company_Phone_Normalization_Rules.txt. THIS IS WRONG!!! The name is wrong, abserver won't find the file unless it's properly named as Company_Phone_Number_Normalization_Rules.
Hope this will be able to help a few. If you have some better rules, feel free to share.
Cheers,
S