【问题标题】:use UCMA 3.0 to create a SIP client使用 UCMA 3.0 创建 SIP 客户端
【发布时间】:2011-04-27 13:01:55
【问题描述】:

我只是想知道 UCMA 3.0 SDK 是否支持这个。 我计划使用 SIP 客户端向独立的 UCMA 应用程序发出呼叫,该应用程序将使用 VXML 播放提示。谢谢。

【问题讨论】:

  • 只是为了检查 - 通过 SIP 客户端,您是指 Lync/Office 通信器,还是其他 SIP 客户端?您所说的独立是指未连接到 Lync/OCS 基础结构的 UCMA 应用程序吗?如果是这样,它将连接到什么?
  • 1.我的意思是像 XLite 这样的 SIP 客户端

标签: sip vxml ucma


【解决方案1】:

您需要先按照常规应用程序激活步骤配置应用程序端点。

之后使用 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.
             }

【讨论】:

    【解决方案2】:

    如果我的问题正确,您想创建独立的 ucma 应用程序,当有人使用 sip 电话呼叫时,该应用程序可以播放提示。对?如果是这样,这是可能的。对于 sip 电话,您可以使用 Phoner lite 或 xlite。但是 phoner lite 不支持呼叫转移。 要创建独立应用程序,请检查此http://www.ksac.com/blog/bid/58799/UCMA-3-0-Programs-Without-Lync-Server

    【讨论】:

      猜你喜欢
      • 2015-06-01
      • 2013-01-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-12-07
      • 1970-01-01
      • 2012-04-20
      相关资源
      最近更新 更多