Call from switch board to uccx

Version 1
    This document was generated from CDN thread

    Created by: yogesh kumar on 20-11-2013 02:18:42 AM
    We have a custom CTI adapter based on UCCXCTI. The application is working fine for calls which comes through regular IVR.
    We have a switch board also. So when a new call comes to switch board, it transfers it directly to the agent.  Here our adapter getting out of synch.

    I have checked the events. It seems
    1.       call comes with CallID A.
    2.       Call get established with CallID A. Couple of Call data update events then
    3.       I get another call Established event but from CallID B.
    4.       After that no event comes from CallID A.
     
    So our adapter never ends the call with callID A and it freezes there only.
    CAD seems to work fine with the switch board.
    Here are the events and data iam getting with this error:

    1EventType:CALL_DELIVERED_EVENT ConnectionDeviceType:0 CallID:[b]17269589[/b] ApplicationID: -1 CSQID:1 AlertingDeviceType: 76 CallingDeviceType:0 CalledDeviceType:76 LastRedirectedDeviceType: 65535 LocalConnectionState:2 EventCause:22 ConnectionDeviceID:1234  AlertingDeviceID: 1234 CallingDeviceID:xxxxxxxx CalledDeviceID: 1234 CalledDeviceID: LastRedirectedDeviceID: SecondaryCallID:0 ANI:  DNIS: 1234 DialedNumber:  CallerEnteredDigits: UserToUserInfo:
    2 
    3EventType: CALL_ESTABLISHED_EVENT ConnectionDeviceType: 0 ActiveCallID: [b]17269589[/b] ApplicationID:-1 CSQID:-1 AnsweringDeviceType:76 CallingDeviceType:0 CalledDeviceType:76 LastRedirectedDeviceType:65535 LocalConnectionState:3 EventCause:22 ConnectionDeviceID:1234 AnsweringDeviceID:1234 CallingDeviceID:xxxxxxxx CalledDeviceID:1234 LastRedirectedDeviceID:
    4EventType:CALL_DATA_UPDATE_EVENT NumCTIClients:0  CallType:6 ConnectionDeviceIDType:0 CallID: 17269589 CalledPartyDisposition: 0 ConnectionDeviceID:1234
    5 
    6EventType:CALL_ESTABLISHED_EVENT ConnectionDeviceType:0 ActiveCallID:[b]17269576[/b] ApplicationID:-1 CSQID:-1 AnsweringDeviceType:76 CallingDeviceType:0 CallingDeviceType: CalledDeviceType:76 LastRedirectedDeviceType:65535 LocalConnectionState:3 EventCause:22 ConnectionDeviceID:1234 AnsweringDeviceID:1234 CallingDeviceID:xxxxxxxx CalledDeviceID:1234 LastRedirectedDeviceID:
    7EventType:CALL_CONNECTION_CLEARED_EVENT ConnectionDeviceType:0 CallID:[b]17269576[/b] ReleasingingDeviceType:76 LocalConnectionState:65535 EventCause:65535 ConnectionDeviceID:1234 ReleasingDeviceID:1234