关于'callto:'URI和Safari的公共服务公告

Skype的— the high-fidelity voice over IP chat/phone service — supports the “callto:” URI schemeWhat this means is that in the same way a “mailto:” link can be used to initiate a new email message from a web page:

<a href =“mailto:[email protected]“>给我发电子邮件</a>

您可以使用“callto:”URI来发起Skype呼叫To send a message to someone with the Skype username “example”:

<a href="callto://example">通过Skype给我打电话</a>

Using the “SkypeOut” feature, you can use Skype to make phone calls, which for international calls can be remarkably cheaper than direct phone-to-phone connectionsJust use the phone number in place of the Skype username, prefixed by an international calling code (“+1” within the U.S.):

<a href="callto://+12125551234">从Skype拨打我的电话</a>

除了最后一个例子不适用于Safari:“callto://用户名” URIs work just fine; “callto://电话号码URIs don’t work at all. You click them and nothing happens.

解决方案是在“callto:”方案之后不使用斜杠:

<a href="callto:+15558675309">珍妮,你得到了我的号码。</a>

他们会工作得很好I have no idea which format is “correct”, but given that “mailto:” URIs have never used slashes, my money is on the no-slash format being canonicalThe most authoritative source I could find is这个MSDN“CallTo URL”开发者文档, which indicates the slashes should not be included.

Firefox (and other Mozilla-derived browsers, such as Camino) work just fine with “callto:” URIs with or without the “//”; Safari allows for the “//” if the recipient is a Skype username, butif it’s a phone number.

Skype集成在Joyent地址簿中。

因此,如果您正在进行Skype集成 - 或者,如此我们call it in the Web 2.0 world, a “Skype mash-up” — don’t use slashes in your “callto:” URIs if you want them to work in Safari.

以前: '重启Apache'AppleScript
下一个: 快活