[quote author=mhsrinivasan link=topic=4051.msg17848#msg17848 date=1238681200]
I need to monitor the Agent Status. For that i will be registering the DN and How do i know the Agent Status after Registering?
Thanks
[/quote]
Hey mhsrinivasan,
The easiest way is to make a TQueryAddress call and capture the event...
Call the function:
[b]TAgentExtension.TQueryAddress(AddressInfoDNStatus)[/b]
Then capture the event in TAgentExtension_TEvent(Index As Integer, EventInfo As DesktopToolkitX.TEventInfo)...
[b]Private Sub TAgentExtension_TEvent(Index As Integer, EventInfo As DesktopToolkitX.TEventInfo)
Select Case EventInfo.EventType
Case EventAddressInfo
' This is where you'll get the info:
' AddressInfoAddressStatus
' AdderssInfoMsgWaitingStatus
' AddressInfoAssociationStatus
' AddressInfoCallForwardingStatus
' AddressInfoAgentStatus [color=red]<-------- This is what you want[/color]
' AddressInfoNumberOfAgentsInQueue
' AddressInfoNumberOfAvailableAgentsInQueue
' AddressInfoNumberOfCallsInQueue
' AddressInfoAddressType
' AddressInfoCallsQuery
' AddressInfoSendAllCallsStatus
' AddressInfoQueueLoginAudit
' AddressInfoNumberOfIdleClassifiers
' AddressInfoNumberOfClassifiersInUse,
' AddressInfoNumberOfIdleTrunks
' AddressInfoNumberOfTrunksInUse
' AddressInfoDatabaseValue
' AddressInfoDNStatus
' AddressInfoQueueStatus
End Select
End Sub[/b]
Hope it helps,
Steve