I am also eager to know how to get the local telephone number. But as I know, there is no API to get the local mobile telephone number. If you get any progress in this issue, please let me know. My mail is: email@example.com
RE: Own telephone number from app on Nokia 7650
I need a way to uniquely identify users on the server so I am thinking about using their telephone numbers as a solution. I have an agent on the device which suppose to send the number to the server. But browsing docs does not answer the question: Which API shall I use to get the Mobile Station's telephone number on the device itself?
Thanks in advance
P.S Please excuse my English as I am not a native speaker.
Is there any way instead to receive the SIM ID or the msisdn of the SIM.
I read from some older posts that the basic reason why you can't get the MSISDN from the SIM card is that it is not there, meaning that it is not physically located anywhere in SIM, but only in operators network.
I'm quite sure that this it truth as well, since I remember thet my GSM number was changed ones without any need for changing the SIM card.
For every SIM there at least one IMSI,
as there is IMEI for every phone.
International Mobile Subscriber Identity = IMSI
International Mobile Equipment Identity = IMEI
( NOTE! for newer generation of sims or so called dual imsi sims there might be several IMSI:s but they are handled as two indivual sims packed to one in the network)
So how does the user identify himself in the operator network? First the operator orders a pack of sims, then he codes them with appropriate IMSI:s, then when you get one of these SIM and select some number they will say they will open the account and they do it by adding some rows to a database called HLR exempli gratia the lines which state that your IMSI has currently this MSISDN. For security reasons IMSI:s are really sent to GSM network only on attach as your power up your phone, and after that certain tokens are used which GSM network entities can use to know its you.
So the answers operator networks generates tokens that refer to your IMSI which is bound to some MSISDN( one or more ).
You can check your IMSI with certain low level headers, I quess etelagsm.h might do the trick as etelbgsm.h is the header which has power over some low level terminal staff. etelagsm.h is legendary rare in public and you could try some russian hacker site to find if it even exists.
You can also try to hack your SIM card itself get a good oscilloscope and go on
But I suggest for your to read some GSM tutorials and SIM/IMSI faqs ( ref: Google ) and you don't have to quess anymore.
Caveat: of course they may have done modifications to the platform so not all headers are guaranteed to work. In the case of CAdvGsmPhone etc. the .LIB files are identical so they haven't made any changes there.