Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

URL Scheme for Phone Call

Much like the "mailto" URL prefix launches the user's default mail program and starts a new email with specified address, is there a similar URL scheme that would initiate a phone call? Perhaps "phone," "call," or "sip"?

Incidentally, I'm targeting a platform that is using Cisco CUPS, so there may be a platform-specific way for me to initiate a call that is particular to Cisco, but I thought I'd ask the more general question first. However if anyone knows specifically how to programmatically initiate a call via CUPS, that would be great too.

like image 995
Jason Marcell Avatar asked Jun 17 '09 19:06

Jason Marcell


People also ask

What is a call URL?

Call URL can be used as an alternative for the Launch Application action on the iPad and Android devices. Specifically, any installed app supporting a URL Scheme can be called.

How do you code a phone number in HTML?

Start your code with <a href=“”></a> Make a note of where the quotation marks are, because you'll now enter your business phone number between the quotes. Make sure to enter it without dashes and enter “tel:” before you start typing your number. For example: <a href= “tel:+YOURNUMBERHERE”


2 Answers

There is such a URI scheme: tel. It has an elaborate syntax, but here is a simple example of its usage:

tel:123-4567 

For the full specification, refer to http://www.ietf.org/rfc/rfc3966.txt .

like image 32
abernier Avatar answered Oct 16 '22 01:10

abernier


The official standard for providing a telephone number as a URI is here: http://www.ietf.org/rfc/rfc3966.txt

It basically says use tel: as the prefix, and start the number with +[international dialling code] before the number itself. You can put non-numeric characters as separators (e.g. -) but they must be ignored. So a London (UK) number might be:

tel:+44-20-8123-4567 

A New York (US) number:

tel:+1-212-555-1234 
like image 185
rjmunro Avatar answered Oct 16 '22 01:10

rjmunro