Page 31 of 132 FirstFirst ... 112122232425262728293031323334353637383940415181131 ... LastLast
Results 301 to 310 of 1316
Discuss [Solution] International/local caller ID matching at the iPhone "2G" (Rev. 1) - Hackint0sh.org; Originally Posted by zog! tim, i downloaded the latest version of your utility and ran ...
  1. #301
    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 zog! View Post
    tim, i downloaded the latest version of your utility and ran it as indicated; however, i get a bus error. i use the mac_os_x/i386/pntedit version as i have an intel imac. any ideas what i'm doing wrong? cheers!
    I recompiled with the "-mmacosx-version-min" parameter. Try http://www.sendspace.com/file/h3kvsk and tell me if it works.


  2. #302
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by timschuerewegen View Post
    No.

    As fas as I can tell MobilePhone only uses AppSupport's CPPhoneMinimumDigitsForCountry, CPPhoneNumberCopyActiveCountryCode and CPPhoneNumbersEqual functions.

    Try the following

    CheckAppSupport CPPhoneNumberCopyNormalized "address book phone number string"
    CheckAppSupport CPPhoneNumberCopyNormalized "dialpad phone number string"
    CheckAppSupport CPPhoneNumberCopyActiveCountryCode

    Then use the 3 returned values as inputs for CPPhoneNumbersEqual

    CheckAppSupport CPPhoneNumbersEqual <1> <2> <3>

    If it returns "1" then dialpad should show contact information.

    It's kinda funny, I was going to ask if there was another check function besides CPPhoneNumbersEqualStrict and saw your posting.

    I think I know what's going one with the matching and I have a proposed solution:

    My guess, is that the "recents calls list" and the SMS.app use the "Equal" call while the diapad is calling "EqualStrict".

    That can be the only reason, because it indeed fail the "EqualStrict" test, while it passes the "Equal" test.

    Now, I do not have the interface for each of these 2 functions, but I assume they should have the same interface (I hope).

    Would it be possible to add an option to pnedit to "divert" calls to the "EqualStrict" to the "Equal" call?

  3. #303
    Newbie Array

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

    Default

    If somebody can help me...

    I'm living in Belgium and i've got an iPhone with 1.1.2 Firmware (activated & unlocked).

    I had a problem: phone & sms app crashed when i ran them, but now i fixed the problem (modified AppSupport: add be..32, and added a plist file for my carrier with a symlink). So this problem is fixed, but now, i need a recognisition of all numbers on my phone...

    example of what i would want: i make a contact who is "Machin" with the number +32478123456.
    If i type manually his local number on my keypad: 0478123456, the phone recognize that is the phone number of Machin. Like in 1.1.1/1.0.2

    How can i edit my AppSupport for add this ?

    Best regards,
    Miskia.

  4. #304
    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 aviegas View Post
    Would it be possible to add an option to pnedit to "divert" calls to the "EqualStrict" to the "Equal" call?
    Not sure that would work and/or have the desired effect.

    unsigned long CPPhoneNumbersEqualStrict( char *PhoneNumber1, char *PhoneNumber2);
    unsigned long CPPhoneNumbersEqual( char *PhoneNumber1, char *PhoneNumber2, CFStringRef Country);

    The CPPhoneNumbersEqualStrict function internally uses the return value of CPPhoneNumberCopyActiveCountryCode as country. This means that the behaviour of xxxEqual is identical to xxxEqualStrict if Country equals the return value of CPPhoneNumberCopyActiveCountryCode.

    Example: if CPPhoneNumberCopyActiveCountryCode is "be" then following calls return the same value, there is no difference

    CPPhoneNumbersEqualStrict( "number1", "number2");
    CPPhoneNumbersEqual( "number1", "number2", "be");

  5. #305
    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 Miskia View Post
    example of what i would want: i make a contact who is "Machin" with the number +32478123456. If i type manually his local number on my keypad: 0478123456, the phone recognize that is the phone number of Machin. How can i edit my AppSupport for add this ?
    You have manually hex-edited AppSupport? Not a good idea. Instead go to page 23 of this thread, download "pntedit" (look for sendspace url) and follow the instructions. You need to add "be 32 00 0 1 7" (for landlines) and "be 32 00 0 3 6" (for mobiles) to the templates table. I also suggest you read all pages of this thread starting at page 23. You do not have to read anything before page 23 because those contain information for firmware 1.1.1 and older.


  6. #306
    peu
    peu is offline
    Respected Professional Array peu's Avatar

    Join Date
    Aug 2007
    Location
    Buenos Aires Argentina (I like ribs)
    Posts
    501
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    34

    Default

    Quote Originally Posted by aviegas View Post
    If indeed there is a way to add NDDs with more than 1 digit I do not see why having a x-rightmost digits matching algorithm.

    Till now my opinion about Apple's strategy was that they had the correct idea but where blinded by the NA numbering system with the 1 digit NDD. If we can indeed add more than 1, then it work as phone numbers are designed to work anywhere and it's just a question of defining the rules and picking a country on the list for the sacrifice.

    Now for Argentina:

    According to the list at: http://www.kropla.com/dialcode.htm

    IDD = 00
    NDD = 0

    But I could not understand how numbers are formated in term of area code and local number. Post it and we may help.
    I use these formats for showing the numbers in my phone:

    <array>
    <string>+54 ## #### ####</string>
    <string>+1 (###) ### ####</string>
    <string>0 ### ### ####</string>
    <string>+549 ## #### ####</string>
    <string>+54 9 11 #### ####</string>
    <string>## #### ####</string>
    <string>4### ####</string>
    <string>5### ####</string>
    <string>6### ####</string>
    <string>3### ####</string>
    <string>00 $</string>
    <string>18 ### $ </string>
    </array>

    Some are overlapping, but since it works like a charm, I didnt took the time to "fix it"

    The +1 there is because I sometimes forget to assign the country code to an US phone number


    I received many PMs from 1.1.2 users, sorry I can't help I'm still on 1.1.1
    Last edited by peu; 01-11-2008 at 10:50 PM.

    5>evaders>JB 6.12
    4S>5.01>>5.11>redsnow>JB 5.1.1
    4>Limera1n B1>4.3.2>IOS5 GM>redsnow>JB 5.0
    3GS>blackra1n RC3>3.1.2>Spirit>Unlock 3.1.2>Jailbreakme.com>Ultrasn0w 2.0>JB 4.01
    3G>redsn0w 0.72>ultrasn0w>Unlock 3.0>pwnage 3.14>JB 3.1.2
    2G>hardware unlock>elite-team virginizer>upgrade to 1.1.1>toc2rta JB>anysim 1.1>unlock 1.1.1>Restored to 1.1.3>Ziphone 2.2>Unlock 1.1.3>Modified Ziphone>iClarified unlock patch>Unlocked 1.1.4>QuickPWN>2.0.2>2.1>2.2>2.2.1>redsn0w 0.71>JB 3.0

  7. #307
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by timschuerewegen View Post
    Not sure that would work and/or have the desired effect.

    unsigned long CPPhoneNumbersEqualStrict( char *PhoneNumber1, char *PhoneNumber2);
    unsigned long CPPhoneNumbersEqual( char *PhoneNumber1, char *PhoneNumber2, CFStringRef Country);

    The CPPhoneNumbersEqualStrict function internally uses the return value of CPPhoneNumberCopyActiveCountryCode as country. This means that the behaviour of xxxEqual is identical to xxxEqualStrict if Country equals the return value of CPPhoneNumberCopyActiveCountryCode.

    Example: if CPPhoneNumberCopyActiveCountryCode is "be" then following calls return the same value, there is no difference

    CPPhoneNumbersEqualStrict( "number1", "number2");
    CPPhoneNumbersEqual( "number1", "number2", "be");
    Hummmm look at my results of the test I did that prompted me to the idea:

    Code:
    # ./CheckAppSupport CPPhoneNumberCopyActiveCountryCode
    br
    # ./CheckAppSupport CPPhoneNumbersEqual 0412181112222 81112222 br
    1
    # ./CheckAppSupport CPPhoneNumbersEqualStrict 0412181112222 81112222  
    0
    So the result is DIFFERENT, and consistent with the theory that the dialpad uses the Strict call.

  8. #308
    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 aviegas View Post
    So the result is DIFFERENT, and consistent with the theory that the dialpad uses the Strict call.
    You're right. I took another look at the disassembly and here's the C code.

    unsigned long CPPhoneNumbersEqualStrict( char *str1, char *str2)
    {
    return phoneNumbersEqual( str1, 0, str2, 0, 1, 0);
    }

    unsigned long CPPhoneNumbersEqual( char *str1, char *str2, CFStringRef str3)
    {
    return phoneNumbersEqual( str1, str3, str2, str3, 0, 0);
    }

    As you can see there's a difference in the 5th parameter of phoneNumbersEqual. I am going to add phoneNumbersEqual support to CheckAppSupport and see what that 5th and 6th parameter mean/do.

    EDIT: and for the sake of completeness

    unsigned long CPPhoneNumbersEqualWithCountries( char *str1, CFStringRef str2, char *str3, CFStringRef str4)
    {
    return phoneNumbersEqual( str1, str2, str3, str4, 0, 0);
    }

  9. #309
    The Man Array aviegas's Avatar

    Join Date
    Sep 2007
    Posts
    1,108
    Post Thanks / Like
    Downloads
    0
    Uploads
    0
    Rep Power
    73

    Default

    Quote Originally Posted by timschuerewegen View Post
    You're right. I took another look at the disassembly and here's the C code.

    unsigned long CPPhoneNumbersEqualStrict( char *str1, char *str2)
    {
    return phoneNumbersEqual( str1, 0, str2, 0, 1, 0);
    }

    unsigned long CPPhoneNumbersEqual( char *str1, char *str2, CFStringRef str3)
    {
    return phoneNumbersEqual( str1, str3, str2, str3, 0, 0);
    }

    As you can see there's a difference in the 5th parameter of phoneNumbersEqual. I am going to add phoneNumbersEqual support to CheckAppSupport and see what that 5th and 6th parameter mean/do.

    EDIT: and for the sake of completeness

    unsigned long CPPhoneNumbersEqualWithCountries( char *str1, CFStringRef str2, char *str3, CFStringRef str4)
    {
    return phoneNumbersEqual( str1, str2, str3, str4, 0, 0);
    }
    Many thanks. If you end up finding out the meaning of the parameters, and as I see they are static, maybe the optional patch is much simpler.

  10. #310
    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 aviegas View Post
    Many thanks. If you end up finding out the meaning of the parameters, and as I see they are static, maybe the optional patch is much simpler.
    I have updated CheckAppSupport with support for "phoneNumbersEqual".

    http://www.hackint0sh.org/forum/showpost.php?p=120538

    Please experiment with strict "0" and "1". It relates to how two decomposed phonenumbers are compared.


 

 

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