首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >使用UCMA 3.0创建SIP客户端

使用UCMA 3.0创建SIP客户端
EN

Stack Overflow用户
提问于 2011-04-27 21:01:56
回答 2查看 941关注 0票数 0

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

EN

回答 2

Stack Overflow用户

发布于 2012-12-11 14:15:34

在一般的应用程序激活步骤之后,您需要首先提供一个应用程序端点。

在以下情况下使用ucma 3.0 API执行以下步骤:

代码语言:javascript
复制
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.
             }
票数 3
EN

Stack Overflow用户

发布于 2011-07-18 17:21:10

如果我没弄错你的问题,你想创建一个独立的ucma应用程序,当有人使用sip电话打电话时,它可以播放提示。对吗?如果是这样的话,这是可能的。对于sip电话,您可以使用Phoner lite或xlite。但是phoner lite不支持来电转接。对于创建独立应用程序,请选中此http://www.ksac.com/blog/bid/58799/UCMA-3-0-Programs-Without-Lync-Server

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/5804536

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档