2016-03-14 54 views
1

我正嘗試使用UCMA sdk構建解決方案,但無法訪問配置存儲。沒有它可以使用UCMA嗎?我有一個用戶名/密碼可以用來登錄到lync網絡,並認爲我可以訪問這樣的東西。沒有配置存儲複製的UCMA端點

+0

確保仿真器將 – BozoJoe

回答

2

是的,你可以用UserEndpoint來做到這一點。它不需要使用配置存儲進行任何複製(只要您擁有您所說的用戶名和密碼即可)。

我有應用&用戶端點位置之間的比較:http://blog.thoughtstuff.co.uk/2014/01/ucma-endpoints-choosing-between-application-and-user-endpoints/

,並使用用戶端點發送這裏的IM的工作例如:http://blog.thoughtstuff.co.uk/2013/03/creating-ucma-applications-with-a-userapplication-instance-example-sending-ims/

+0

我得到這個錯誤有用當我嘗試運行此代碼時: '在Microsoft.Rtc.Collaboration.dll中發生類型爲'Microsoft.Rtc.Signaling.TlsFailureException'的異常,但未在用戶代碼中處理 其他信息:目標主體名稱是incorrect' 任何想法如何解決它? – rohits

1

UCMA應用程序可以在兩種不同的模式運行:

  1. Untrusted (Client) Application

在此模式下,您不能創建「ApplicationEndpoint」,但是如果您擁有用戶的SIP地址和密碼,則可以創建「UserEndpoint」。

  1. Trusted (Server) Application

在這種模式下,您可以創建「ApplicationEndpoint」,您可以使用「UserEndpoint」創建模擬用戶,而無需用戶密碼。

可信應用程序的設置有兩種類型。

2.1。自動配置的可信應用程序 這是一個很容易設置代碼,但很難安裝在機器上運行。由於機器設置要求非常高,我不推薦這種設置。

2.2。手動配置的可信應用程序 這一個有更多的「設置」代碼,但更容易設置一臺機器運行。我會推薦這個設置,因爲我覺得整體設置要容易得多。

這兩種類型的受信任的應用程序都要求您在運行它們之前先在Lync中提供受信任的應用程序詳細信息setup

您使用的UCMA應用程序設置基於您如何配置CollaborationPlatform實例。

基本不信任(客戶端)應用:

var clientPlatformSettings = new ClientPlatformSettings("lync.front.end.server.address", SipTransportType.Tls) 
var collaborationPlatform = new CollaborationPlatform(clientPlatformSettings); 
... 
await Task.Factory.FromAsync(collaborationPlatform.BeginStartup, collaborationPlatform.EndStartup, null); 

自動置備信任的應用程序:

var serverPlatformSettings = new ProvisionedApplicationPlatformSettings("lync.front.end.server.address", "trusted application id") 
var collaborationPlatform = new CollaborationPlatform(serverPlatformSettings); 
... 
await Task.Factory.FromAsync(collaborationPlatform.BeginStartup, collaborationPlatform.EndStartup, null); 

手冊置備信任的應用程序:

var certificate = CertificateHelper.GetLocalCertificate("trusted application pool qfdn"); 
var settings = new ServerPlatformSettings("lync.front.end.server.address", Dns.GetHostEntry("localhost").HostName, trusted_application_port, trusted_application_gruu, certificate); 
... 
await Task.Factory.FromAsync(collaborationPlatform.BeginStartup, collaborationPlatform.EndStartup, null); 

有很多遺漏的細節。一旦你知道你想開發什麼類型的UCMA應用程序,你可以在網上搜索這種類型的具體例子。