I did put the agent's EnableSkillGroupStatistics into OnQueryAgentStateConf event in EventSink.cpp and the the error of missing UniqueObjectID went away. But I still don't see the stats I am looking for. What bothers me is (as I mentioned in the post above from 9/6/12 9:59pm) that after I click Login button Status window has Connection field showing Offline and Agent State field shows Logout. Login, Logout, Ready, Not Ready buttons are all inactive. Here is the chain of events:
After I execute the sample program (I have host,ports, agent ID, passwords, the Connection and Agent State fields show Connected and Unknown respectively. The Log Window shows OnCoonection event received and tells me "You can Login now!". Then I press Login button, after which Connection and Agent State fields show Offline and Logout respectively. The Log Window shows the following trace:
Requesting SetAgent
OnCtiOsFailure Event received
(SystemEventID:12
FailureCode:10
StatusBarMessage

ffline)
OnCtiOsFailure Event received
(SystemEventID:8
FailureCode:10
StatusBarMessage

ffline)
OnCtiOsFailure Event received
(SystemEventID:1
FailureCode:10
StatusBarMessage

ffline)
OnCtiOsFailure Event received
(SystemEventID:3
FailureCode:10
StatusBarMessage

nline
AllOnlineForPeriph:1)
OnSetAgentModeEvent Event received
(PeripheralID:5022
PeripheralType:0
AgentState:eUnknown
AvailTimeToday:0
LoggedOnTimeToday:0
NotReadyTimeToday:0
AgentOutCallsToday:0
AgentOutCallsTalkTimeToday:0
AgentOutCallsTimeToday:0
AgentOutCallsHeldToday:0
AgentOutCallsHeldTimeToday:0
HandledCallsToday:0
HandledCallsTalkTimeToday:0
HandledCallsTimeToday:0
IncomingCallsHeldToday:0
IncomingCallsHeldTimeToday:0
InternalCallsHeldToday:0
InternalCallsHeldTimeToday:0
AvailTimeSession:0
LoggedOnTimeSession:0
NotReadyTimeSession:0
AgentOutCallsSession:0
AgentOutCallsTalkTimeSession:0
AgentOutCallsTimeSession:0
AgentOutCallsHeldSession:0
AgentOutCallsHeldTimeSession:0
HandledCallsSession:0
HandledCallsTalkTimeSession:0
HandledCallsTimeSession:0
IncomingCallsHeldSession:0
IncomingCallsHeldTimeSession:0
InternalCallsSession:0
InternalCallsTimeSession:0
InternalCallsRcvdTimeSession:0
InternalCallsHeldSession:0
InternalCallsHeldTimeSession:0
InternalCallsToday:0
InternalCallsTimeToday:0
HandledCallsAfterCallTimeSession:0
HandledCallsAfterCallTimeToday:0
MRDID:0
ICMAgentID:0
AgentMode:2
MaxTaskLimit:0
NumTasks:0
AgentExtension

null)
AgentID:1711151
AgentInstrument:723620
SkillGroups

)
UniqueObjectID:agent.5022.1711151
MessageID:eSetAgentModeEvent
InternalCallsRcvdToday:0
InternalCallsRcvdTimeToday:0
InternalCallsRcvdSession:0
ClientAgentTemporaryID:agent.1347047355
ClassIdentifier:1
IsSupervisor:0
LastError

4040:1)
ConnectionMode:1
Filter:filtertarget
=
agent.5022.1711151
CILConnectionID:16802
AutoLogin:0
SavedAgentState:9
WaitingforRecovery:0
SavedLoginInfo

)
StatusSystem

StatusCTIServer:1
StatusCtiServerDriver:1
StatusCentralController:1
StatusPeripherals

5022:1))
CurrentProfile:Main
Contact
Center
LoginTime:0
IsAgentTeamMember:0
AgentAvailabilityStatus:-1
ICMAvailableTimeSession:0
RoutableTimeToday:0
ICMAvailableTimeToday:0
RoutableTimeSession:0
OriginatingClientID:gcci-2003svr-3144-3060
LoginName

null)
BlockAllEvents:1
AgentCallMode:0
SilentMonitorTargetAgentUID

null)
SilentMonitorCallUID

null))
Requesting Agent Login
OnQueryAgentStateConf Event received
(PeripheralID:5022
AgentState:eLogout
NumSkillGroups:4
MRDID:1
ICMAgentID:15042
AgentMode:0
MaxTaskLimit:0
NumTasks:0
AgentExtension:723670
AgentID:1711151
AgentInstrument:723670
EnablementMask:0x1000000
UniqueObjectID:agent.5022.1711151
MessageID:eQueryAgentStateConf
IsSupervisor:1
IncomingWrapupStrings

string0:Updating
string1:Filing
string2:Consulting
string3:Up
sale)
NotReadyReasonCodes

Admin
Time:7
Back
Office:9
Break
-
Scheduled:2
Break
-
Unscheduled:3
Chat/RM:12
Done
for
the
Day:21
Email:11
eQueries:15
Generic
Not
Ready:1
Lunch:4
Meeting:6
Outbound/Call
backs:10
Projects:8
Research:16
Social
Media:17
System
Issue/Outages:13
Training/Coaching:5
Wrap-up:14)
LogoutReasonCodes

Done
for
the
Day:21
System
Issue/Outages:13)
NotReadyReasonRequired:1
LogoutReasonRequired:0
AgentAvailabilityStatus:0
IsAuthenticated:0
SkillGroup[1]

SkillGroupNumber:3657
SkillGroupID:9505
SkillGroupPriority:0
SkillGroupState:1)
SkillGroup[2]

SkillGroupNumber:915
SkillGroupID:14834
SkillGroupPriority:0
SkillGroupState:1)
SkillGroup[3]

SkillGroupNumber:932
SkillGroupID:14842
SkillGroupPriority:0
SkillGroupState:1)
SkillGroup[4]

SkillGroupNumber:934
SkillGroupID:14843
SkillGroupPriority:0
SkillGroupState:1))
OnButtonEnablementChange Event received
(EnablementMask:0x1000000
UniqueObjectID:agent.5022.1711151
MessageID:eQueryAgentStateConf)
OnButtonEnablementChange Event received
(PeripheralID:5022
FailureCode:70
PeripheralErrorCode:10154
AgentID:1711151
EnablementMask:0x1400000
UniqueObjectID:agent.5022.1711151
MessageID:eControlFailureConf
MessageType:eSetAgentStateRequest
ErrorMessage:IPCC
Error
[10154]An
attempt
has
been
made
to
log
in
to
a
CTI
PORT
device
for
a
non-mobile
agent
or
an
invalid
CTI
PORT
for
a
mobile
agent.Agent
login
is
not
allowed
due
to
an
incorrect
device.
EventType:2
FilterTarget:agent.5022.1711151
TargetCILClientID:gcci-2003svr-3144-3060)
OnCtiOsFailure Event received
(PeripheralID:5022
FailureCode:11
PeripheralErrorCode:10154
AgentID:1711151
EnablementMask:0x1400000
UniqueObjectID:agent.5022.1711151
MessageID:eControlFailureConf
MessageType:eSetAgentStateRequest
ErrorMessage:IPCC
Error
[10154]An
attempt
has
been
made
to
log
in
to
a
CTI
PORT
device
for
a
non-mobile
agent
or
an
invalid
CTI
PORT
for
a
mobile
agent.Agent
login
is
not
allowed
due
to
an
incorrect
device.
EventType:2
FilterTarget:agent.5022.1711151
TargetCILClientID:gcci-2003svr-3144-3060
BlockAllEvents:1)
OnConnectionClosed Event received
()
The Login, Logout, Ready and Not Ready buttons are all not active. As you see there is a PORT error which looks like a problem. Do you know what it means and how to remedy this?
What is even more weird is I click Disconnect, then I retype a port field or any field for that matter, then click Connect again, the Connection field says Connected, but Agent State still says Logout, the Login button is active and there is the same trace about the PORT error.
Any ideas? Thanks much.