« Back to CTIOS Toolkit Questions

Call Type Changing for no apparent reason

Combination View Flat View Tree View
Threads [ Previous | Next ]
I am having a problem with a calltype changing between the onCallBegin event and onCallCleared event. I'm using the ctios toolkit. The scenario is as follows :

Agent 1 initiates and internal call to Agent 2.
The calltype for Agent1's current call at this point is eCTypeAgentInside and Agent2's is eCTypeOtherIn

When the call is cleared i check the call type for the current cleared call for Agent 1. At this point the calltype has changed to eCTypeOtherIn even though it was an outbound call. The calltype remains at eCTypeOtherIn for Agent 2.
 
I've checked the uniqueobjectID in case for some reason the call has changed when it is cleared, but the uniqueObjectID of the initiated call is the same as the id of the call that is cleared.

CallTypes for all other calls appear as expected, but I can't explain why the calltype is changed from eCTypeAgentInside to eCTYpeOtherIn when the call cleared is an outbound internal call.

Can anybody explain why this might be happening?

Regards,
Brian

Below are ctios logs which show the last time the call is refered to as CallType:10 (eCTypeAgentInside) and the callDataUpdate Event which then shows the call as CallType:6 (eCTypeOtherOut)
 
 
 
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession::FireEnablementEvent( Type(1), Evt(Unrecognized MessageID: 0?) )
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession::FireEnablementEvent, (CallType:10 ServiceNumber:4294967295
     ServiceID:4294967295 EventCause:65535 SkillGroupNumber:4294967295
     SkillGroupID:4294967295 LineType:2 SkillGroupPriority:0
     EnablementMask:0xbf0002 UniqueObjectID:call.5000.16827599.4001 CallStatus:1
     MessageID:eCallOriginatedEvent DeviceUniqueObjectID:device.5000.4001)
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  ObjectId = call.5000.16827599.4001 , Enablement Mask = bf0002
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  CEventPublisher::FireEvent, Firing Event [eButtonEnablementMaskChange] to
     Listeners
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  CEventPublisher::FireButtonEnablementEvent( eButtonEnablementMaskChange )
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(3952)  CilEventSink:emoticonnEvent, Posting Event [eButtonEnablementMaskChange]
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(2024)  CComSession::FireEvent, (EnablementMask:0xbf0002
     UniqueObjectID:call.5000.16827599.4001 MessageID:eCallOriginatedEvent)
03/03/09 11:40:25.123  2212  CTIOSSoftphone  Thd(2024)  CCommon::ConvertRegularPointerToComPointer()...
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent, Event( eCallOriginatedEvent ),processed by object(addr
     = 84be400) of type class CCall
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCilServiceEvent::ReceiverThread, Calling GetNextEvent
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCilServiceEvent::ReceiverThread, GetNextEvent returned Status( 0 ), Event(
     eMakeCallConf )
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent( eMakeCallConf ), EnablementMask = ffffffff
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent, (LineHandle:0 LineType:2 NewConnectionCallID:16827599
     NewConnectionDeviceIDType:0 NewConnectionDeviceID:4001
     UniqueObjectID:agent.5000.17208540 MessageID:eMakeCallConf
     FilterTarget:agent.5000.17208540 TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CObjectManager::GetTarget( eMakeCallConf )
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  [agent.5000.17208540] eMakeCallConf : (LineHandle:0 LineType:2
     NewConnectionCallID:16827599 NewConnectionDeviceIDType:0
     NewConnectionDeviceID:4001 UniqueObjectID:agent.5000.17208540
     MessageID:eMakeCallConf FilterTarget:agent.5000.17208540
     TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  [agent.5000.17208540]::SetAgentProperties()
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  [agent.5000.17208540]::SetAgentProperties: (LineHandle:0 LineType:2
     NewConnectionCallID:16827599 NewConnectionDeviceIDType:0
     NewConnectionDeviceID:4001 UniqueObjectID:agent.5000.17208540
     MessageID:eMakeCallConf FilterTarget:agent.5000.17208540
     TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  [agent.5000.17208540] eMakeCallConf : (LineHandle:0 LineType:2
     NewConnectionCallID:16827599 NewConnectionDeviceIDType:0
     NewConnectionDeviceID:4001 UniqueObjectID:agent.5000.17208540
     MessageID:eMakeCallConf FilterTarget:agent.5000.17208540
     TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  [agent.5000.17208540] FireEvent( eMakeCallConf) : (LineHandle:0 LineType:2
     NewConnectionCallID:16827599 NewConnectionDeviceIDType:0
     NewConnectionDeviceID:4001 UniqueObjectID:agent.5000.17208540
     MessageID:eMakeCallConf FilterTarget:agent.5000.17208540
     TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession::FireEvent( Type(2), Evt(eMakeCallConf), EnablementMask = -1 )
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession::FireEvent, (LineHandle:0 LineType:2
     NewConnectionCallID:16827599 NewConnectionDeviceIDType:0
     NewConnectionDeviceID:4001 UniqueObjectID:agent.5000.17208540
     MessageID:eMakeCallConf FilterTarget:agent.5000.17208540
     TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CEventPublisher::FireEvent, Firing Event to Listeners
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CEventPublisher::FireAgentEvent( eMakeCallConf )
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CilEventSink:emoticonnEvent, Posting Event
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(2024)  CComSession::FireEvent, (LineHandle:0 LineType:2 NewConnectionCallID:16827599
     NewConnectionDeviceIDType:0 NewConnectionDeviceID:4001
     UniqueObjectID:agent.5000.17208540 MessageID:eMakeCallConf
     FilterTarget:agent.5000.17208540 TargetCILClientID:ctios70-2212-3952)
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(2024)  CCommon::ConvertRegularPointerToComPointer()...
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent, Event( eMakeCallConf ),processed by object(addr =
     84fd9f8) of type class CAgent
03/03/09 11:40:25.133  2212  CTIOSSoftphone  Thd(3952)  CCilServiceEvent::ReceiverThread, Calling GetNextEvent
03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  CCilServiceEvent::ReceiverThread, GetNextEvent returned Status( 0 ), Event(
     eCallDataUpdateEvent )

*** CALL DATA UPDATED - Calltype changed to 6

03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent( eCallDataUpdateEvent ), EnablementMask = bf0002
03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  CCtiOsSession:emoticonnEvent, (PeripheralID:5000 PeripheralType:17
     ConnectionCallID:16827599 CallType:6 ServiceNumber:4294967295
     ServiceID:4294967295 SkillGroupID:5000 SkillGroupPriority:0
     NumNamedVariables:0 NumNamedArrays:0 CampaignID:4294967295
     QueryRuleID:4294967295 ANI:4001 DNIS:4002 DialedNumber:4002
     RouterCallKeyDay:0 RouterCallKeyCallID:0 EnablementMask:0xbf0002
     DeviceID:4001 UniqueObjectID:call.5000.16827599.4001 CallStatus:1
     MessageID:eCallDataUpdateEvent DeviceUniqueObjectID:device.5000.4001)
03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  CObjectManager::GetTarget( eCallDataUpdateEvent )
03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  [call.5000.16827599.4001]:emoticonnEvent( eCallDataUpdateEvent )
03/03/09 11:40:25.183  2212  CTIOSSoftphone  Thd(3952)  [call.5000.16827599.4001]:emoticonnEvent: (PeripheralID:5000 PeripheralType:17
     ConnectionCallID:16827599 CallType:6 ServiceNumber:4294967295
     ServiceID:4294967295 SkillGroupID:5000 SkillGroupPriority:0
     NumNamedVariables:0 NumNamedArrays:0 CampaignID:4294967295
     QueryRuleID:4294967295 ANI:4001 DNIS:4002 DialedNumber:4002
     RouterCallKeyDay:0 RouterCallKeyCallID:0 EnablementMask:0xbf0002
     DeviceID:4001 UniqueObjectID:call.5000.16827599.4001 CallStatus:1
     MessageID:eCallDataUpdateEvent DeviceUniqueObjectID:device.5000.4001)

David Lender (467)
Shannon McCoy (91)
Arthur Shats (57)
Christopher Nagel (47)
GEOFFREY THOMPSON (38)