Use this request to whisper to a party involved in a phone call.
The request identifies the phone call using the User Id, Extension number, and PhoneCall Id. If successful, it returns the that was updated.
The request is very useful when you want to intercept the conversation of a queue agent with a customer.
The request is made by an App that is registered to a User account.
To whisper on a call in a desired context, issue a HTTP PUT request:
This section describes how to format the request to the service.
The following parameters must be sent in the URI fragment:
Id of the User that owns the an Extension involved in the call.
The number of the Extension involved in the call.
Id of a PhoneCall resource that must be updated.
When whispering on a PhoneCall, the following restrictions apply to the PhoneCall resource sent in the Request Payload:
|action||String||Yes||Action must be set to Whisper.|
|sendCallTo||UAPI-Extension-Number||Yes||Number of the Extension that will whisper.|
Must be in the same Organization as the Extension given in the URI-Fragment.
Must refer to a
|callerId||UAPI-Caller-Id||No||The caller name and number. |
It is displayed to the source.
|waitForPickup||Number||No||The maximum number of seconds to wait until one of the phone numbers used picks up. |
When the time value set here runs out, the call is cancelled.
Default: 25 seconds.
|phoneCallViewId||String||Yes||The PhoneCallView that suffers the update.|
|private||Number||No||When set to 1, the extension that whispers does not hear the conversation between the the parties involved in the call. |
Possible values: 0 and 1.
|200||The phone call is returned.|
|204||There is no phone call to be returned.|
When it fails, the request returns the following error codes:
|400||pc_timeout_invalid||Value supplied in waitForPickup parameter is missing or invalid. The parameter must be numeric and higher than 0.|
|400||pc_callerid_invalid||Value supplied in callerId parameter is missing or invalid. The parameter must be set to a value with the format: John Doe <+3334444>.|
|400||pc_honecall_invalid||Value supplied in phoneCallId from the URI-Fragment is invalid. The parameter must be set to an alpha-numeric value and reference an existing phone call.|
|400||pc_phonecallview_invalid||Value supplied in phoneCallViewId parameter is missing or invalid. The parameter must reference a view of the phone call identified by the phoneCallId given in the URI-Fragment.|
|400||pc_private_invalid||Value supplied in private parameter is missing or invalid. The parameter must be set to 0 for non private calls or 1 for private calls.|
|400||pc_sendcallto_invalid||Value supplied in sendCallTo parameter is missing or invalid. The parameter must be set to the number of a phone terminal extension.|
Below you can find an example that will help you understand the request and the response.
Extension 0003*024 whispers to Extension 0003*210. The Service calls 0003*024 first and displays the Whisper To Me <42420042> as caller Id.
As soon as 0003*024 responds, it is connected to 0003*210 and can whisper to the conversation.
The phoneCallViewId identifies the phone call that is listened. Once the connection is made, the 02 phoneCallView is created. The request is made by an App on behalf of a User.
Assuming that the request has been successful, the Service sends the following answer:
Use the link returned by the Service to list the details of the PhoneCall making arequest. The list request outputs the following:
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.