Patent ID: 8243915

Claim:
A method for automatically formatting a telephone number based on location information, comprising: accessing a dialed number using a processor on a mobile device; determining a source location of the dialed number; determining one or more possible original phone number formats, based on the source location; matching the dialed number to a correct original format, selected from the one or more possible original phone number formats; breaking the dialed number into a set of parts, including one or more of: a dialing prefix, a country code, a carrier code, an STD code, an area code, a phone number, or an extension, using a template based on the correct original format to recognize how to break the dialed number into the set of parts; determining a current location of the mobile device; determining a destination format based on the current location; reformatting the dialed number into the destination format using the correct original format and the destination format by using a destination template corresponding to the destination format that provides how the parts of the dialed number are to be plugged into the destination template to generate a dialed number in the destination format; and sending the result of the reformatting to a dialer.