×

Discussion Board

Results 1 to 7 of 7
  1. #1
    Registered User
    Join Date
    Nov 2009
    Location
    Russia, Chelyabinsk
    Posts
    9

    why get phone number?

    Hi! Why get phone number in Symbian program?

    This code return empty string:

    TGsmSmsTelNumber tel;
    fwrite (tel.iTelNumber.Ptr(), 2, tel.iTelNumber.Length(), f);

    help, may by some body have example?

  2. #2
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: why get phone number?

    What kind of phone number are you interested in?
    Nokia Developer Wiki Moderation team

  3. #3
    Registered User
    Join Date
    Nov 2009
    Location
    Russia, Chelyabinsk
    Posts
    9

    Re: why get phone number?

    Quote Originally Posted by kiran10182 View Post
    What kind of phone number are you interested in?
    i developed client-server application. phone number or imei need for authorization. imei string is very big.

  4. #4
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: why get phone number?

    Quote Originally Posted by bitset View Post
    i developed client-server application. phone number or imei need for authorization. imei string is very big.
    In short, you may not get your own Phone number using any Public API(nor with the priate APIs) as the most of the network operators do not have any mapping of phone number with the SIM card and the phone number is not written any where on your device which you can retrieve.

    Of course, you can get IMEI of your device easily. Check this: Reading IMEI in 3rd Edition
    Nokia Developer Wiki Moderation team

  5. #5
    Nokia Developer Moderator
    Join Date
    Mar 2003
    Location
    Lempäälä/Finland
    Posts
    29,168

    Re: why get phone number?

    And also you can identify the SIM card with IMSI: http://wiki.forum.nokia.com/index.ph...in_3rd_Edition

  6. #6
    Registered User
    Join Date
    Jun 2008
    Location
    India
    Posts
    1,048

    Re: why get phone number?

    You can't find own phone number by any API or any language. In general, the SIM card doesn't not know its own number, nor use it for anything. Only the network (operator's servers) needs to know it.

    Operators could put the phone number the SIM card is associated with on the SIM, but generally they don't (it serves no purpose for making or receiving calls or messages there).

  7. #7
    Nokia Developer Champion
    Join Date
    Mar 2006
    Location
    Helsinki, Finland
    Posts
    8,347

    Re: why get phone number?

    Quote Originally Posted by sumit.rathi View Post
    You can't find own phone number by any API or any language. In general, the SIM card doesn't not know its own number, nor use it for anything. Only the network (operator's servers) needs to know it.

    Operators could put the phone number the SIM card is associated with on the SIM, but generally they don't (it serves no purpose for making or receiving calls or messages there).
    Don't you like this: http://discussion.forum.nokia.com/fo...23&postcount=4 ?

    Or search for MSISDN on this discussion board.
    Nokia Developer Wiki Moderation team

Similar Threads

  1. MMS using IP ADDRESS not phone number?
    By koninja in forum Symbian Networking & Messaging (Closed)
    Replies: 1
    Last Post: 2009-10-06, 08:51
  2. Replies: 13
    Last Post: 2009-08-26, 03:50
  3. Nokia Gamer (GamR) - concept phone
    By tgm91 in forum General Development Questions
    Replies: 4
    Last Post: 2008-10-01, 21:34
  4. HELP - RCall - Dial voice number crash
    By cmryan in forum Symbian Networking & Messaging (Closed)
    Replies: 0
    Last Post: 2004-02-13, 14:53

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×