Discuss [Solution] International/local caller ID matching at the iPhone "2G" (Rev. 1) - Hackint0sh.org; The international/local caller ID matching is working good for Belgium with
be 32 00 0 ...
-
The international/local caller ID matching is working good for Belgium with
be 32 00 0 1 7
be 32 00 0 2 6
be 32 00 0 3 6
Nevertheless when you type a phonenumber in the keypad or when you reveive calls that are not in your contacts they are shown as
+ 32 1 234 5678 instead of +32 12 345678
Anything to do about it?
-
-
Senior Professional
Array

Originally Posted by
aviegas
Try running:
Framework AppSupport decompo*******Number <nymber1> au
Framework AppSupport decompo*******Number <nymber2> au
Framework AppSupport phoneNumbersEqual <number1> au <number2> au 0
Framework AppSupport phoneNumbersEqual <number1> au <number2> au 1
And post your results.
# ./Framework AppSupport decompo*******Number 0412345678 au
1,"61","","04","12345678"
# ./Framework AppSupport decompo*******Number +61412345678 au
1,"61","","4","12345678"
# ./Framework AppSupport phoneNumbersEqual 0412345678 au +61412345678 au 0
0,0
# ./Framework AppSupport phoneNumbersEqual 0412345678 au +61412345678 au 1
0,0
I'm not sure what that indicates, but it looks like it's not matching because it's finding that the area code of 04 is different to the area code of 4 when the 0 is dropped for an internationally formatted number. I really need to find a way to get those two numbers above to match, because we receive SMS based on the international version, but incoming calls based on the 04 version!
Just to recap, I've so far removed German rules and added these two:
au 61 0011 0 2 8
au 61 0011 0 1 8
Thanks for any advice you can give based on this aviegas!
Last edited by ricochet; 11-21-2007 at 10:45 PM.
-
-
Senior Professional
Array

Originally Posted by
ricochet
au 61 0011 0 2 8
au 61 0011 0 1 8
The order is wrong. First you have to group your entries according to length of area code + subriber number. Then within each group you sort according to area code length. Ordering is always done in ascending order. Your first entry is "group" 10 (2 + 8) and second entry is "group" 9 (1 + 8). If you swap them then the iPhone will correctly decompose your phone numbers.
-
Senior Professional
Array

Originally Posted by
lucky58
Nevertheless when you type a phonenumber in the keypad or when you reveive calls that are not in your contacts they are shown as
+ 32 1 234 5678 instead of +32 12 345678
The formatting of phone numbers can be changed by editing the UIPhoneFormats.plist file. It has nothing to do with phone number matching. Two different things.
-
-
Senior Professional
Array

Originally Posted by
jasonn
Hi!
What is correct setup for Finland?
We have the following shema:
Area Code: 1-2 digits
Subscriber Number: 4-9 digits (see note below)
Trunk Prefix: 0
International Prefix: 00
Subscriber numbers are mostly 7 digits, although in certain cases the length can be 4 to 9 digits.
Our contrycode is +358
Thanks in advance!
fi 358 00 0 x y
Replace "x" with area code length and "y" with subscriber number length. Make sure you put your entries in the correct order. The correct order is explained in one of my previous posts.
-
Senior Professional
Array

Originally Posted by
pspsully
Im in Ireland, im not in any of the default countries but the number formatting still works perfectly

Phone number formatting is defined by the templates in the UIPhoneFormats.plist configuration file. Phone number matching is defined in the hardcoded table inside the AppSupport framework file. If you manually hex-edit AppSupport (or use iWorld) then phone number MATCHING will most probably not work but phone number FORMATTING will because Apple added formatting templates for more than just only the "official" countries.
-
-
Senior Professional
Array

Originally Posted by
timschuerewegen
The order is wrong. First you have to group your entries according to length of area code + subriber number. Then within each group you sort according to area code length. Ordering is always done in ascending order. Your first entry is "group" 10 (2 + 8) and second entry is "group" 9 (1 + 8). If you swap them then the iPhone will correctly decompose your phone numbers.
I didn't even think of that one, I only put the 9(1 + 8) rule in at the end as an afterthought to try to get it to work. I'll rearrange them and get back to you!
Thanks timshuerewegen 
EDIT: Switched around the order and now it's working flawlessly!
Last edited by ricochet; 11-22-2007 at 12:55 AM.
-
Hi Aviegas!!!
Thank you very much for your help!
Regarding your suggestions here go the results!
Combination...
ar 54 00 0 28
ar 54 00 9 2 8
...results in :
# Framework AppSupport decompo*******Number 01151112222 ar
1,"54","0","11","51112222"
# Framework AppSupport decompo*******Number +5491151112222 ar
0,"","","","5491151112222"
Combination...
ar 54 00 0 2 8
ar 549 00 0 2 8
...results in :
# Framework AppSupport decompo*******Number +5491151112222 ar
1,"549","","11","51112222"
# Framework AppSupport decompo*******Number 01151112222 ar
1,"54","0","11","51112222"
# Framework AppSupport phoneNumbersEqual +5491151112222 ar 01151112222 ar 0
0,0
Finally also tried...
ar 54 00 0 2 8
ar 549 00 - 2 8
ar 54 00 0 3 8
ar 549 00 - 3 8
...resulting in...
# Framework AppSupport decompo*******Number +5491151112222 ar
1,"549","","11","51112222"
# Framework AppSupport decompo*******Number 01151112222 ar
1,"54","0","11","51112222"
# Framework AppSupport phoneNumbersEqual +5491151112222 ar 01151112222 ar 0
0,0
# Framework AppSupport phoneNumbersEqual +5491151112222 ar 01151112222 ar 1
0,0
I'm lost....
Any other help would be much appreciated!!!!
Last edited by fer_re; 11-22-2007 at 04:25 AM.
-
-
Senior Professional
Array
-
The Man
Array

Originally Posted by
fer_re
I'm lost....
Any other help would be much appreciated!!!!
having 549 as the country code does not work...
From what I can tell, it seems that the iPhone algorithm will not be able to decompose:
+54911XXXXXXXX
Why? Because it violates the whole formation rule:
It the number starts with a +CC (country code), the after the country code comes the area code WITHOUT the NDD.
The is a reason for that: to allow sharing of country code, using pseudo area codes. The same sharing sometimes occurs with area codes too, but it will not affect the algorithm.
-
Similar Threads
-
By GreatLicker in forum iPhone "2G" (Rev. 1)
Replies: 3
Last Post: 03-05-2008, 08:20 PM
-
By Adonius in forum iPhone "2G" (Rev. 1)
Replies: 106
Last Post: 03-03-2008, 07:53 PM
-
By nemesis1218 in forum Free Toolchain Software
Replies: 4
Last Post: 01-09-2008, 12:48 AM
-
By Vger in forum iPhone "2G" (Rev. 1)
Replies: 21
Last Post: 11-22-2007, 02:23 PM
-
By jhrfc in forum General
Replies: 7
Last Post: 09-23-2007, 11:54 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks