Just to clarify, right now the iPhone OS 2.2 does not recognize caller IDs for slovenian numbers which are saved like +386 XX XXX XXX, it does however recognize caller IDs if a number is saved like 04X XXX XXX or 031 XXX XXX.
Will editing the UIDefaultFormat.phoneformat resolve this problem or not?
Ok fixed it, i had to edit Default.phoneformat in appsupport folder.
p3n5t3r can you please fix Pakistan format as well? If you can then please do so, it will be a great help.
I would, but I actually only put it together from pieces I got. It's not like I know how to do it from scratch.
But basically, you take the info from 2.1 UIPhoneformats.plist, take care to add the extra 00 in there (thx yoshika) and correct the offsets at the beginning of the file.
Then you go and add the same info to Default.phoneformat in appsupport folder. You have to take care, to recalculate the offsets as this file is larger.
That's what I made.
p3n5t3r could you do it in the same manner for Pakistan pk by getting the info for pk from 2.1 UIPhoneformats.plist
I've also noticed the extra "00" and that there are now 2 files.
I've added my changed data that contains 2 set of rules and it seems that only the first set is triggered. Really wierd.
Still trying to find out what have changed.
Found another difference: they have changed the order that the rule sets are processed. Previously it processed the sets "backwards", now it's the reverse. So if you rules sets have a match overlap, be aware.
In my case I have 2 sets:
Set #1: 1 digit match, and will match any thing X>=0 and X<=9
Set #2: 3 digits match for 0300/0800/0900.
Previously it worked this way. Since the rules macht overlap (3, 8 and 9 in the first rule), the order is important: set #2 needs to be processed ahead of set #1.
Reversing the order did it.
So far, there are 3 diffences in 2.2:
1) the extra "00" between the NDD and IDD
2) the second (and bigger by 0x20 bytes) copy of the file
3) the order that rule sets are processed.
There may be more... who knows
Last edited by aviegas; 11-24-2008 at 10:51 PM.
Can someone fix it for Lebanon?
BAD NEWS , I tried to delete PhoneNumberTemplates.plist and:
Nothing Changes !!!!!
May be UIDefaultFormats.phoneformat do all , but I think is not so simple .
However modified file for Pakistan is here:
Be careful to modify this critical file yourself.
Frank thanks a lot for the modded UIDefaultFormats.phoneformat
However while the numbers are now correctly formatted in contacts it does not solve the Caller ID Problem. So I guess you were right all along that the PhoneNumberTemplates.plist Fix is Dead and something else has changed in 2.2
Well I am sure one of you guys will figure it out soon. Many thanks