电话呼叫的 URL 方案
就像“mailto”URL 前缀启动用户的默认邮件程序并使用指定地址启动新电子邮件一样,是否有类似的 URL 方案可以发起电话呼叫? 也许是“电话”、“呼叫”或“啜饮”?
顺便说一句,我的目标是使用 Cisco CUPS 的平台,因此可能有一种特定于平台的方式来发起 Cisco 特有的呼叫,但我想我应该先问更一般的问题。 但是,如果有人具体知道如何通过 CUPS 以编程方式发起呼叫,那就太好了。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
有这样一个URI方案:
tel
。 它有一个复杂的语法,但这里有一个简单的用法示例:有关完整规范,请参阅 http://www.ietf.org/rfc/rfc3966.txt。
There is such a URI scheme:
tel
. It has an elaborate syntax, but here is a simple example of its usage:For the full specification, refer to http://www.ietf.org/rfc/rfc3966.txt .
我正在寻找 Microsoft Office Communicator 的相同功能。 经过一番调查后,我发现以下 URI 语法将通过通信器发起 (VoIP) 电话呼叫:
例如:让通信器呼叫我的分机:
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:
eg: to get communicator to call my extension:
sip:
(或sips:
)是SIP 的官方 URI 方案,我认为 Skype 使用了callto:
,但已弃用。sip:
(orsips:
) is the official URI scheme for SIP, and I thinkcallto:
was used by Skype, but is deprecated.提供电话号码作为 URI 的官方标准如下:http://www.ietf.org /rfc/rfc3966.txt
它基本上表示使用
tel:
作为前缀,并在号码本身之前以+[国际拨号代码]
开头。 您可以将非数字字符作为分隔符(例如 -),但必须忽略它们。 因此,伦敦(英国)号码可能是:纽约(美国)号码:
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:A New York (US) number: