我只是想知道UCMA 3.0 SDK是否支持此功能。 我计划使用SIP客户端向独立的UCMA应用程序发出呼叫,该应用程序将使用VXML来播放提示。感谢。
答案 0 :(得分: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.
}
答案 1 :(得分:0)
如果我的问题是正确的,你想创建一个独立的ucma应用程序,当有人使用sip电话打电话时可以播放提示。对?如果是这样,那是可能的。对于SIP手机,您可以使用Phoner lite或xlite。但是phoner lite不支持呼叫转移。 对于创建独立应用程序,请检查此http://www.ksac.com/blog/bid/58799/UCMA-3-0-Programs-Without-Lync-Server