我有一个在 Lync 2013 Server 上运行并使用 MSPL 的 C# 托管应用程序。我将每个呼叫从 MSPL 路由到应用程序并在那里处理。Lync 到 Lync 的调用工作正常,它们的to
Header 格式为sip:user@domain.com
。但是,当从网络外部(非 lync,如手机等)向 Lyncuser 的工作电话发起呼叫时,Uri 就像sip:+12341234@domain.com;user=phone
(sip:[workphone]@domain)。将此字符串传递给 Presence Retrieval 函数不起作用。
var sips = new string[] { phone }; // The "To" number
presenceService.BeginPresenceQuery(sips, categories, null, null, null);
这总是返回一个空结果。如何首先检索与电话号码关联的用户以获取其存在?