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

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

问题描述

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

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 的官方标准在这里: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

它基本上说使用tel:作为前缀,并在号码本身之前以+[international dialing 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

纽约(美国)号码:

tel:+1-212-555-1234

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

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