From Bright Pattern Documentation
Jump to: navigation, search
 
 
Line 35: Line 35:
 
In order to reflect changes in call states to the user, the application should subscribe to the following events:
 
In order to reflect changes in call states to the user, the application should subscribe to the following events:
  
::''public event CallConnectedCallback callConnectedCallback;''
+
public event CallConnectedCallback callConnectedCallback;''
 
+
::''public event CallDataChangedCallback callDataChangedCallback;''
+
public event CallDataChangedCallback callDataChangedCallback;''
 
+
::''public event CallMutedCallback callMutedCallback;''
+
public event CallMutedCallback callMutedCallback;''
 
+
::''public event CallUnmutedCallback callUnmutedCallback;''
+
public event CallUnmutedCallback callUnmutedCallback;''
 
+
::''public event CallLocalHeldCallback callLocalHeldCallback;''
+
public event CallLocalHeldCallback callLocalHeldCallback;''
 
+
::''public event CallLocalResumedCallback callLocalResumedCallback;''
+
public event CallLocalResumedCallback callLocalResumedCallback;''
 
+
::''public event CallRemoteHeldCallback callRemoteHeldCallback;''
+
public event CallRemoteHeldCallback callRemoteHeldCallback;''
 
+
::''public event CallRemoteResumedCallback callRemoteResumedCallback;''
+
public event CallRemoteResumedCallback callRemoteResumedCallback;''
 
+
::''public event CallDisconnectedCallback callDisconnectedCallback;''
+
public event CallDisconnectedCallback callDisconnectedCallback;''
  
  
 
The following properties of the ''Call'' object can be used to check the current status of call recording:
 
The following properties of the ''Call'' object can be used to check the current status of call recording:
  
::''public bool isRecording'' - specifies it the call is being recorded
+
public bool isRecording'' - specifies it the call is being recorded
::''public bool isRecordingMuted'' - specifies if the call is being recorded with actual voice replaced by silence (muted recording)
+
 +
public bool isRecordingMuted'' - specifies if the call is being recorded with actual voice replaced by silence (muted recording)
  
  
 
The following ''Call'' property specifies the URL postfix which can be used to download the recording.  
 
The following ''Call'' property specifies the URL postfix which can be used to download the recording.  
  
::''public string recordingPlaybackUrl''
+
public string recordingPlaybackUrl''
  
 
The full URL should be composed by joining the web server address with this postfix.
 
The full URL should be composed by joining the web server address with this postfix.
  
  
 +
Assuming that the agent handles one interaction at a time, event ''callDisconnectedCallback'' will be normally followed by the [[desktop-integration-api-net-version-tutorial/AgentState|''stateChangedCallback'']] event. Depending on the contact center configuration, this event may indicate that the agent is in the ''Ready'', ''Not Ready'', or ''After-call Work'' state.
  
Assuming that the agent handles one interaction at a time, event ''callDisconnectedCallback'' will be normally followed by the [[desktop-integration-api-net-version-tutorial/AgentState|''stateChangedCallback'']] event. Depending on the contact center configuration, this event may indicate that the agent is in the ''Ready'', ''Not Ready'', or ''After-call Work'' state.
 
  
  
<center>[[desktop-integration-api-net-version-tutorial/Receivingacall|< Previous]]  |  [[desktop-integration-api-net-version-tutorial/WrappingUpAfter-callWork|Next >]]</center>
 
 
</translate>
 
</translate>

Latest revision as of 20:13, 13 May 2019

• 5.19 • 5.2 • 5.3 • 5.8

Call States

The Call object has a set of methods to control call states.

Answer a ringing call public void answer();
Place the call on hold public void hold();
Retrieve the call from hold public void resume();
Mute the microphone public void mute();
Unmute the microphone public void unmute();
Start or resume call recording public ResultCode startRecording();
Stop or pause call recording public ResultCode stopRecording();
Send DTMF digits to other parties in the call public void sendDtmf(string dtmf);
Disconnect the call public void drop();


In order to reflect changes in call states to the user, the application should subscribe to the following events:

public event CallConnectedCallback callConnectedCallback;

public event CallDataChangedCallback callDataChangedCallback;

public event CallMutedCallback callMutedCallback;

public event CallUnmutedCallback callUnmutedCallback;

public event CallLocalHeldCallback callLocalHeldCallback;

public event CallLocalResumedCallback callLocalResumedCallback;

public event CallRemoteHeldCallback callRemoteHeldCallback;

public event CallRemoteResumedCallback callRemoteResumedCallback;

public event CallDisconnectedCallback callDisconnectedCallback;


The following properties of the Call object can be used to check the current status of call recording:

public bool isRecording - specifies it the call is being recorded

public bool isRecordingMuted - specifies if the call is being recorded with actual voice replaced by silence (muted recording)


The following Call property specifies the URL postfix which can be used to download the recording.

public string recordingPlaybackUrl

The full URL should be composed by joining the web server address with this postfix.


Assuming that the agent handles one interaction at a time, event callDisconnectedCallback will be normally followed by the stateChangedCallback event. Depending on the contact center configuration, this event may indicate that the agent is in the Ready, Not Ready, or After-call Work state.


< Previous | Next >