电话网址方案

与“ mailto”URL 前缀启动用户的默认邮件程序并启动具有指定地址的新电子邮件非常相似,是否存在类似的 URL 方案来启动电话呼叫?也许是“电话”“电话”或者“小口喝”?

顺便说一句,我的目标平台是使用思科 CUPS,所以可能有一个平台特定的方式来启动一个特定于思科的呼叫,但我认为我会问更一般的问题第一。然而,如果有人知道如何通过 CUPS 以编程方式发起一个调用,那就太好了。

80147 次浏览

sip: (or sips:) is the official URI scheme for SIP, and I think callto: was used by Skype, but is deprecated.

I'm after the same sort of functionality for Microsoft Office Communicator. After a bit of investigation I found that the following URI syntax will initiate a (VoIP) phone call via communicator:

tel:+number

eg: to get communicator to call my extension:

tel:+7780

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 .

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