« Back to CTIOS Toolkit Questions

RE: New Message from Arthur Shats in Computer Telephony Integration Object

Combination View Flat View Tree View
Threads [ Previous | Next ]
Showing 21 - 28 of 28 results.
of 2
Here is my code for enabling statistics for all skills to which the agent belongs:

Dim myskillArgs As New Cisco.CTIOSCLIENTLib.Arguments

Log("Sending EnableSkillGroupStatistics")
m_Agent.EnableSkillGroupStatistics(myskillArgs)

David,
I'd like to try geting stats only for a specific skillGroup, say group# 915. So following your exampl abve, I would do this (only in C++):
skillArgs.AddItem("915", 0) ' 0 is skillgroup priority
myskillArgs.AddItem("SkillGroupNumbers", skillArgs)
m_Agent.EnableSkillGroupStatistics(myskillArgs)
What is skillgroup priority? If I am setting more than one skillgroup, the priority would tell which group I want to get first? And if I set it to 0, it means priority doesn't matter?

David,
I tried setting up stats for one group only (using C++ equivalent of the code above), but see that OnSkillGroupStatisticsUpdated event STILL being triggered for EVERY skillGroup, not just for the one group I set up. Any ideas why?
Thanks.

You have to code it like I have, with the first item being the skillgroup and the second item being the priority and the 3rd item being the next skillgroup, etc. (priority is found in the config for the skillgroup in the Configuration Manager).

Dim myskillArgs, skillArgs As New Cisco.CTIOSCLIENTLib.Arguments

Log("Sending EnableSkillGroupStatistics")
skillArgs.AddItem("1", 1) ' 1 is skillgroupnumber
skillArgs.AddItem("2", 0) ' 0 is skillgroup priority
skillArgs.AddItem("3", 2) ' 2 is skillgroupnumber
skillArgs.AddItem("4", 0) ' 0 is skillgroup priority
myskillArgs.AddItem("SkillGroupNumbers", skillArgs)
m_Agent.EnableSkillGroupStatistics(myskillArgs)

If the skillargs array is incorrect or invalid, then you will get onSillGroupStatisticsUpdated for all skillgroups.

You have

skillArgs.AddItem("915", 0) ' 0 is skillgroup priority
myskillArgs.AddItem("SkillGroupNumbers", skillArgs)
m_Agent.EnableSkillGroupStatistics(myskillArgs

which should be

skillArgs.AddItem(“1”, 915) ‘915 is skillgroupnumber
skillArgs.AddItem(“2”, 0) ‘0 is skillgroup priority
myskillArgs.AddItem("SkillGroupNumbers", skillArgs)
m_Agent.EnableSkillGroupStatistics(myskillArgs)



From: Cisco Developer Community Forums [mailto:cdicuser@developer.cisco.com]
Sent: Tuesday, October 16, 2012 1:24 PM
To: cdicuser@developer.cisco.com
Subject: New Message from Arthur Shats in Computer Telephony Integration Object Server (CTIOS) Toolkit - CTIOS Toolkit Questions: RE: Memory leaks in CTIOS

Arthur Shats has created a new message in the forum "CTIOS Toolkit Questions": -------------------------------------------------------------- David,
I tried setting up stats for one group only (using C++ equivalent of the code above), but see that OnSkillGroupStatisticsUpdated event STILL being triggered for EVERY skillGroup, not just for the one group I set up. Any ideas why?
Thanks.
--
To respond to this post, please click the following link: http://developer.cisco.com/web/ctios/forums/-/message_boards/view_message/7710284 or simply reply to this email.

David,
I used DumpArgs() to find out what the priorities are for our skillGroups --- priority is 0 for all skillGroups. So, I tried as you said (only in C++) for group 915 only:
skillArgs.AddItem(“1”, 915) 
skillArgs.AddItem(“2”, 0)
myskillArgs.AddItem("SkillGroupNumbers", skillArgs)
m_Agent.EnableSkillGroupStatistics(myskillArgs)
but I still see OnSkillGroupStatisticsUpdated event triggered for EVERY skillGroup, not just for 915.

Make sure you disableSkillGroupStatistics for all skill groups first. I found that the enableskillgroupstatistics will persist between CTIOS Client connections so if you have previously enabled all skills you will need to disable them all as well before you enable just the one(s) you want.

David,
Disabling skillGroup stats for all before enabling them for a particular group worked --- I am getting stats just for one group. This was actually a test -- I was hoping to see if I won't get memory leak this way. But it still leaks. I am using 7.5(6). Will try upgrading to 7.5(10).

David,
We noticed another two files missing from 7.5(10).  Could you forward them as well?
exercise2Dlg.cpp and exercise2Dlg.h
Looking the logs, we could not determine why the files were backed up, but the new version not written.  Is there addiitonal logging we can enable for the install process?  FYI, we could not use the 7.5(6) version.

Showing 21 - 28 of 28 results.
of 2
David Lender (467)
Shannon McCoy (91)
Arthur Shats (57)
Christopher Nagel (47)
GEOFFREY THOMPSON (38)