Hi,
We are making a call with Stat server by making a request below for two of the metrics for Queues object.
CurrNumberWaitingCalls
var requestOpenStatistic = RequestOpenStatistic.Create();
requestOpenStatistic.ReferenceId = uniquenumber;
requestOpenStatistic.StatisticObject = StatisticObject.Create();
requestOpenStatistic.StatisticObject.ObjectId = queue.QueueNumber + "@" + queue.SwitchName;
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.Queue;
requestOpenStatistic.StatisticObject.TenantName = TenantName;
requestOpenStatistic.StatisticObject.TenantPassword = "";
requestOpenStatistic.StatisticMetric = StatisticMetric.Create();
requestOpenStatistic.StatisticMetric.StatisticType ="CurrNumberWaitingCalls";
requestOpenStatistic.StatisticMetric.TimeProfile = "Default";
requestOpenStatistic.Notification = Notification.Create();
requestOpenStatistic.Notification.Mode = NotificationMode.Immediate;
requestOpenStatistic.Notification.Frequency = 2;
When we receive a response for this event asynchronously, by making a test call, the value of this metric is changing to 1 as soon as the phone starts ringing. Ideally, it should have been showing a value only when the phone goes on waiting, instead it's showing 1 as soon as it starts ringing.
CurrMaxCallWaitingTime
var requestOpenStatistic = RequestOpenStatistic.Create();
requestOpenStatistic.ReferenceId = uniquenumber;
requestOpenStatistic.StatisticObject = StatisticObject.Create();
requestOpenStatistic.StatisticObject.ObjectId = queue.QueueNumber + "@" + queue.SwitchName;
requestOpenStatistic.StatisticObject.ObjectType = StatisticObjectType.Queue;
requestOpenStatistic.StatisticObject.TenantName = TenantName;
requestOpenStatistic.StatisticObject.TenantPassword = "";
requestOpenStatistic.StatisticMetric = StatisticMetric.Create();
requestOpenStatistic.StatisticMetric.StatisticType =" CurrMaxCallWaitingTime ";
requestOpenStatistic.StatisticMetric.TimeProfile = "Default";
requestOpenStatistic.Notification = Notification.Create();
requestOpenStatistic.Notification.Mode = NotificationMode.Immediate;
requestOpenStatistic.Notification.Frequency = 2;
When making a test call, ideally, the value of this metric should reset back to 0 as soon as the call is answered by the Agent. This is not resetting to zero when the user changes to state like AfterCallWork or some other state. Its remaining same while the call was waiting and no new value is received which should be zero when the agent answers the call.
Thanks
#SystemAdministration#Unsure/Other------------------------------
Stephen Irecki
eMite Pty Ltd
------------------------------