在用户接受呼叫之前执行 Lync 2010 分机代码
我希望在每次 Lync 2010 收到呼叫时执行一些自定义代码。我使用对话窗口扩展 (CWE) 进行了尝试,其中包含 Silverlight 客户端,并且 Silverlight 客户端使用 Lync API,如下所示:
var lync = LyncClient.GetClient();
lync.ConversionManager.ConversionAdded += ...
问题是,仅当用户接受传入呼叫时才会执行此代码。如何在接到电话时准确地执行这样的代码? 不是在用户接听电话之后,而是在“电话铃声响起”时?
谢谢
I'd like to execute some custom code every time Lync 2010 receives a call. I tried it with a Conversation Window Extension (CWE), which contains a Silverlight client, and the Silverlight client uses the Lync API, like this:
var lync = LyncClient.GetClient();
lync.ConversionManager.ConversionAdded += ...
The problem is, this code gets executed only when the user accepts an incoming call. How can I execute code like this exactly in the moment when the call comes in? Not after the user accepts the call, but while "the phone rings"?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
没错,只有当您有对话窗口可以显示扩展程序时,扩展程序才会显示 - 这意味着首先接受对话。
如果您想捕获来电,您可以使用 Lync SDK 来执行此操作 - 在 这个问题在这里
如果您正在尝试构建屏幕弹出类型的应用程序,请参阅这篇文章
That's right, the extension will only be displayed when you have a conversation window to show it in - which means accepting the conversation first.
If you want to trap incoming calls you can do this with the Lync SDK - theres more info on exactly how to do this in the accepted answer to this question here
If you're trying to build a screen-pop type application, see this post