Discuss [Solution] International/local caller ID matching at the iPhone "2G" (Rev. 1) - Hackint0sh.org; \System\Library\Frameworks\AppSupport.framework\Su pport\PhoneNumberTemplates.txt which you can edit or replace according to your wishes. While you're at ...
  1. #1151
    Professional Array

    Join Date
    Oct 2007
    Posts
    50
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    \System\Library\Frameworks\AppSupport.framework\Su pport\PhoneNumberTemplates.txt which you can edit or replace according to your wishes.

    While you're at it, you might as well edit /System/Library/Frameworks/UIKit.framework/PhoneFormats/UIPhoneFormats.plist to get the display format of phone numbers right.
    Dumb question, but the answer is not obvious:

    I don't find the file "PhoneNumberTemplates.txt". I have 3 files named: "PhoneNumberTemplates_1.plist" (_2 and _3 are also there). Are these new? Should I create a .txt instead?

    I remember doing this hack back in 1.1.1. I'm now on 1.1.4 and trying to get the info for Chile. Thanks.

    Edit: Is this post the answer (is it still the process to edit the .txt?) Why the .plist files?
    Last edited by brazuca; 03-17-2008 at 08:04 PM.


  2. #1152
    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 MikeRus View Post
    My problem is that when I receive/make a call, I see the name of the contact only if his number stored without international prefix (for domestic calls). Example: if I get a call from contact [John Smith, +421903123456], I will see - incoming from 0903123456 (without the name, like unknown for me number).
    You have to download PhoneNumber Dynamic Library build 13 and install it. Follow the instructions in the readme on the download page.

  3. #1153
    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 fuigo View Post
    This is rather confusing, especially when in my country there are many formats of phone numbers. I have tried many combinations, but have had no luck in nailing the right format. Could someone kindly give a hand?

    *update*
    I found the string to use for Taiwan. Credit goes to kevin3688 at iphone4.tw

    // Taiwan [tw]
    tw 886 00;40;50;70;90 0 # ########
    40 50 70 90 ... FRANCE!
    Last edited by timschuerewegen; 03-17-2008 at 11:07 PM.

  4. #1154
    Advanced Array

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

    Default

    timschuerewegen

    I Installed the latest build 13 beta 3 on my iPHone 1.1.4 i just upgraded to 1.1.4 today due to not being able to stand the unordered sms messages. Anyways i used to use build 9 in 1.1.3 and it worked out really well for me with a customized templates list. What i did was replaced the codes of the two countries i visit and roam with the same country code as my home country so that when i received a call from someone overseas it matched and worked well.

    How would i go about editing the lists now since it seems to be a combination of 3 lists so that i have two sets of codes in the same country prefix. As far as i understand it's because appsupport ends up taking the country code from the sim card correct so my little work around works. since i only store numbers in the local format.

  5. #1155
    Senior Professional Array

    Join Date
    Sep 2007
    Posts
    113
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    13

    Default

    Hi Tim, is it safe to presume iPlus 2.0 international payload already installs the latest version of your patches (build 13 beta 3) or so we have to do this ourselves? This build seems to lack the PhoneNumberTemplates.txt and instead has 3 binary plists.

    I have just been trying to catch up on this issue and have read this entire 116 page thread plus the other 34 page one in the general section. Who would have thought something like this we don't even think about can be so complex. I applaud you for this work cause even for a single country it can get pretty confusing and here you are doing it for all countries. Kudos to you.

    I travel across 3 countries, US, UK and India. I am using it in India at the moment and caller id is working properly.

    I am trying to edit the UIPhoneFormat.plist to make the numbers appear properly, the international setting in general is set to India. 3 issues:

    1. For instance landline numbers are 8 digits plus the code ie for Bombay it would be 022 12345678, currently its displaying 02012345678, I checked the UIPhoneFormat.plist and under 'in' it was (0##) ####### (7 digits) so I changed it to (0##) ######## and that resolved it.

    2. For mobile numbers it displays properly ie +91 9123456789 but for landline numbers with +91 it doesn't for instance +91 22 12345678 will display as +91 2212345678. I edited the mobile number string UiPhoneFormat.plist from +91 ########## to +91 9######### and added a new string +91 ## ######## immediately before this for landline numbers. That works somewhat but only if you dial +91, if you dial 00 91 then the landline number it doesn't work. Its shows as 00 912212345678 instead of 00 91 22 12345678. EDIT: SOLVED. Placed the landline string after the mobile string in UIPhoneFormat.plist

    3. For national mobile numbers sometimes we have to dial 0 before the mobile number ie instead of 9812345678 09812345678. Don't know how to fix this. Currently dialing 09812345678 will display as (098)12345678. EDIT: SOLVED Added new string 0 9######### under 'in' in UIPhoneformat.plist

    4. About this callinfo.db the current India sql database is large like 390kb with too many town and cities I don't need. So I edited and only kept the major IT cities I commute to, ie Bombay, Bangalore, Delhi, Chennai, Kolkata, Hyderabad and Pune. That reduced the callinfo.db to 52kb from 216kb and it works. The thing is I would like to add the UK and US to this db, how would I go about doing that so I have a customized callinfo.db only for the places I visit? EDIT: Just need to get hold of callinfo data for UK and US and I'm in business, isn't US already in the phone by default?

    I'm sorry for such a long post and am trying to figure this out myself but your expert help will be appreciated. Thanks.
    Last edited by raulb; 03-18-2008 at 10:09 PM.


  6. #1156
    Newbie Array

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

    Default

    Why do we need PhoneNumberTemplates_1.plist and _2 and _3. Where should they go? I am still trying to start callinfo to recognize polish numbers, no success at the moment

  7. #1157
    Professional Array

    Join Date
    Oct 2007
    Posts
    50
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    9

    Default

    Seriously, could someone point to a guide for people who haven't been following all 116 pages? I think I found my solution via search, but it would be nice to have confirmation.

    I'm aware of the Readme file, but it only refers to the .txt, doesn't tell you how to get it (which is the whole thing about editing the AppSupport script, right?)

    Thx.

  8. #1158
    Newbie Array

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

    Default

    Quote Originally Posted by timschuerewegen View Post
    40 50 70 90 ... FRANCE!
    I've tried the code for TW and it doesn't work. I've checked out kevin3688 iphone4.tw...but I can't read mandarin well enough.

    I've an upgraded iphone v1.1.4. I've installed appsupport appsupport original in the appsupport.framework folder. I've installed phonenumber.dylib,phonenumber.dylib.debug, phonenumbertemplates_1.plist,phonenumbertemplates_ 2.plist, phonenumbertemplates_3.plist in the support folder. It still doesn't work. I've even added the phonenumbertemplates.txt file into the support folder and played around with the code for Taiwan (tw) but still won't work. Help! Thanks.

  9. #1159
    Newbie Array

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

    Default

    Quote Originally Posted by timschuerewegen View Post
    If a phone number in Iran always requires an area code then the single template "ir 98 00 0 - ##########" (0 + 10) will do just fine. If not then you need a complete list of area codes and mobile phone "area codes" to teach decompo*******Number when an area code is 2 digits long and when it is 3 digits long. I did this for Belgium, Italy, Sweden and India.
    Hello Tim
    I've made some trials with polish numbers and callinfo.db. First of all, the phone template for Poland should be "pl 48 00 -", not "pl 48 00 - -", because calling from mobiles doesn't require NDD and reversly incoming calls are without NDD. Second, all local numbers are with 2 digits area code and mobiles are 3 or 4 digits "area code", depends on operator. At the moment I can identify local numbers but no mobiles. As the total lenght of polish numebers is 9 (no matter mobiles or local), I found your probable explanation for this (post cited above), to confirm this I tried also decompo function and in every case it showed 2 digits as an area code. Anyway, it seems impossible to be corrected by me (i.e teaching decompo). Could you possibly look at this and fix somehow? Thx in advance

    Here is complete list of polish numbers with area codes for local calls and "area codes" for mobile calls
    pl 48 00 -
    + + + + 1# #######
    + + + + 2# #######
    + + + + 3# #######
    + + + + 4# #######
    + + + + 5# #######
    + + + + 50# ######
    + + + + 51# ######
    + + + + 6# #######
    + + + + 60# ######
    + + + + 66# ######
    + + + + 6666 #####
    + + + + 69# ######
    + + + + 7# #######
    + + + + 70# ######
    + + + + 72# ######
    + + + + 78# ######
    + + + + 7833 #####
    + + + + 7865 #####
    + + + + 7866 #####
    + + + + 7867 #####
    + + + + 7868 #####
    + + + + 7869 #####
    + + + + 79# ######
    + + + + 8# #######
    + + + + 80# ######
    + + + + 88# ######
    + + + + 9# #######
    + + + + ## #######
    + + + + ### ######
    + + + + #### #####
    + + + + - ####
    Last edited by peha; 03-23-2008 at 07:45 PM.

  10. #1160
    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 peha View Post
    Hello Tim
    I've made some trials with polish numbers and callinfo.db. First of all, the phone template for Poland should be "pl 48 00 -", not "pl 48 00 - -", because calling from mobiles doesn't require NDD and reversly incoming calls are without NDD. Second, all local numbers are with 2 digits area code and mobiles are 3 or 4 digits "area code", depends on operator. At the moment I can identify local numbers but no mobiles. As the total lenght of polish numebers is 9 (no matter mobiles or local), I found your probable explanation for this (post cited above), to confirm this I tried also decompo function and in every case it showed 2 digits as an area code. Anyway, it seems impossible to be corrected by me (i.e teaching decompo). Could you possibly look at this and fix somehow? Thx in advance

    Here is complete list of polish numbers with area codes for local calls and "area codes" for mobile calls

    <snip>
    I have re-ordered your templates.

    pl 48 00 -
    + + + + 50# ######
    + + + + 51# ######
    + + + + 60# ######
    + + + + 6666 #####
    + + + + 66# ######
    + + + + 69# ######
    + + + + 70# ######
    + + + + 72# ######
    + + + + 7833 #####
    + + + + 7865 #####
    + + + + 7866 #####
    + + + + 7867 #####
    + + + + 7868 #####
    + + + + 7869 #####
    + + + + 78# ######
    + + + + 79# ######
    + + + + 80# ######
    + + + + 88# ######
    + + + + ## #######
    + + + + - ####


 

 

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:15 AM.
twitter, follow us!