SMS port number

Login to reply to this topic.
Thu, 2005-09-01 06:58
Joined: 2004-09-06
Forum posts: 235
    When I send a SMS to a particular port, where is this port number stored in the header. From where does the destination mobile read the destination port. I saw the structure of the PDU and found no field for destination port. In case of Ringing tones, operator logo, CLI and other smart messages the PDU has field for destination port number.
    I read some posts mentioning usage of "TP-User-Data" field for this purpose. Can this field be used for destination port? Can these messages invoke my MIDlet listening on that port?

Vink

Thu, 2005-09-01 13:52
Joined: 2005-08-29
Forum posts: 30
Re: SMS port number
Hi!
In Emulator we use port number 50000. and when application run on mobile the use port number 5000.
we can define sms port in the emulator setting and get in program (run time ) by the help of getAppProperty() method.and we can define in the program directly also.
send address made in program in this way:( "sms://"+ address + ":" + smsPort);address = destination phone number.
MiDlet can send to sms for any mobile but MIDlet can lisiten only those sms send by the MIDlet applecation only on same port(That sms  will not be go in Inbox).

kk
Fri, 2005-09-02 05:11
Joined: 2005-03-30
Forum posts: 13
Re: SMS port number
Hello,

The port number for sending SMS via J2ME is appended with the message body.
So when you write sms://<number>:<port-number> followed by message. This makes
AMS to invoke application that is listening on port number if such application is registered.

Hope this helps
  • Login to reply to this topic.