如何在tel:URI中包含扩展名? [英] How do I include extensions in the tel: URI?

查看:87
本文介绍了如何在tel:URI中包含扩展名?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前有一个提供电话号码的网页,其中一些电话号码带有扩展名,因此我编写了这样的HTML:

I currently have a webpage serving up phone numbers, some of these phone numbers have extensions so I have written the HTML like this:

<a href="tel:+44-1234-567;ext=88">+44-1234-56788</a> / <a href="tel:+44-1234-567;ext=99">+44-1234-56799</a

当我在Android浏览器中点击此页面并点击其中一个电话号码时,它会以以下方式加载到我的电话拨号器(英国三星Galaxy s2股票)中:

When I hit this page in my Android browser and tap one of the phone numbers, it loads up in my phone dialer (UK Samsung Galaxy s2 stock) as:

+44-1234-567;ext=88

我认为这是不正确的.当然,它应该省略;ext=字.

which I don't think is correct. Surely it should omit the ;ext= word.

我是否误读了实现tel的RFC?

Have I misread the RFC for implementing tel?

推荐答案

似乎正确的方法是使用逗号:

Seems the proper way to do it is use a comma:

<a href="tel:441234567,88">+44-1234-567 ext.88</a>

只需在iPhone和Android OS 2.1上进行测试.使用;ext=88会将 ext 位转换为使用扩展名拨打的号码(因此,它拨打类似35888而不是88的号码).

Just tested with iPhone and Android OS 2.1. Using ;ext=88 converts the ext bit into a number that is dialed with the extension (so it dials something like 35888 instead of 88).

这篇关于如何在tel:URI中包含扩展名?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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