What the wap? Linking to phone numbers in WAP applications

I was doing a WAP application (not entirely the truth – I was doing a WEB site with a layout that matches the small screen on a mobile phone) for a customer.
The application is a simple integration to their contacts database. My customer then asks: “Isn’t it possible to make the phone numbers linkable so when I click them, my phone automatically rings up the selected number?”
The answer is: Yes you can. And it’s pretty simple. And it works both on my old Nokia 6021 and on the new IPhone. In fact, any phone conforming to the WTAI (Wireless Applicaton Protocol Interface) can use this.
This is a link to a phone number:

<a href="wtai://wp/mc;+4533743330">Call Pentia A/S</a>

The prefix wtai://wp/mc; WAP-enables the link so you can click on it.
There are other prefixes available:

  • wtai://wp/mc; – Dial number
  • wtai://wp/ap; – Put number in your contacts list
  • wtai://wp/sd; – Send DTMF sequence trough voice call. For example wtai://wp/sd;555*1234

About briancaos

Developer at Pentia A/S since 2003. Have developed Web Applications using Sitecore Since Sitecore 4.1.
This entry was posted in General .NET and tagged , . Bookmark the permalink.

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