SMS port number
| Thu, 2005-09-01 06:58 | |
|
|
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 |






Forum posts: 30
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
Forum posts: 13
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