Happy FOSS

Opensource, Technology, Programming & Computer Science

Best way to store numbers in mobile contacts

Its better to store the mobile numbers/phone numbers in the proper format.

That is the number along with country and area code prefixed appropriately.

If stored this way, there will be no problem, when one goes roaming.

For example, when within india, a contact with 04424XXXXXX is valid even while roaming.

As in India, “0” stands for dialing code for dialing an long distance call/calling a telephone number from a mobile network. But not valid while roaming Internationally.

So the best way to save it in contacts is +914424XXXXXX for a telephone in India

For a mobile it would be +9198845XXXXX

http://en.wikipedia.org/wiki/List_of_country_calling_codes

Country code can be intrepreted by moving right of symbol + in a phone/mobile number and matching it with the list given in the above link.

So the format to present visually describing a mobile number with country code in india would be

+91-98845XXXXX

Similarly the format to present visually describe the contry and area code of a telephone number in India would be

+91-44-24XXXXXX

The “-” in the above two example numbers is not valid for dialing, so for dialing the “-” are removed.

The “+” symbol is a placeholder for substituting the dialout code for the country from where the call is originating.

For India the international dialout code is 00 and for long distance call within India the dialout code is 0. But when dialing from mobile this is taken care of automatically by the mobile phone service provider. Thats the significance of “+” sign in mobiles 🙂

For more info on dialing to/from India

http://en.wikipedia.org/wiki/%2B91

Advertisements

October 4, 2008 - Posted by | Mobile | , , , ,

No comments yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: