how to get agent status using tlib TqueryAddress

I need to know the agent status using tlib. For this i tried the the following queries

TQueryAddress(this->serverHandle,
	NULL,
	"4201", // Extension ID
	AddressTypePosition, 
	AddressInfoAddressStatus,
	NULL);

TQueryAddress(this->serverHandle,
	NULL,
	"4201", // Extension
	AddressTypeDN, 
	AddressInfoDNStatus,
	NULL);
     
          TQueryAddress(this->serverHandle,
	NULL,
	"4201",
	AddressTypeDN, 
	AddressInfoAddressStatus,
	NULL);

with genesys starter application showing the status of the agent “Ready”

In returning event it shows the status of the agent = AgentWorkModeUnknown

Can any body help me to figure out how i can get the agent status using tlib?

Zaman,

What PBX/switch do you have? Could you post here snippet of T-Server log showing your request and response (event)?

R.

3 Likes

Responses for similar question can be found in
http://www.sggu.com/smf/index.php/topic,4051.0.html