I need to count how many calls are dropped by Agent for reporting purpose. So far what I've tried in my coding is:
KeyValueCollection callDroppedBy = new KeyValueCollection();
callDroppedBy.Add("DroppedBy", "Agent");
RequestReleaseCall reqReleaseCall = RequestReleaseCall.Create(thisDN, connID1, callDroppedBy, null);
IMessage reqRCResponse = tServerProtocol.Request(reqReleaseCall);
And I received the EventReleased:
'EventReleased' ('65')
message attributes:
AttributeConnID [long] = 006A026F401152A3
AttributeEventSequenceNumber [long] = 98088
AttributeCallID [int] = 16783989
AttributeThisDN [str] = "13041"
AttributeThisQueue [str] = "7054"
AttributeUserData [bstr] = KVList:
'CustomerName' [str] = "ABC"
'CRMCustomerID' [str] = "1-CQX-4172"
'CRMServiceID' [str] = "1-MLOFK5S"
'language' [str] = "English"
AttributeCallState [int] = 0
AttributePropagatedCallType [int] = 3 [Outbound]
AttributeReasons [bstr] = KVList:
'DroppedBy' [str] = "Agent"AttributeAgentID [str] = "Testing"
Time = ComplexClass(TimeStamp):
AttributeTimeinuSecs [int] = 671000
AttributeTimeinSecs [int] = 1442976038
AttributeDNIS [str] = "4000"
AttributeExtensions [bstr] = KVList:
'BusinessCall' [int] = 1
AttributeCallUuid [str] = "CVHLQ55KB50HH77LLE2253SFEC0000L1"
AttributeOtherDNRole [int] = 1 [RoleOrigination]
AttributeCallType [int] = 3 [Outbound]
AttributeReferenceID [int] = 6
AttributeThisDNRole [int] = 2 [RoleDestination]
AttributeOtherDN [str] = "13023"
Is it possible to get the value under
AttributeReasons to count the number of calls dropped by Agent for reporting? If it is not, is there any suggestion on this problem?