I just implemented this feature. I decided not to use an extra value. Instead I prefixed the NDD with "!". The "!" means that the NDD is mandatory for non-international numbers.
The current new templates for Belgium are
To summarize:Code:be 32 00 !0 2 ####### be 32 00 !0 3 ####### be 32 00 !0 4 ####### be 32 00 !0 9 ####### be 32 00 !0 1# ###### be 32 00 !0 5# ####### be 32 00 !0 6# ###### be 32 00 !0 7# ###### be 32 00 !0 8# ###### be 32 00 !0 800 ##### be 32 00 !0 90# ##### be 32 00 !0 47# ###### be 32 00 !0 48# ###### be 32 00 !0 49# ######
- Area code and subscriber number string masks instead of numeric length values allow for more precise/correct separation of area code and subscriber number.
- The "!" NDD prefix makes NDD mandatory in non-international numbers.
EDIT: if anyone wants to try the new templates, click here to download a win32 binary.
Last edited by timschuerewegen; 12-09-2007 at 04:43 PM.
No. I just tried it but it didn't work. The order in which Apple tries to decompose the phone number has to be changed. The "*" area code ate up IDD, Country Code and Area Code
Click here to see in which order Apple tries to decompose the phone number. If I would implement area code "*" then the try "area code" & "subscriber number" step would eat up the entire phone number.
Last edited by timschuerewegen; 12-09-2007 at 06:57 PM.
I implemented area code "*" and changed the order in which it tries to decompose the phone number. The new order is 4, 5, 6, 3, 2, 1, 7, 8 (see code in previous post). Click here for an updated win32 binary.
What I have released so far is a win32 executable to test the new decompo*******Number algorithm and phone number templates. Once this is stable and useful enough I will release the necessary files and instructions on how to use the new algorithm and PhoneNumberTemplates.txt on your iPhone.
With my new decompo*******Number code and a few extra templates to work around the MCC 340 problem you should be able to get the following results.
The templates (for the new decompo*******Number function) that I used areCode:decompo*******Number +590590xxxxxx gp 1,"590","","590","xxxxxx" decompo*******Number +590690xxxxxx gp 1,"590","","690","xxxxxx" decompo*******Number 0590xxxxxx gp 1,"590","0","590","xxxxxx" decompo*******Number 0690xxxxxx gp 1,"590","0","690","xxxxxx" decompo*******Number +596596xxxxxx gp 1,"596","","596","xxxxxx" decompo*******Number +596696xxxxxx gp 1,"596","","696","xxxxxx" decompo*******Number 0596xxxxxx gp 1,"596","0","596","xxxxxx" decompo*******Number 0696xxxxxx gp 1,"596","0","696","xxxxxx" decompo*******Number +594594xxxxxx gp 1,"594","","594","xxxxxx" decompo*******Number +594694xxxxxx gp 1,"594","","694","xxxxxx" decompo*******Number 0594xxxxxx gp 1,"594","0","594","xxxxxx" decompo*******Number 0694xxxxxx gp 1,"594","0","694","xxxxxx"
Code:// Guadeloupe gp 590 00 !0 590 ###### gp 590 00 !0 690 ###### // Martinique mq 596 00 !0 596 ###### mq 596 00 !0 696 ###### // Martinique (workaround for MCC 340 problem) gp 596 00 !0 596 ###### gp 596 00 !0 696 ###### // French Guiana gf 594 00 !0 594 ###### gf 594 00 !0 694 ###### // French Guiana (workaround for MCC 340 problem) gp 594 00 !0 594 ###### gp 594 00 !0 694 ######
If I understand correctly then the problem with AppSupport 1.1.2 and Argentina is that there can be a non-standard "9" digit between "54" and the area code? If decompo*******Number would magically ignore this "9" then the problem would be solved right? Or are there other problem with telephone number in Argentina?
To magically ignore the "9" (if present) I would have to know what to ignore (the "9") and where to ignore it (between "54" and area code). Because it behaves like the opposite of NDD I feel like adding it to the NDD seperated by a ":". The "!" before "0" means it is mandatory. There is no "!" before the "9" because it is not mandatory. There are international numbers without that "9", right?
Feedback please. Preferrably from someone who lives in Argentina and knows something about the format of the structure of telephone numbers used there.Code:ar 54 00 !0:9 ## ########
I just implemented this feature and here is the output...
As you can the output of the two last phone numbers is the same, even though the last phone number contains that "9". Because the template contains NDD "!0:9" I know that a "9" can be present between international code ("54") and area code ("12").Code:decompo*******Number 01212345678 ar 1,"54","0","12","12345678" decompo*******Number +541212345678 ar 1,"54","","12","12345678" decompo*******Number +5491212345678 ar 1,"54","","12","12345678"
Bookmarks