How do I include extensions in the tel: URI?

Jarede picture Jarede · Feb 28, 2012 · Viewed 29.6k times · Source

I currently have a webpage serving up phone numbers, some of these phone numbers have extensions so I have written the HTML like this:

<a href="tel:+44-1234-567;ext=88">+44-1234-56788</a> / <a href="tel:+44-1234-567;ext=99">+44-1234-56799</a

When I hit this page in my Android browser and tap one of the phone numbers, it loads up in my phone dialer (UK Samsung Galaxy s2 stock) as:

+44-1234-567;ext=88

which I don't think is correct. Surely it should omit the ;ext= word.

Have I misread the RFC for implementing tel?

Answer

codemonkey613 picture codemonkey613 · May 29, 2012

Seems the proper way to do it is use a comma:

<a href="tel:441234567,88">+44-1234-567 ext.88</a>

Just tested with iPhone and Android OS 2.1. Using ;ext=88 converts the ext bit into a number that is dialed with the extension (so it dials something like 35888 instead of 88).