A phone call is represented by UnifiedAPI as a PhoneCall resource and contains the PhoneCallView components which describes the phone call from the perspective of the parties involved in the phone call.
The example below contains the PhoneCall in JSON representation. All fields are fictitious.
When a HTTP response is returned by the Service, the fields that are NULL are not included in the response!
PhoneCall specific fields
The table below describes the fields that are specific to the PhoneCall resource and are not to be found in the PhoneCallView or PhoneCallLink.
|Name||Type||Can be NULL||Description|
|id||Object-Id||No||The Id of the PhoneCall as saved in the system. The Id is generated by the Service and can be later used to list or edit the PhoneCall details.|
|extension||UAPI-Extension-Number||No||The number of the Extension that is charged for the phone call. This Extension might not be a party of the phone call.|
|ownerId||User-Id||No||The Id of the Organization that owns the PhoneCall.|
|ownerName||String||No||The name of the Organization that owns the PhoneCall.|
|published||Date||No||The date the phone call entered the system.|
|answered||Date||Yes||The date the phone call was answered.|
A unique string which allows to identify the call created based on the request.
The table below describes the fields of a PhoneCallView component.
|Name||Type||Can be NULL||Description|
|id||Object-Id||No||The Id of the PhoneCallView as generated by the Service. The Id of the view can be used later to edit the call.|
|extension||UAPI-Extension-Number||No||The phone number of the Extension. The PhoneCallView is from the perspective of this extension.|
|source||Array< UAPI-Extension-Number | UAPI-Phone-Number >||No||The phone number of the source.|
|destination||Array< UAPI-Extension-Number | UAPI-Phone-Number >||No||The phone number of the destination.|
The flow of the call, which is set to:
2 - a local call
The status of the call, which is set to:
0 - unknown
|ringing||Date||Yes||The date when the source terminal started ringing. |
Can be missing if the call is answered.
|callerId||UAPI-Caller-Id||Yes||The caller Id.|
The date when the phone call started to be recorded.
|answered||Date||Yes||The date the source answered the call. |
Can be missing if the call is ringing.
The date when the phone call was parked.
|parkedPos||Number||Yes||The position of the call in the parking lot.|
|parkedBy||UAPI-Extension-Number||Yes||The number that put the phone call in the parking lot.|
|onHold||Date||Yes||The date the phone call was put on hold.|
|holder||Number||Yes||If set to 1, this peer put the phone call on hold.|
The call disposition:
|queue||UAPI-Extension-Number||Yes||The phone number of the queue extension. Used when a call is routed using a queue.|
If we have a call between two phone numbers 0003*210 and 0003*211 and 0003*210 records the call, the PhoneCallViews will look as in the example below:
During its lifetime, a phone call can be put on hold, parked, recorded or manipulated using other actions. These actions are represented as the PhoneCallAction object by UnifiedAPI.
The example below contains the PhoneCallAction in JSON representation. All fields are fictitious.
Fields that are NULL are not included in the answer!
Resource specific fields
The table below describes the fields that are specific to the PhoneCallAction object.
The type of action to perform. Possible values:
|sendCallTo||Some actions need a phone number to send the call to. This field should contain the number.|
|callerId||UAPI-Caller-Id||When a call is barged in or is whispered on, a caller Id can be sent to the Service.|
|waitForPickUp||Number||The maximum number of seconds to wait until one of the phone numbers used picks up. |
As soon as the set time value runs out, the call is canceled.
Default: 25 seconds.
|phoneCallViewId||String||The Id of PhoneCallView that is subject to the change.|
|format||String||Used only when recording a phone call and must be set to the format of the recorded file.|
Except where otherwise noted, content in this space is licensed under a Creative Commons Attribution 4.0 International.