" /> Monitor Agent login/logout State via Voice Platform SDK - Genesys CTI User Forum

Author Topic: Monitor Agent login/logout State via Voice Platform SDK  (Read 6148 times)

Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Monitor Agent login/logout State via Voice Platform SDK
« on: February 16, 2010, 05:46:17 AM »
Advertisement
Hi,

I am trying to connect to TServer via the Application Blocks and trying to monitor Agent State changes, i.e Agent Login, Agent Ready, Agent Not Ready and Agent Logout etc...

My Question here is, can I simply go ahead and register respective EventAgentXXXX handlers upon opening the protocol object or do I need to first get a list of DN's and then request for events against each DN to know which agent login and logout?

Any hints/suugestions!!!

-Jay

Offline imaki

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #1 on: February 16, 2010, 06:49:37 AM »
You don't need to register each event against each dn. You only need to register all dns and all events, you want to see..

Tserver needs to know who is listening each dn, and application block(?) wants to know what events you want to receive.

Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #2 on: February 16, 2010, 07:38:50 AM »
Thanks imaki..

Thanks for a quick reply.

So, how can i register all DN's, which I would like to monitor?

FYI-
So far my code has snippets to create a TServerConfiguration object, registered with ProtocolManagementServiceImpl of PMAB, openes the protocol manager object to conect to TServer and then had code to register event handlers to EventBrokerService. Just like the API described.

I also have code to monitor EventAgentLogin and EventAgentLogout, trying to get agentId and associated DN.

- Jay

Offline imaki

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #3 on: February 16, 2010, 01:07:49 PM »
One way is to write all by hand. The second is to use ConfigurationSDK, and get list of all dns from configserver..

If you mean, that how to register dn itself. Pick up the VoicePlatformSDK example, and find the loginbuttonhandler.

There you can find this:
..
  RequestRegisterAddress requestRegisterAddress = RequestRegisterAddress.Create(thisDn, RegisterMode.ModeShare, ControlMode.RegisterDefault, AddressType.DN);

  int uniqueId = GenerateUniqueId();
  requestRegisterAddress.ReferenceID = uniqueId;

  mProtocolManager[tServerName].Send(requestRegisterAddress);
..

Hopefully this is something you look after..

Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #4 on: February 17, 2010, 04:44:51 AM »
Well, I am trying to just listen and log the events from all the phones, which are already available in a contactcenter/bpo using the Platform SDK.

- Jay

Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #5 on: February 17, 2010, 02:21:32 PM »
Imaki,

Is RequestRegisterAddress is used to register a new DN into genesys system or can i use to monitor an already existing DN?

Thanks
- Jay

Offline René

  • Administrator
  • Hero Member
  • *****
  • Posts: 1832
  • Karma: 62
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #6 on: February 17, 2010, 03:54:58 PM »
Hi Jay,

RequestRegisterAddress is a request telling to TServer that your application wants to be notified about operations/status related to specified DN. If TServer itself hasn't registered that DN on the switch then it will do it. But be careful because TServer can be configured to not allow registration of DNs that are not present in Genesys configuration (CME).

R.


Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #7 on: February 17, 2010, 05:12:04 PM »
Cool...

That is what I want it to do.

I am just intrested in monitoring an existing DN's operations/statuses.

Thank you...Unfortunate thing is that, i dont have a genesys environment as of now, just codeing in dark.

Expecting to have the environment soon...

Will update you guys with my findings...

Thank you again...
- Jay

Offline Jay

  • Newbie
  • *
  • Posts: 7
  • Karma: 0
Re: Monitor Agent login/logout State via Voice Platform SDK
« Reply #8 on: February 21, 2010, 03:53:33 PM »
Thank you Guys,

I was able to receive both Agent and Call state event msg's from TServer.

Adios
Jay