Javascript Skype for business URI 而不是 Skype
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/33542036/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Skype for business URI instead of Skype
提问by Neophile
As we have the option of opening links in skype by just providing the URI:
因为我们可以选择通过提供 URI 在 Skype 中打开链接:
skype:xyz?call
Can we do something similar to achieve the same functionality but it opens in Skype for Business? Kindly let me know.
我们可以做一些类似的事情来实现相同的功能,但它会在 Skype for Business 中打开吗?请让我知道。
Cheers.
干杯。
回答by Neophile
Found a solution for this after a lot of research. Best alternative to work with Skype for Business:
经过大量研究,找到了解决方案。使用 Skype for Business 的最佳替代方法:
sip:<[email protected]>
This would open the chat window for the user and the user can do whatever they want from there.
这将为用户打开聊天窗口,用户可以从那里做任何他们想做的事情。
回答by Magellan
Command-Line Parameters
命令行参数
tel:| Opens the Conversation window for an audio call but does not dial the specified number.
电话:| 打开音频呼叫的对话窗口,但不拨打指定号码。
callto:| Opens the Conversation window for an audio call but does not dial the specified number.
呼唤:| 打开音频呼叫的对话窗口,但不拨打指定号码。
sip:| Opens the Conversation window with the specified SIP Uniform Resource Identifier (URI) in the participant list.
啜饮:| 使用参与者列表中指定的 SIP 统一资源标识符 (URI) 打开对话窗口。
Sips:| If Lync 2013 is configured to use the Transport Layer Security (TLS) protocol, functions exactly like sip:. If TLS is not being used, displays a dialog box informing the user that a higher level of security is required.
啜饮:| 如果 Lync 2013 配置为使用传输层安全 (TLS) 协议,则其功能与 sip: 完全相同。如果未使用 TLS,则显示一个对话框,通知用户需要更高级别的安全性。
conf:| If URI is self, instantiates the focus and brings up roster-only view. Otherwise, brings up roster view but does not send INVITE.
配置:| 如果 URI 是 self,则实例化焦点并显示仅名册视图。否则,调出名册视图但不发送 INVITE。
im:| Displays an instant messaging (IM)-only Conversation window with the SIP URI. Accepts multiple SIP URIs specified inside angle brackets (<>) without any separator.
我:| 显示带有 SIP URI 的仅即时消息 (IM) 对话窗口。接受在尖括号 (<>) 内指定的多个 SIP URI,没有任何分隔符。
Exemple:
例子:
Tel:+14255550101 | Opens a phone-only view with +14255550101.
电话:+14255550101 | 使用 +14255550101 打开仅限电话的视图。
Callto:tel:+14255550101 | Opens a phone-only view with +14255550101.
呼叫:电话:+14255550101 | 使用 +14255550101 打开仅限电话的视图。
Callto:sip:[email protected] | Opens a phone-only view with [email protected].
电话:sip:[email protected] | 通过 [email protected] 打开仅限电话的视图。
sip:[email protected] | Opens a Conversation window with [email protected].
sip:[email protected] | 通过 [email protected] 打开对话窗口。
conf:sip:https://meet.contoso.com/kazuto/7322994 | Opens a Conversation window and displays meeting audio join options.
conf:sip:https://meet.contoso.com/kazuto/7322994 | 打开对话窗口并显示会议音频加入选项。
More information:
更多信息:
https://technet.microsoft.com/en-us/library/gg398376(v=ocs.15).aspx
https://technet.microsoft.com/en-us/library/gg398376(v=ocs.15).aspx
回答by jcuypers
Maybe useful for someone: This is how to use skype for business to get to skype users via O365 (external communications to skype network needs to be specifically allowed)
也许对某人有用:这是如何使用Skype for business 通过O365 访问Skype 用户(需要明确允许与Skype 网络的外部通信)
<a href="sip:[email protected]">Say hello</a>
回答by MarianoK
you can start a call or IM with Skype for Business, but you need to use the full URI, like
您可以使用 Skype for Business 发起呼叫或即时消息,但您需要使用完整的 URI,例如
im:sip:[email protected]
im:sip:[email protected]
if you just use the ID it will tell you that the contact does not exists, so this will not work:
如果您只是使用 ID,它会告诉您该联系人不存在,因此这将不起作用:
im:sip:ID
输入:sip:ID
Best Regards from Argentina, Marianok
来自阿根廷的问候,马里亚诺克
回答by Kurkula
If you use angular to dynamically call this try adding below to make sure it is not blocked
如果您使用 angular 动态调用它,请尝试在下面添加以确保它不被阻塞
var app = angular.module( 'myApp', [] )
.config( [
'$compileProvider',
function( $compileProvider )
{
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|chrome-extension):/);
// Angular before v1.2 uses $compileProvider.urlSanitizationWhitelist(...)
}
]);
and then call
然后打电话
<a href="sip:[email protected]">Say hello</a>
回答by Seb33300
I wasn't able to make it working with sip:
but it works with sips:
我无法使用它,sip:
但它可以使用sips:
<a href="sips:[email protected]">Open Skype Business</a>
回答by Dheeraj Vepakomma
From MSDN documentation:
从MSDN 文档:
Skype for Business Mobile URIs to initiate calls and chats using the Skype for Business mobile clients from websites and other apps.
General Syntax
"ms-sfb://" [operation] ["?" query ]
Examples
Start a chat
"ms-sfb://chat?url=user%40contoso.com" "ms-sfb://[email protected]"
Start a call
"ms-sfb://call?id=+1425-555-1234" "ms-sfb://[email protected]"
Start a video call (Android only):
"ms-sfb://[email protected]&video=true"
Skype for Business 移动 URI,用于使用 Skype for Business 移动客户端从网站和其他应用程序发起呼叫和聊天。
一般语法
"ms-sfb://" [operation] ["?" query ]
例子
开始聊天
"ms-sfb://chat?url=user%40contoso.com" "ms-sfb://[email protected]"
开始通话
"ms-sfb://call?id=+1425-555-1234" "ms-sfb://[email protected]"
发起视频通话(仅限 Android):
"ms-sfb://[email protected]&video=true"
回答by Niallith
Yes, you can use lync15: instead of skype:
是的,您可以使用 lync15: 而不是 Skype:
At least it opens Skype for Business... I'm still looking how to start chat - call - video call like for Skype Nothing in documentation, really annoying...
至少它打开了 Skype for Business ......我仍在寻找如何开始聊天 - 通话 - 视频通话就像 Skype 文档中没有任何内容,真的很烦人......
We are working on the same thing the same day :D
我们在同一天做同样的事情:D