2011-04-27 83 views
0

我只是想知道UCMA 3.0 SDK是否支持此功能。 我打算使用SIP客戶端來呼叫獨立的UCMA應用程序,該應用程序將使用VXML來播放提示。謝謝。使用UCMA 3.0創建SIP客戶端

+0

只是爲了檢查 - 通過SIP客戶端,你的意思的Lync/Office Communicator的,或其他SIP客戶端?而通過單機版,您的意思是沒有連接到Lync/OCS基礎設施的UCMA應用程序?如果是這樣,它將連接到什麼? – 2011-04-27 14:51:44

+0

1.我的意思是像XLite這樣的SIP客戶端 – user646073 2011-05-03 02:58:26

回答

0

如果我得到您的問題是正確的,您希望創建獨立的ucma應用程序,可以在有人使用sip電話呼叫時播放提示。對?如果是的話,這是可能的。對於SIP電話,您可以使用Phoner lite或xlite。但是phoner lite不支持呼叫轉移。 要創建獨立應用程序,請檢查此http://www.ksac.com/blog/bid/58799/UCMA-3-0-Programs-Without-Lync-Server

3

您需要首先配置應用程序端點,然後再執行常規應用程序激活步驟。

使用UCMA 3.0 API後,請按照下列步驟操作:

1) Create a new collaboration platform. Using 



X509Certificate2 cert ="your certificate thumb here"; 

CollaborationPlatform _collabPlatform; 

    ServerPlatformSettings settings = new ServerPlatformSettings(Name, LocalhostFQDN, ServicePort, ServerGruu, cert); 

_collabPlatform = new CollaborationPlatform(settings); 
    _collabPlatform.AllowedAuthenticationProtocol = SipAuthenticationProtocols.Ntlm; 
_collabPlatform.BeginStartup(PlatformStartupCompleted, _collabPlatform); 

2) Create a new Endpoint. 
Here is the callback. 

     private void PlatformStartupCompleted(IAsyncResult result) 
       { 

      try 
      { 
       _collabPlatform.EndStartup(result); 

       ApplicationEndpointSettings settings = new ApplicationEndpointSettings(AgentUri, ServerFQDN, ServerPort); 
        // For registered endpoints (recommended). 
        settings.UseRegistration = true; 
        _localEndpoint = new ApplicationEndpoint(_collabPlatform, settings); 

        _localEndpoint.BeginEstablish(EndpointEstablishCompleted, null); 

      } 
      catch (ConnectionFailureException connFailEx) 
      { 
       // ConnectionFailureException will be thrown when the platform cannot connect. 

      } 
      catch (RealTimeException rte) 
      { 
       // Any other RealTimeException could occur due to other error. 

      } 

      } 
     } 


     private void EndpointEstablishCompleted(IAsyncResult result) 
      { 
       _localEndpoint.EndEstablish(result); 
      //Register Event for incoming call here. 
      }