To all OpenMedia PSDK Experts :
I am trying to let the MessageHandler in my code to intercept the corresponding "[b]EventAck[/b]" event after connecting to the IXNServer without any success. I need to be able to have access to the [b]EventAck[/b] to get the [b]ProxyClientID[/b] info, so that, I can use it to other requests, such as, "RequestAgentState", "RequestAgentLogout" etc.
Following snippet is taken from my script :
-----------------------------------------------------------------------------------------
InteractionServerProtocol.setMessageHandler(new ReceivedMessageHandler())
InteractionServerProtocol.setClientName("ixnClient");
InteractionServerProtocol.setClientType(InteractionClient.AgentApplication);
private class ReceivedMessageHandler implements MessageHandler {
public void onMessage(Message message) {
switch(message.messageId()) {
case EventAck.ID:
System.out.println("\n" + message.toString());
EventAck _evAck = (EventAck)message;
_prxyClntID = _evAck.getProxyClientId();
System.out.println("\n Proxy Client ID" + _prxyClntID);
break;
default:
System.out.println("Unsolicited event: \n" + message.toString());
}
}
}
------------------------------------------------------------------------------
When I execute the code, I do see the following in the IXNServer log :
------------------------------------------------------------------------------
16:41:30.376 Trc 26015 Received message 'RequestRegisterClient' ('100') from client '[no name]' - Unknown:377343:59, message attributes:
attr_client_name [str] = "ixnClient"
attr_client_type [int] = 2 [AGENT APPLICATION]
attr_ref_id [int] = 1
16:41:30.376 Trc 26102 New agent application registered, client 377343:59, name: ixnClient
16:41:30.376 Trc 26016 Sending message 'EventAck' ('125') to client 'ixnClient' - Agent application:377343:59, message attributes:
attr_ref_id [int] = 1
attr_prxy_client_id [int] = 377343
attr_extension [list, size (unpacked)=187] =
'ApplicationName' [str] = "Genesys Interaction Server"
'ServerVersion' [str] = "8.5.107.22"
'ServerVersionFamily' [int] = 8
'ServerVersionMajor' [int] = 5
'ServerVersionMinor' [int] = 107
'ServerVersionBuild' [int] = 22
----------------------------------------------------------------------
I expect the EventAck to come across and the MessageHandler should be able to parse it to get the desired data. However, it never happens.
The same Message Handler code works just fine with the Voice Media, and it gets the "[b]EventLinkConnected[/b]" immediately.
I don't know what I am missing here for the Interaction Server.
I will really appreciate your help.
Kind Regards,