<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <title>RE: Memory leaks in CTIOS</title>
  <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=" />
  <subtitle>RE: Memory leaks in CTIOS</subtitle>
  <id>http://developer.cisco.com/c/message_boards/find_recent_posts?p_l_id=</id>
  <updated>2013-05-26T06:21:25Z</updated>
  <dc:date>2013-05-26T06:21:25Z</dc:date>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10838952" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10838952</id>
    <updated>2013-01-18T16:55:53Z</updated>
    <published>2013-01-18T16:55:53Z</published>
    <summary type="html">OK. It's just that today alone I see 14 CtiOsFailure events and it's not even afternoon yet.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2013-01-18T16:55:53Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10835919" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10835919</id>
    <updated>2013-01-18T16:19:49Z</updated>
    <published>2013-01-18T16:19:49Z</published>
    <summary type="html">Yes, I do see this failure events during login, but I am more concerned when I see these long after the login. So, are you saying that every so often a server just sends out status msgs informing that all is OK or not?</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2013-01-18T16:19:49Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10835103" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=10835103</id>
    <updated>2013-01-18T15:40:17Z</updated>
    <published>2013-01-18T15:40:17Z</published>
    <summary type="html">David,
While running C++Phone sample app, I sometimes see failure events in the log window like the followin:
OnCtiOsFailure Event received
 (PGStatus:0
 SysEvtID:3
 SysEvtArg1:5022
 FailCode:10
 MsgID:eCTIOSFailureEvent
 ICMCCTime:1358522430
 StatusBarMsg:Online
 AllOnlineForPeriph:1)
How do I tell what actually failed?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2013-01-18T15:40:17Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9627482" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9627482</id>
    <updated>2012-12-20T22:47:32Z</updated>
    <published>2012-12-20T22:47:32Z</published>
    <summary type="html">David,
 In C++Phone sample program, is there a limit of how much data could be written into a log window? If yes, how much and what would happen if limit is reached, is it going to crash or just stop writing to a log or else? Doing m_edtLogWindow.SetWindowText(“”) would clear the screen log, but do I have to clear some buffer, if yes, how do I do it?
 Arthur.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-20T22:47:32Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9525417" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9525417</id>
    <updated>2012-12-18T17:20:28Z</updated>
    <published>2012-12-18T17:20:28Z</published>
    <summary type="html">Here is a bit more info. I have to say that I call EnableSkillGroupStatistics inside OnQueryAgentStateConf event which is triggered at some point after server fails over. But since the app isn't getting logged in after failing over, the call to EnableSkillGroupStatistics doesn't do anything, so the fact that I still get stats after failover is (as you said) because of cashing. Right?
Thanks.
 </summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-18T17:20:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9524305" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9524305</id>
    <updated>2012-12-18T16:11:26Z</updated>
    <published>2012-12-18T16:11:26Z</published>
    <summary type="html">David,
I am using C++Phone sample which is an Agent Desktop app. I believe it's been mentioned that in the Agent Desktop in order to get skillGroupStatistics, the agent needs to be logged in. However, in the event of failover, the agent is not relogged in, but I am still getting the statistics. How do you explain this?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-18T16:11:26Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9303087" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9303087</id>
    <updated>2012-12-12T18:22:30Z</updated>
    <published>2012-12-12T18:22:30Z</published>
    <summary type="html">David,
I am running C++Phone sample application. When connection failure occurs, it automatically reconnects to a backup server, but I don't think the agent is re-logged in. I believe you mentioned somewhere that reconnection is configured by default and I don't have to do anything in the code to insure this kind of failover happens. But what if I want the app to re-login after failover? Would setting CTIOS_AUTOLOGIN to 1 for the agent object inside OnLogin() event insure re-login happens after failover? 
Thanks,
Arthur.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-12T18:22:30Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9276760" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9276760</id>
    <updated>2012-12-11T22:41:05Z</updated>
    <published>2012-12-11T22:41:05Z</published>
    <summary type="html">David,
Is it a problem if  EnableSkillGroupStatistics is called more than once? I call it from OnQueryAgentStateConf handler and notice that this handler is executed more than once and hence would be the call to EnableSkillGroupStatistics. Would calling EnableSkillGroupStatistics more than once cause any problems?
thanks,
Arthur.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-11T22:41:05Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9269025" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9269025</id>
    <updated>2012-12-11T18:00:01Z</updated>
    <published>2012-12-11T18:00:01Z</published>
    <summary type="html">Thanks David.  Miliseconds makes sence now.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-11T18:00:01Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9264705" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9264705</id>
    <updated>2012-12-11T15:20:19Z</updated>
    <published>2012-12-11T15:20:19Z</published>
    <summary type="html">David,
I connected around 10am EST, so the EvtTime should show a number around 36000, but it shows 18629898.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-11T15:20:19Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9242086" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=9242086</id>
    <updated>2012-12-10T22:02:35Z</updated>
    <published>2012-12-10T22:02:35Z</published>
    <summary type="html">David,
If I print out rArgumens in OnConnection Event, the EvtTime parameter displays, I assume, a number of seconds of some sort. What's the starting point for the count of seconds? I am actually looking for a way to convert this time to a readable format.
Thanks,
Arthur. 
 </summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-12-10T22:02:35Z</dc:date>
  </entry>
  <entry>
    <title>How to configure an Agent to Automatically Log in after Failover</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8457776" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8457776</id>
    <updated>2012-11-09T20:31:28Z</updated>
    <published>2012-11-09T20:31:28Z</published>
    <summary type="html">According to the documentation, to configure an agent to automatically log in again in the event of a failover, I have to set CTIOS_AUTOLOGIN parameter to 1 when I configure the agent. I am NOT doing it, but it seemed like it still failed over. It must be that the automatic failover is set somewhere else? Where could it set?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-11-09T20:31:28Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8039503" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8039503</id>
    <updated>2012-10-25T16:19:38Z</updated>
    <published>2012-10-25T16:19:38Z</published>
    <summary type="html">David,
In the 7.5(1) guide I read that To retrieve skill groups WITHOUT enabling skill group statistics, turn off agent event minimization by setting its value to 0 on the CTIOS server in the registry key. I DO enable skill group statistics, so I don't have to make changes on the server. Am I reading it right? </summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-25T16:19:38Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8018201" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=8018201</id>
    <updated>2012-10-24T18:45:35Z</updated>
    <published>2012-10-24T18:45:35Z</published>
    <summary type="html">David,
I am enabling stats for all skillgroups. Using numElements did return the number of skillGroups even though when I print out the groups, they appear to be duplicated. However this total number may be different every time I start the C++Phone app (if I am lucky, I may get the correct total number from the 1st time, but most of the time I am not lucky). I noticed that on the CTIOS Agent Desktop, the list of skil groups doesn't appear at once, there is some delay and I see only few groups appear at first, then I wait a bit, then few more appear until all are displayed. I don't know why such a delay, but it means I have to call GetAllSkillGroups[u] more than once[/u], so I put the call into OnSkillGroupStatisticsUpdated event and now it's going to be called every time for every skillGroup which is not efficient.
Another problem is when I call .Release() after calling GetAllSkillGroups, it gives me a reference count of 2 and since I am callling it for every skill group, the reference count keeps growing by 1 every time OnSkillGorupStatisticsUpdated event is executed. Here is the code:
Arguments &amp;groups = Arguments::CreateInstance();
groups = m_pCtiSesson-&gt;GetAllSkillGroups();
int totalGroups = groups.NumElements();
unsigned long errCode = groups.Release();
If I call errCode=groups.Release() 3 times so it returns 0, the app crashes when onSkillGroupStatisticsUpdated event is executed 2nd time. It seems to crash on the line groups=m_pCtiSession-&gt;GetAllSkillGroups().  Looks like .Release() affects something it shouldn't because calling it once or none at all, doesn't make the app crash.
Any thoughts about all this?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-24T18:45:35Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7984410" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7984410</id>
    <updated>2012-10-23T17:46:24Z</updated>
    <published>2012-10-23T17:46:24Z</published>
    <summary type="html">1. Priorities were 0 for all groups when we were on 7.5(6); now we upgraded to 7.5(10) and DumpArgs don't display priorities anymore, so I assume they are still 0. I don't see any difference between the groups besides the difference in IDs. 
2. Also, I notice that GetAllSkillGroups() returns all 7 groups I am setup for; then I logout/disconnect/exit the app and start over and this time GetAllSkillGroups() returns only 2 groups; then I exit out and start over the app again and it returns only 1 group.  Why does it behave like that?
3. Another thing: maybe in VB, GetAllSkillGroups() returns array of skillgroups like you said, but according to the docs, in C++ and Java/.NET, it returns an array of Arguments, so I can't simply take the length of it like in VB. 
4. And the last observation: I see that in 7.5(10) the array that holds skillgroup statistics is called 'Stats', not 'Statistics' as in 7.5(1) or 7.5.(6); also the names of the the variables in that array changed as well, 'AgentsLoggedOn' in 7.5(6) became 'AGsLogdOn' in 7.5(10).  I noticed this when I was doing DumpArgs. Is this change just for displaying purposes? My code still refers to 'Statistics' and to 'AgentsLoggedOn', but I am running 7.5(10). All seems to work fine, but I am curious if I should change the naming in my code?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-23T17:46:24Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7946712" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7946712</id>
    <updated>2012-10-22T22:50:07Z</updated>
    <published>2012-10-22T22:50:07Z</published>
    <summary type="html">David,
In the agent desktop, I suppose I have to be logged in order to call GetAllSkillGroups(), so I added m_pCtiSession--&gt;GetAllSkillGroups()  in the OnSkillGroupStatisticsUpdated event (but I am calling it only once). However, it returned duplicate groups, such as this:
(skillgroup.5022.3657.0:skillgroup.5022.3657.0 skillgroup.5022.915.0:skillgroup.5022.915.0)  where 3657 and 915 are my skillGroups. But why do they appear twice?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-22T22:50:07Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7943218" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7943218</id>
    <updated>2012-10-22T20:18:36Z</updated>
    <published>2012-10-22T20:18:36Z</published>
    <summary type="html">David,
Is there a simple method to find out how many skill groups a given agent is subsribed to? I found that there is GetAllSkillGroups, but it seems complicated since it returns "a pointer to an Arguments array where each member has a string key that is the UniqueObjextID of a skill group and a value that is a reference to a CilRefArg that is a pointer to the skill group object". I am not even sure this is the correct method to use to get the number of skill groups an agent is subsribed to. Could you shed some light on what I should use to get the total# of skill groups?
thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-22T20:18:36Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7872105" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7872105</id>
    <updated>2012-10-19T19:11:50Z</updated>
    <published>2012-10-19T19:11:50Z</published>
    <summary type="html">No, out of the box Agent Desktop doesn't have 'AgentsAvail'.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-19T19:11:50Z</dc:date>
  </entry>
  <entry>
    <title>RE: How to get SkillGroupStatistics</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7853725" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7853725</id>
    <updated>2012-10-19T17:46:06Z</updated>
    <published>2012-10-19T17:46:06Z</published>
    <summary type="html">David,
According to the docs (chapter 11), "AgentsAvail" is part of SkillGroupStatistics and is available in Protocol Version 8 of CTI Server. When I call DumpArgs(), 'AgentsAvail' is not listed. I am not sure how to find out what Protocol Version we have, but I am sure we didn't change it from the default. We are using 7.5(1) and 7.5(6). Do you know what the default Protocol Version would be and if this is the reason why I can't get 'AgetnsAvail' ?
Thanks.</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-19T17:46:06Z</dc:date>
  </entry>
  <entry>
    <title>RE: Memory leaks in CTIOS</title>
    <link rel="alternate" href="http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7756028" />
    <author>
      <name>Arthur Shats</name>
    </author>
    <id>http://developer.cisco.com/c/message_boards/find_message?p_l_id=&amp;messageId=7756028</id>
    <updated>2012-10-17T20:07:19Z</updated>
    <published>2012-10-17T20:07:19Z</published>
    <summary type="html">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).</summary>
    <dc:creator>Arthur Shats</dc:creator>
    <dc:date>2012-10-17T20:07:19Z</dc:date>
  </entry>
</feed>

