我只是想知道UCMA 3.0 SDK是否支持这一点。我计划使用SIP客户端向一个独立的UCMA应用程序发出呼叫,该应用程序将使用VXML播放提示。谢谢。
发布于 2012-12-11 14:15:34
在一般的应用程序激活步骤之后,您需要首先提供一个应用程序端点。
在以下情况下使用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.
}发布于 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
https://stackoverflow.com/questions/5804536
复制相似问题