My Blog

contains PHP and other web related content. (Sometimes there are some off topic things - don't freak out!)

Archive for the ‘mobile’ Category

Dialing Phone Numbers from a Webpage

Monday, January 19th, 2009

I’ve recently been investigating making some better mobile accessible pages for some of my projects. I’ve seen pages that allow you to dial a phone number directly from the webpage – so I thought I’d investigate…

WTAI – Mobile Protocol

The WTAI protocol is a robust set of specs to add additional functionality to web accessible phones (see more here on the OMA Technical Section). What I’m really interested in, however, is the ability to dial a phone number and add a phone number to the contacts. I’ve also heard tell that some phones do not automatically prompt the user for running this command. My moto q9c does. Just keep this in mind when using these commands for designing your pages.

Dial a Phone Number

The first number we’re going to Dial is 414.555.1212. From a usability point of view, you should also clearly label your link. The format for this link is:

wtai://wp/mc;##########

The #’s represent the phone number. See my example code:

1
<strong>Call me now: </strong><a href="wtai://wp/mc;4145551212">414.555.1212</a>

Obviously, this will make the link access the WTAI protocol dialing method.

Storing a Contact

The format for this is similar:

wtai://wp/ap;##########;XXXXXXXXXXXXXX

The #’s represent the phone number, the X’s represent the name the contact will be stored as. See my code example:

1
<a href="wtai://wp/ap;4145551212;Aaron Saray">Add Me to your contacts</a>
  • twitter loader

Follow me on twitter: @aaronsaray

The views on this website are my own and do not reflect the opinions of my employer or clients.
Creative Commons License Home | Open Source | Book | Music | Art | Bio | Resume | Contact
My Baby