📄 appmpcallcontrolmanagerimpl.java
字号:
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -