Author Message
DavidOrtega
Joined: Apr 30, 2014
Messages: 3
Offline
Hello!

I'm creating a web application for make/answer calls, when an agent log in into the web application, i log in into the AES using this code:


JtapiPeer jtapiPeer = JtapiPeerFactory.getJtapiPeer(null);
provider = jtapiPeer.getProvider(PROVIDER_STRING);
getProvider().addProviderListener(this);
address = getProvider().getAddress(EXTENSION_STRING);
terminal = getProvider().getTerminal(EXTENSION_STRING);


and everything works fine until more less one hour, the agents automatically get disconnected from the AES and they have to connect again to continue working.

I was reading about session management and the "ResetApplicationSessionTimer" functionality but can not find any piece of code to follow, or which interface should i implements in the provider class to get access to those methods.

How can i to keep the connections alive?

Any help would be appreciated.

:)
MartinFlynn
Joined: Nov 30, 2009
Messages: 1922
Offline
ResetApplicationSessionTimer is a DMCC concept. It is not applicable for JTAPI.

The JTAPI Programmers Guide has a short section on Heartbeats. According to it, the JTAPI client library handles the heartbeat to the AE Services.

Your application can start a ProviderListener and receive an event if it looses connection to the AE Services.

Martin
Go to:   
Mobile view