Steve:
We are getting the events like this:
[code]
try {
while(true) {
response = receiveFromTserver(this.protocol,
this.tSvMode);
if (response == null) {
objLog.WriteLog(objLog.DEBUG,
"DoQueueFromTserver(run)", "Info: T-server's a reply is null");
Thread.sleep(1000);
continue;
}
objLog.WriteLog(objLog.INFO, "DoQueueFromTserver(run)",
response.toString());
eventId = response.messageId();
switch(eventId) {
case EventAgentLogin.ID:
case EventAgentLogout.ID:
case EventRegistered.ID:
case EventAgentReady.ID:
case EventRinging.ID:
case EventEstablished.ID:
case EventAbandoned.ID:
case EventHeld.ID:
case EventRetrieved.ID:
case EventPartyChanged.ID:
case EventReleased.ID:
case EventAgentNotReady.ID:
case EventAttachedDataChanged.ID:
case EventError.ID:
case EventDialing.ID:
case EventPartyAdded.ID:
case EventPartyDeleted.ID:
objT.sendResponseToClient(this.tSvName,
response, dnInfo);
objLog.WriteLog(objLog.DEBUG,
"DoQueueFromTserver(run)", "T-server Event( " +
CodeIndication.getTseverEvent(eventId) +
" ) ---> client thisDN(" + dnInfo.get("dn") +
") orgConnID (" + dnInfo.get("cn") + ")");
break;
default: break;
}
}
} catch (Exception e) {
objLog.WriteLog(objLog.ERROR, "DoQueueFromTserver(run)",
"Error : T-server's protocol broken thisDN["+this.tSvName+"] ==> " + e);
return;
}
[/code]
Are you doing it the same way as well?