Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Telephone Number format in WMA

 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some ambiguity about the number format used in (MessageConnection)Connector.open(destination)

destination will have the telephone number as well with PORT and sms://

the problem is there only with the telephone number...

Consider the following...

0094-77-2123454
where,

00-international access code
94- country code (Sri Lanka)
77 - infact 077 the telco
the rest is the subscriber number

what are the possible ways to represent the above in the destination string..

In fact i wont to have a uniform way when handling this for a local(0772123454) number or international one 009477-2123454

how about the + sign in front...?

can we use the international format when sending to a local number?

will it work if we follow this way 0094772123454?
 
Pradeep Gudipati
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
no put in the number as follows

+94077xxx
xxx is the subscriber number

no need for 00 (international calling)

e.g :
if you want to send an sms to a number from another country say india
the number would be

+9108037382829

where +91 country code
080 local bangalore code
37382829 some subscriber number

Thanks
Pradeep
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Pradeep..

That was helpful
 
Eduardo Marques
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know if this addresses what you've asked, but let me add the difference between specifying a port and not is relevant.

If you do not state the port then you are addressing a remote phone's SMS/MMS inbox but MIDlets on the remote side won't have access to it at least through the WMA API.

When a port is part of the address , it may be read by MIDlets using WMA in the remote phone. Note also that some ports may be reserved or blocked.
[ April 01, 2007: Message edited by: Eduardo Marques ]
 
Deepan Devadasan
Ranch Hand
Posts: 226
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marques...

Though it was not what i was referring, your comment will be useful to others in future...

You were correct...

Sending the SMS without specifying the port will reach the default, OEM/Native sms application on the target mobile device...
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic