appmpcallcontrolmanagerimpl.java
来自「中兴公司在parlayx开发方面的培训文档」· Java 代码 · 共 56 行
JAVA
56 行
package samples;
public class AppMPCallControlManagerImpl
extends org.csapi.cc.mpccs.IpAppMultiPartyCallControlManagerPOA
{
public AppMPCallControlManagerImpl() {}
public org.csapi.cc.mpccs.TpAppMultiPartyCallBack reportNotification(
org.csapi.cc.mpccs.TpMultiPartyCallIdentifier callReference,
org.csapi.cc.mpccs.TpCallLegIdentifier[] callLegReferenceSet,
org.csapi.cc.TpCallNotificationInfo notificationInfo,
int assignmentID)
{
// to create a new thread to handle the notification so that
// server is not hold up
//
(new Thread()
{
public void run() {
TheApplication.reportNotifyTask(callReference, callLegReferenceSet,
notificationInfo, assignmentID);
}
}
).start();
// This is the way in POA
//
IpAppCallLeg leg = org.csapi.cc.mpccs.IpCallLegHelper.narrow(
theApplication.rootPOA.servant_to_reference(new IpAppCallLegImpl());
org.csapi.cc.mpccs.IpAppCallLeg[] appCallLegSet =
new org.csapi.cc.mpccs.IpAppCallLeg[callLegReferenceSet.length];
for(int i=0;i< appCallLegSet.length;i++)
appCallLegSet[i]=leg;
org.csapi.cc.mpccs.TpAppMultiPartyCallBack callback =
new org.csapi.cc.mpccs.TpAppMultiPartyCallBack();
callback.AppMultiPartyCallAndCallLeg(
new org.csapi.cc.mpccs.TpAppCallLegCallBack(
new IpAppMPCall(), appCallLegSet));
return callback;
}
public void callAborted (int callReference){}
public void managerInterrupted ()
{
}
public void managerResumed ()
{
}
public void callOverloadEncountered (int assignmentID)
{
}
public void callOverloadCeased (int assignmentID)
{
}
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?