Win a copy of Spring Boot in Practice this week in the Spring forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Mikalai Zaikin
  • Himai Minh

Phone number /J2ME ????

 
Ranch Hand
Posts: 184
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,

I would like to know is that possible to get the mobile phone number of the handset using J2ME?

I could recuperate the subscriber ID. is there a possibilty to link the subscriber ID and the phone number.

If it is not possible in J2Me, can it been done in other ways?

Thank you

OULD NADIF
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This question is asked in this forum approximately once a year
 
author
Posts: 1436
6
Python TypeScript Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have heard that when you make a HTTP connection through the carrier's proxy, the carrier might insert the phone number in the HTTP header. If this is true, you can have a servlet that bounces the phone number back to the MIDlet. Does anyone know whether this is workable? Thanks.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Some carriers insert the MSISDN (phone number) into a HTTP header, but there are several but's, including:
  • Not all operators do this (some won't publish the MSISDN at all to the service provider, some publish a "session ID" which they themselves can map to the MSISDN but which is useless for the service provider)
  • Every operator uses a different header name (most just use the default MSISDN header of their selected gateway product but every product has a different default...)
  • Some carriers require you to pre-register the URLs to which their gateway adds the MSISDN header


  • [ June 17, 2004: Message edited by: Lasse Koskela ]
     
    Michael Yuan
    author
    Posts: 1436
    6
    Python TypeScript Java
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Thanks, Lasse. Well, we have to wait for phone makers to implement JSR 177 to get MSISDN locally from the SIM card then!
     
    Ould Nadif
    Ranch Hand
    Posts: 184
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Hi all,

    Thanks a lot for your help.
    Waiting the JSR 177, my application has to ask the user to enter his own phone number.

    OULD NADIF
     
    Greenhorn
    Posts: 1
    • Mark post as helpful
    • send pies
      Number of slices to send:
      Optional 'thank-you' note:
    • Quote
    • Report post to moderator
    Yes but even if you can access the SIM card, there is no guarantee the MSISDN is on the card or is accurate (it can be set from software on phone)

    The network is the best bet, via the http method mentioned, OR via sending an SMS from the phone to your server via JSR 120. The MSISDN is always resolved on an SMS.
     
    Don't get me started about those stupid light bulbs.
    reply
      Bookmark Topic Watch Topic
    • New Topic