Interacting with a dialer
The _Interviewer intrinsic can access phone interviewer actions such as starting and stopping call recording.
The _Dialer and _Extension intrinsics might also be available; their availability and their functionality depends on which third party dialer is used.
_Interviewer intrinsic
The _Interviewer intrinsic starts call recording and stops it. It has these properties and methods:
SessionToken
The Interviewer session token. (Default property.)
StartCallRecording()
Starts a call recording for the current interviewer.
The CallRecordingsCount sample management field is incremented when the call recording is started.
If a call recording has already been started, the method has no effect: the existing recording continues; a new recording does not start.
Recordings started by StartCallRecording stop if the RecordingProhibited Interview Property is set to 1. For more information, see the RecordingProhibited property. If you do not want the recordings to stop, set IOM.Properties["RecordingProhibited"] = 0 before starting the call recording.
StopCallRecording()
Stops a call recording for the current interviewer.
Example
Using the new _Interviewer object, calls can be made in the routing script to start and stop recordings, for example:
Recording.Ask()
If Recording.Response = {Yes} Then
StartCallRecording(_Interviewer, IOM)
End If
Function StartCallRecording(_Interviewer, IOM)
On Error Goto StartErrHandler
IOM.Properties["RecordingProhibited"] = 0
_Interviewer.StartCallRecording()
IOM.Log("Call recording started for Interviewer '" + IOM.Info.InterviewerID + "'")
Exit Function
StartErrHandler:
IOM.Log("Call recording failed to start for '" + IOM.Info.InterviewerID + "', " + Err.Description)
End Function
Function StopCallRecording(_Interviewer, IOM)
On Error Goto StartErrHandler
_Interviewer.StopCallRecording()
IOM.Log("Call recording stopped for '" + IOM.Info.InterviewerID + "'")
Exit Function
StartErrHandler:
IOM.Log("Call recording failed to stop for '" + IOM.Info.InterviewerID + "', " + Err.Description)
End Function
_Dialer and _Extension intrinsics
For an example of using these intrinsics, see
_Dialer and _ExtensionName properties.
See also