Displaying phone number on iTunes by
aviegas from hackintosh forums
The phone number is stored on the SIM card, as the first "Own Number".
Somehow the AT&T activation writes the "Own Number" (the number assigned to the phone during registration) to the SIM card and that information is used for both the Settings->Phone and for iTunes.
There are 2 ways to enter a "Own Number", and both are challenging:
a) Using another phone:
Some phones (not the iPhone) have support to change/add the "Own Number". Do not ask me which phones do. I recall seeing it on some phones in the past but I do not remember. You will have to remove your SIM card, place in the other phone, reprogram it there and then return it to the iPhone. The challenge is to find a phone that supports it and navigate through its menu to find how to change the "Own Number".
b) Using the iPhone:
Unfortunately, the iPhone does not support setting the "Own Number", except during "Apple's Own Activation".
But there is a way to do it manually, using
minicom.
** NOTE ** If you use a SIM password, you must deactivate it before doing this!!! Make sure SSH is on if you disabled it. Do not forget to turn auto-lock off.
1) SSH to your phone using putty (windows) or terminal (mac).
2) Stop the CommCenter:
launchctl -w unload /System/Library/LaunchDaemons/com.apple.CommCenter.plist
3) Start minicom: minicom -s
4) Then proceed to change the Serial Port device name to /dev/tty.baseband
- Scroll down to "Serial Port"
- Press "A" and retype over the serial port device name
- Press "ENTER" twice
- Scroll down to EXIT and press ENTER
- Type "AT" and press ENTER. You should get an "OK" back
5) Enter the following commands: (should say "OK" after each command)
AT+CPBS="ON"
AT+CPBW=1,"XXXXXXXXXXXX",,"TTTTT"
AT+CPBR=1
AT+CNUM
The first command will set the Address Book storage to "Own Number"
The second command will write the number (XXXXXXXXXX) with an optional text "TTTT".
I use my carrier name as the optional text, some use their names. Pick whatever you like.
I've entered my number using "+CANNNNN", that is +, country code, area code and number:
Ex: +5521XXXXXXXX -> this wil be Brazil (55), Rio de Janeiro(21), and number (XXXXXXXX).
The type returned was 145.
For USA numbers i used 1(areacode)phonenumber:
Example: AT+CPBW=1,"18081234567",129
The type returned was 129.
The third command will display back whatever you have entered, plus the type, either "129" or "145".
"129" is a national pattern
"145" is a international pattern
The fourth command will display the "Own Number". This is the way it's queried, so we try to see the result.
6) Press "Ctrl-A", "Q" and "ENTER" to exit minicom.
7) Reload CommCenter:
launchctl -w load /System/Library/LaunchDaemons/com.apple.CommCenter.plist
8) Reboot your iPhone.
It should now show the "My Number" in Settings->Phone, and also on the iTunes screen (provided that the iPhone is on when it connects to iTunes, so the SIM card is already processed). Might need to restart computer for it to show "my number" if it does not show after running minicom commands.
Thanks to aviegas for the guide!
http://www.hackint0sh.org/forum/showthread.php?t=13679