Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I include extensions in the tel: URI?

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?

like image 695
Jarede Avatar asked Feb 28 '12 13:02

Jarede


People also ask

How do I show extensions on my phone?

Type "ext." followed by a space and then the extension number. For example: XXX-XXX-XXXX, ext. 766.

Is a phone number a URI?

The telephone URI (tel URI) is used to identify resources using a telephone number. SIP allows requests to be sent to a tel URI. This means that the request-URI of a SIP request can contain a tel URI. The tel URI can contain a global number or a local number.


1 Answers

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).

like image 191
codemonkey613 Avatar answered Sep 21 '22 00:09

codemonkey613