Example Message Flow for a Transferred Call

This example message flow starts at step 8 of the preceding message flow. Then, the agent on extension 2006 transfers the call to another agent instead of hanging up the call.

Note
For each of the tables in this section, the value in the Caller 2005 column is Yes if extension 2005 is a logged in agent, No if extension 2005 is not a logged in agent.
  1. Agent 2006 consults Agent 2007.

    Server sends the following message(s) Message(s) received by Notes
    Bridge mode clients Agent mode 2006 Agent mode 2007 Caller 2005
    MsgType: CALL_HELD_EVENT
      ConnectionDeviceType: 0
      CallID: 16777507
      HoldingingDeviceType: 76
      LocalConnectionState: 4
      EventCause: 65535
      ConnectionDeviceID: 2006
      HoldingDeviceID: 2006
    Yes Yes No No The original call between 2005 and 2006 is on hold.
    MsgType: BEGIN_CALL_EVENT
      NumCTIClients: 0
      NumNamedVars: 0
      NumNamedArrays: 0
      CallType: 12
      ConnectionDeviceType: 0
      CallID: 16777535
      CalledPartyDisposition: 0
      ConnectionDeviceID: 2006
      ANI: 2006...
    Yes Yes No No

    The agent on extension 2006 begins a new consult call to the agent on extension 2007.

    If the ANI is empty use the CallingDeviceID instead of ANI.

    MsgType: CALL_SERVICE_INITIATED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ApplicationID: -1
      CSQID: 1
      CallingDeviceType: 76
      LocalConnectionState: 1
      EventCause: 65535
      ConnectionDeviceID: 2006
      CallingDeviceID: 2006
    Yes Yes No No
    MsgType: AGENT_STATE_EVENT
      CSQState: 8
      StateDuration: 0
      CSQID: -1
      AgentState: 8
      EventReasonCode: 0
      NumCSQs: 0
      AgentExtension: 2007
      AgentID: agt2007
      NextAgentState: 65535
    Yes No Yes No
    MsgType: CALL_ORIGINATED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ApplicationID: -1
      CSQID: 1
      CallingDeviceType: 76
      CalledDeviceType: 76
      LocalConnectionState: 1
      EventCause: 65535
      ConnectionDeviceID: 2006
      CallingDeviceID: 2006
      CalledDeviceID: 2007
    Yes Yes No No
    MsgType: CALL_DELIVERED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ApplicationID: -1
      CSQID: 1
      AlertingDeviceType: 76
      CallingDeviceType: 76
      CalledDeviceType: 76
      LastRedirectedDeviceType: 65535
      LocalConnectionState: 2
      EventCause: 22
      NumNamedVars: 0
      NumNamedArrays: 0
      ConnectionDeviceID: 2007
      AlertingDeviceID: 2007
      CallingDeviceID: 2006
      CalledDeviceID: 2007
      LastRedirectedDeviceID:
      SecondaryCallID: 0
    ...
    Yes Yes Yes No
  2. Agent 2007 answers the consult call.

    Server sends the following message(s) Message(s) received by Notes
    Bridge mode clients Agent mode 2006 Agent mode 2007 Caller 2005
    MsgType: AGENT_STATE_EVENT
      CSQState: 4
      StateDuration: 0
      CSQID: -1
      AgentState: 4
      EventReasonCode: 0
      NumCSQs: 0
      AgentExtension: 2007
      AgentID: agt2007
      NextAgentState: 3
    Yes No Yes No
    MsgType: AGENT_STATE_EVENT
      CSQState: 4
      StateDuration: 0
      CSQID: -1
      AgentState: 4
      EventReasonCode: 0
      NumCSQs: 0
      AgentExtension: 2007
      AgentID: agt2007
      NextAgentState: 2
    Yes No Yes No
    MsgType: CALL_ESTABLISHED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ApplicationID: -1
      CSQID: 1
      AnsweringDeviceType: 76
      CallingDeviceType: 76
      CalledDeviceType: 76
      LastRedirectedDeviceType: 65535
      LocalConnectionState: 3
      EventCause: 22
      ConnectionDeviceID: 2007
      AnsweringDeviceID: 2007
      CallingDeviceID: 2006
      CalledDeviceID: 2007
      LastRedirectedDeviceID:
    Yes Yes No No
  3. Agent 2006 completes the transfer of Caller 2005 to Agent 2007.

    Server sends the following message(s) Message(s) received by Notes
    Bridge mode clients Agent mode 2006 Agent mode 2007 Caller 2005
    MsgType: CALL_DATA_UPDATE_EVENT
      NumCTIClients: 0
      NumNamedVars: 0
      NumNamedArrays: 0
      CallType: 4
      ConnectionDeviceType: 0
      CallID: 16777533
      CalledPartyDisposition: 0
      ConnectionDeviceID: 2005
    ...
    Yes Yes No Yes
    MsgType: CALL_TRANSFERRED_EVENT
      PrimaryDeviceType: 0
      PrimaryCallID: 16777533
      NumParties: 2
      SecondaryDeviceType: 0
      SecondaryCallID: 16777535
      TransferringDeviceType: 76
      TransferredDeviceType: 76
      LocalConnectionState: 3
      EventCause: 32
      PrimaryDeviceID: 2006
      SecondaryDeviceID: 2007
      TransferringDeviceID: 2006
      TransferredDeviceID: 2007
      ConnectedPartyDCallID[0]: 16777533
      ConnectedPartyDeviceType[0]: 0
      ConnectedPartyDeviceID[0]: 2005
      ConnectedPartyDCallID[1]: 16777533
      ConnectedPartyDeviceType[1]: 0
      ConnectedPartyDeviceID[1]: 2007
    Yes Yes Yes Yes After the transfer, the consult call is merged with the original call.
    MsgType: CALL_ESTABLISHED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777533
      ApplicationID: -1
      CSQID: 1
      AnsweringDeviceType: 76
      CallingDeviceType: 76
      CalledDeviceType: 76
      LastRedirectedDeviceType: 76
      LocalConnectionState: 3
      EventCause: 22
      ConnectionDeviceID: 2005
      AnsweringDeviceID: 2007
      CallingDeviceID: 2005
      CalledDeviceID: 2007
      LastRedirectedDeviceID: 2006
    Yes No Yes Yes
    MsgType: CALL_CONNECTION_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ReleasingingDeviceType: 76
      LocalConnectionState: 65535
      EventCause: 65535
      ConnectionDeviceID: 2006
      ReleasingDeviceID: 2006
    Yes Yes Yes No Device 2006 is dropped off the call after the transfer.
    MsgType: AGENT_STATE_EVENT
      CSQState: 3
      StateDuration: 0
      CSQID: -1
      AgentState: 3
      EventReasonCode: 0
      NumCSQs: 0
      AgentExtension: 2006
      AgentID: agt2006
      NextAgentState: 65535
    Yes Yes No No The state of the agent on extension 2006 is changed back to Ready.
    MsgType: CALL_CONNECTION_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      ReleasingingDeviceType: 76
      LocalConnectionState: 65535
      EventCause: 65535
      ConnectionDeviceID: 2007
      ReleasingDeviceID: 2007
    Yes No No No The agent on device 2007 hangs up the call.
    MsgType: CALL_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777535
      LocalConnectionState: 0
      EventCause: 1014
      ConnectionDeviceID: 2006
    Yes No No No The consult call is deleted.
    MsgType: END_CALL_EVENT
      ConnectionDeviceType: 0
      ConnectionCallID: 16777535
      ConnectionDeviceID:
    Yes No No No The consult call is ended.
  4. Caller 2005 ends the call.

    Server sends the following message(s) Message(s) received by Notes
    Bridge mode clients Agent mode 2006 Agent mode 2007 Caller 2005
    MsgType: CALL_CONNECTION_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777533
      ReleasingingDeviceType: 76
      LocalConnectionState: 65535
      EventCause: 65535
      ConnectionDeviceID: 2005
      ReleasingDeviceID: 2005
    Yes No Yes Yes The caller on extension 2005 hangs up.
    MsgType: AGENT_STATE_EVENT
      CSQState: 2
      StateDuration: 0
      CSQID: -1
      AgentState: 2
      EventReasonCode: 32755
      NumCSQs: 0
      AgentExtension: 2007
      AgentID: agt2007
      NextAgentState: 65535
    Yes No Yes Yes
    MsgType: CALL_CONNECTION_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777533
      ReleasingingDeviceType: 76
      LocalConnectionState: 65535
      EventCause: 65535
      ConnectionDeviceID: 2007
      ReleasingDeviceID: 2007
    Yes No Yes Yes
    MsgType: CALL_CLEARED_EVENT
      ConnectionDeviceType: 0
      CallID: 16777533
      LocalConnectionState: 0
      EventCause: 1014
      ConnectionDeviceID: 2005
    Yes No No No
    MsgType: END_CALL_EVENT
      ConnectionDeviceType: 0
      ConnectionCallID: 16777533
      ConnectionDeviceID:
    Yes No No No The call is terminated.