URL Scheme for Phone Call

2019-01-10 19:46发布

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.

4条回答
仙女界的扛把子
2楼-- · 2019-01-10 20:29

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
查看更多
啃猪蹄的小仙女
3楼-- · 2019-01-10 20:45

The official standard 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
查看更多
我只想做你的唯一
4楼-- · 2019-01-10 20:47

sip: (or sips:) is the official URI scheme for SIP, and I think callto: is the one used by skype.

查看更多
不美不萌又怎样
5楼-- · 2019-01-10 20:48

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 .

查看更多
登录 后发表回答