电话的URL方案 [英] URL Scheme for Phone Call

查看:106
本文介绍了电话的URL方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

类似于"mailto" URL前缀会启动用户的默认邮件程序,并使用指定的地址启动新电子邮件,是否有类似的URL方案可以发起电话?也许是电话",通话"或"s饮"?

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"?

顺便说一句,我的目标是使用Cisco CUPS的平台,因此可能会有一种平台特定的方式让我发起特定于Cisco的呼叫,但我想我首先要问一个更一般的问题.但是,如果有人特别知道如何以编程方式通过CUPS发起呼叫,那也很好.

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.

推荐答案

将电话号码作为URI提供的官方标准在这里:

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

它基本上说使用tel:作为前缀,并在数字本身之前以+[international dialling code]开头数字.您可以将非数字字符用作分隔符(例如-),但必须将其忽略.因此,伦敦(英国)号码可能是:

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

这篇关于电话的URL方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆