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

查看:28
本文介绍了如何在 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:

+44-1234-567 ext.88

刚刚在 iPhone 和 Android OS 2.1 上进行了测试.使用 ;ext=88ext 位转换为使用分机拨打的号码(因此它拨打的是 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天全站免登陆