Discuss [Solution] International/local caller ID matching at the iPhone "2G" (Rev. 1) - Hackint0sh.org; Originally Posted by jellyfish Hi Tim! Thanks for a fantastic job! I have a question ...
  1. #1211
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by jellyfish View Post
    Hi Tim!

    Thanks for a fantastic job! I have a question for you:

    We use a switchboard system (Telia Centrex, Sweden) where I also get a landline number. So people can call me on 2 different numbers (my mobile number 070XXXXXXX and my land line number 08XXXXXXX). When someone is calling me to the land line number It does not match numbers in my address book because it shows 00 070XXXXXX from a mobile for example. I have all numbers in the address book in the +46 number format.

    When you used the .txt file I just copied the whole //Sweden part (se 46 00 !0 and below) and added (se 46 00 !000) and it was working perfect, but now when I edit the PhoneNumberTemplates_2.plist file and add the whole sweden part and edit the second
    <key>NationalDialingPrefix</key>
    <array>
    <string>000</string> //(added 00)
    </array>
    i get the opposite problem, i.e it matches when people calling me to the land line number, but not when calling to my mobile number.

    Any ideas how to fix this problem?

    BTW, how do I convert the file back? Original file size is 17k and the converted file is 86k.
    "00 070XXXXXX" is not a valid phone number and therefore the recommended approach is to add the following information to the PhoneNumberTemplates_3.plist file

    <key>se</key>
    <array>
    <string>00070######:070######</string>
    </array>

    Btw, if you had added "000" before the "0" in the NationalDialingPrefix array instead of replacing "0" with "000" then it would probably also have worked.

    You can use Erica's plutil on your iPhone to convert plists back to binary format.


  2. #1212
    Newbie Array

    Join Date
    Dec 2007
    Posts
    2
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by timschuerewegen View Post
    "00 070XXXXXX" is not a valid phone number and therefore the recommended approach is to add the following information to the PhoneNumberTemplates_3.plist file

    <key>se</key>
    <array>
    <string>00070######:070######</string>
    </array>

    Btw, if you had added "000" before the "0" in the NationalDialingPrefix array instead of replacing "0" with "000" then it would probably also have worked.

    You can use Erica's plutil on your iPhone to convert plists back to binary format.
    Thanks! Works like a charm.

  3. #1213
    Senior Professional Array kwanbis's Avatar

    Join Date
    Jan 2008
    Posts
    104
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    14

    Default

    Wow, 122 pages!

    This is obvious a very important issue...

    I wonder why there is no single, updated instructions/manual.

    And the link on the 1st page doesn't even works!

  4. #1214
    Newbie Array

    Join Date
    Jan 2008
    Posts
    7
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Hi
    PhoneNumberTemplates_2.plist file in beta 8 is 0 (zero) bytes ia thia correct???

  5. #1215
    Newbie Array

    Join Date
    Nov 2007
    Posts
    4
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    I tried to manually edit the phonenumbertemplates file but in my system (vista) it shows up with an extension of .plist instead of being a text file. And when i open it up in notepad, it looks like the encoding is all messed up... looks nothing like text.

    Anyone face the same issue? Any help?


  6. #1216
    Newbie Array

    Join Date
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    great tool that helps me a lot, thanks tim.

    i use settings below in China(cn)
    Code:
    	<key>cn</key>
    	<dict>
    		<key>AreaCode</key>
    		<array>
    			<string>10:########</string>
    			<string>2#:########</string>
    			<string>3##:#######*</string>
    			<string>4##:#######*</string>
    			<string>5##:#######*</string>
    			<string>6##:#######*</string>
    			<string>7##:#######*</string>
    			<string>8##:#######*</string>
    			<string>9##:#######*</string>
    		</array>
    		<key>InternationalCallingCode</key>
    		<string>86</string>
    		<key>InternationalDialingPrefix</key>
    		<array>
    			<string>00</string>
    		</array>
    		<key>NationalDialingPrefix</key>
    		<array>
    			<string>0</string>
    		</array>
    		<key>SubscriberNumber</key>
    		<array>
    			<string>(any)</string>
    		</array>
    	</dict>
    but I'm not sure what "SubscriberNumber" key means, just looked at settings for other countries and simply modified it.
    phone numbers in China is (usually) like:
    mobile: 13######### or 15######### (11-digits) without area codes
    when being called, it appears like above and when receiving an SMS
    it appears like +8613######### or +8615#########
    area codes is 10(capital) 2#(several large cities) and ###(other cities, the first digit varies from 3 to 9)
    for 10 and 2# subscriber number is 8-digit
    for other cities which have 3-digit area codes the subscriber number may be 7 or 8-digit.
    when calling in, it appears like 010########, given the NDD prefix is "0"

    I tested it with Framework AppSupport decompo*******Number, everything seems to be working well.
    could anyone tell me if I modified the plist(especially the SubscriberNumber key)correctly or could tim help us Chinese iPhone users improve the default settings in the next beta version?
    thanks a lot

  7. #1217
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by fancyrabbit View Post
    great tool that helps me a lot, thanks tim.

    i use settings below in China(cn)

    <snip>

    but I'm not sure what "SubscriberNumber" key means, just looked at settings for other countries and simply modified it.
    phone numbers in China is (usually) like:
    mobile: 13######### or 15######### (11-digits) without area codes
    when being called, it appears like above and when receiving an SMS
    it appears like +8613######### or +8615#########
    area codes is 10(capital) 2#(several large cities) and ###(other cities, the first digit varies from 3 to 9)
    for 10 and 2# subscriber number is 8-digit
    for other cities which have 3-digit area codes the subscriber number may be 7 or 8-digit.
    when calling in, it appears like 010########, given the NDD prefix is "0"

    I tested it with Framework AppSupport decompo*******Number, everything seems to be working well.
    could anyone tell me if I modified the plist(especially the SubscriberNumber key)correctly or could tim help us Chinese iPhone users improve the default settings in the next beta version?
    thanks a lot
    The AreaCode array is only necessary if you can dial a phone number without the area code or if you want the iPhone to display call info (from callinfo.db).

  8. #1218
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by fidofido300 View Post
    Hi
    PhoneNumberTemplates_2.plist file in beta 8 is 0 (zero) bytes ia thia correct???
    No. It was Murphy's fault.

  9. #1219
    Newbie Array

    Join Date
    Mar 2008
    Posts
    3
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    0

    Default

    Quote Originally Posted by timschuerewegen View Post
    The AreaCode array is only necessary if you can dial a phone number without the area code or if you want the iPhone to display call info (from callinfo.db).
    Yes, I can dial a phone number without the area code(such as here I'm in the capital and I dial 12345678 for +8610-12345678)
    and i want the iPhone to display call info

    so SubscriberNumber set to "(any)" is correct?

  10. #1220
    Senior Professional Array timschuerewegen's Avatar

    Join Date
    Aug 2007
    Location
    Belgium
    Posts
    450
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by fancyrabbit View Post
    Yes, I can dial a phone number without the area code(such as here I'm in the capital and I dial 12345678 for +8610-12345678)
    and i want the iPhone to display call info

    so SubscriberNumber set to "(any)" is correct?
    Didn't know that. Will add your AreaCode array to my next build. The SubscriberNumber "(any)" might not be necessary but having it never hurts.


 

 

LinkBacks (?)

  1. 07-13-2009, 03:48 PM
  2. 03-17-2009, 03:51 PM
  3. 03-17-2009, 12:45 PM
  4. 03-17-2009, 12:43 PM
  5. 03-16-2009, 04:14 PM
  6. 02-14-2009, 03:43 PM
  7. 01-14-2009, 03:29 PM
  8. 01-14-2009, 02:08 PM

Similar Threads

  1. [1.1.3] International Caller ID Problem
    By GreatLicker in forum iPhone "2G" (Rev. 1)
    Replies: 3
    Last Post: 03-05-2008, 07:20 PM
  2. Replies: 106
    Last Post: 03-03-2008, 06:53 PM
  3. Caller ID for local numbers... is it possible?
    By nemesis1218 in forum Free Toolchain Software (Cydia App's)
    Replies: 4
    Last Post: 01-08-2008, 11:48 PM
  4. Replies: 21
    Last Post: 11-22-2007, 01:23 PM
  5. Matching contacts to UK caller ids?
    By jhrfc in forum General
    Replies: 7
    Last Post: 09-23-2007, 11:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Powered by vBulletin®
Copyright © 2014 vBulletin Solutions, Inc. All rights reserved.
Search Engine Friendly URLs by vBSEO
(c) 2006-2012 Hackint0sh.org
All times are GMT +2. The time now is 09:44 AM.
twitter, follow us!