×

Discussion Board

Results 1 to 8 of 8
  1. #1
    Registered User
    Join Date
    Aug 2003
    Posts
    40

    Getting MSISDN possible from Wap browser but not from Midlet

    Hi all,

    I'm creating an application that requires the user's msisdn for validation. I am able to get the msisdn via wap (http_x_up_calling_line_id) but the very same http field doesn't seem to be there when I'm connecting thru the midlet. I'm just wondering if anyone knows why? I've tested on Nokia devices and SonyEricsson devices.

    Sorry for the cross-posting as I'm not sure if this should appear in networking or general.

    Thanks in advance,
    -ow-

  2. #2
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    it's probably something to do with the browser, as the phone normally does not know it's own phone number. If you are getting it on the webserver side, it is probably the carriers doing, they are appending it or adding it to the headers along the way.

    maybe you could somehow mimic the headers they are using?
    Jason Glass
    http://IChiBanComputers.Com

  3. #3
    Registered User
    Join Date
    Dec 2005
    Location
    Brazil
    Posts
    1,884

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    Hi owcs,

    Try that - System.getProperty("wireless.messaging.sms.smsc").

    Check this doc - MIDP: System Properties (With Example) v1.1
    http://www.forum.nokia.com/info/sw.n..._v1_1.zip.html

    "The address of the SMS expressed using the syntax expressed by the msisdn item of the following BNF definition:

    msisdn ::== "+" digits | digits
    digit ::== "0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" |"8" | "9"
    digits ::== digit | digit digits"

    Is that what you're looking for?

    BR

  4. #4
    Super Contributor
    Join Date
    Mar 2006
    Location
    Phoenix, AZ. USA
    Posts
    556

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    I thought that was just the SMSC's number, can the MSISDN really be derived from it somehow? Dont some devices also support the MSISDN java systemproperty, like some motorola?
    Jason Glass
    http://IChiBanComputers.Com

  5. #5
    Registered User
    Join Date
    Aug 2003
    Posts
    40

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    Hi,

    Thanks for the prompt reply.

    I am getting the msisdn on the webserver side. When someone goes to a url on the webserver from the wap browser, their msisdn is found in the http_x_up_calling_line_id header (at least in my country).

    The problem is that if a person does the same from a midlet, the http_x_up_calling_line_id field is not there, so I cannot detect the user's msisdn on the webserver.

    I am suspecting that somehow the telcos are only appending that field to requests from a wap browser, but disables it for requests coming from a j2me app. Either that or that the phone itself is somehow preventing the msisdn from being detected/sent.

    Do you guys know of any other ways to detect the msisdn without using apis or manfacturer specifc system properties? I am trying to find methods that are as device independent as possible.

    I've thought of attaching the msisdn in the jad when the user downloads the app from the webserver by generating the jad on demand. But the problem is that if people 'forward' (pirate) the application to another phone the msisdn will still be that of the original user. And since the app provides some form of a subscription service it would severely affect the billing.

    Thanks
    -owcs-

  6. #6
    Registered User
    Join Date
    May 2009
    Posts
    2

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    Hi,

    We are facing the same problem where we are getting the MSISDN when we call the servlet from the browser but when same servlet is called thru J2ME App. We do not get MSISDN at server end.

    Pls help!!!

    Regards,
    Ganesh

  7. #7
    Nokia Developer Champion
    Join Date
    Feb 2009
    Location
    Noida, India
    Posts
    3,087

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    Quote Originally Posted by india123 View Post
    Hi,

    We are facing the same problem where we are getting the MSISDN when we call the servlet from the browser but when same servlet is called thru J2ME App. We do not get MSISDN at server end.

    Pls help!!!

    Regards,
    Ganesh
    Hi Ganesh,

    Check if the browser WAP requested routed through some WAP gateway, and your J2me http request is routed throught direct internet access point. Try connecting to your server from your J2me app using your Operator's wap gateway or the WAP proxy and see you might get the MSISDN headers.

    Or a workaround, do a platform request to pass your app userid (may even be auto-generated UID) to your server(via Browser), associate it with the MSISDN that you get with this request and show the user that his app is actived on this MSISDN and maually add this MSISDN haeder to all request that comes from this phone with this UID.

    thanks,
    ~Amitabh
    (Poster of the Month -Aug'09)
    Follow me on my blog for Innovative Mobile Apps

  8. #8
    Registered User
    Join Date
    May 2011
    Posts
    2

    Re: Getting MSISDN possible from Wap browser but not from Midlet

    Hi

    you can try to find solution to your problem in site: www . msisdn . org. You can even ask Moderator from this website.

    All the best
    Last edited by hartti; 2011-05-28 at 22:21. Reason: removed link as the site is not very useful

Similar Threads

  1. How to invoke the WAP browser from a midlet?
    By topjumper in forum Mobile Java General
    Replies: 2
    Last Post: 2005-02-15, 20:32
  2. Invoking WAP browser from midlet
    By kljajo in forum Mobile Java Networking & Messaging & Security
    Replies: 7
    Last Post: 2004-07-14, 03:03
  3. Invoking WAP browser from midlet
    By kljajo in forum Mobile Java General
    Replies: 2
    Last Post: 2004-06-21, 11:24
  4. localhost support in 3650 WAP browser?
    By hansomaier in forum Symbian
    Replies: 1
    Last Post: 2004-01-13, 11:09

Posting Permissions

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