Partager via


ICtiAgentStateControl.SetAgentState(Guid, String, String, Boolean) Method

Definition

Sets the agent state to a given state.

public:
 bool SetAgentState(Guid ctiCallRefCallId, System::String ^ requestedState, System::String ^ targetState, bool overrideCtiLogic);
public bool SetAgentState (Guid ctiCallRefCallId, string requestedState, string targetState, bool overrideCtiLogic);
abstract member SetAgentState : Guid * string * string * bool -> bool
Public Function SetAgentState (ctiCallRefCallId As Guid, requestedState As String, targetState As String, overrideCtiLogic As Boolean) As Boolean

Parameters

ctiCallRefCallId
Guid

Specifies the CTI call reference ID.

requestedState
String

Specifies the requested state.

targetState
String

Specifies the requested state to go to.

overrideCtiLogic
Boolean

Internal only.

Returns

True if the agent state is successfully set, otherwise false.

Applies to