Call Status, Error and Record Webhook Event

The events related to call status, error and record and the their parameters are below, along with sample values, for your reference.

Call Status Event
Example use of Call Status Function

   Setup

Parameter Value
result 0
result_desc OK
service_name PROGRAMMABLE_CALL
channel 0
session_id 123
call_status SETUP
calling_party 6531234567
called_party 6591234567
redirecting_number
direction 0
reference_id myrefid_123
call_setup_time 2018-06-22 13:28
call_alert_time
call_connected_time
call_disconnected_time
gmt 8
call_cause
call_connected 0
call_duration 0

Error Callback (Webhook)

Parameters

Name Description
result 0 = Success
<0 = Error code
result_desc Result description
service_name Service name
session_id Unique call session ID
call_status Call status value: ERROR

Call Recording Callback (Webhook)

Parameters

Name Description
service_name Service name
session_id Unique call session ID
call_status Recording status, i.e. START_RECORD/END_RECORD
start_time Recording start time
end_time Recording end time
duration Recording duration
reference_id Custom reference ID
channel Channel ID within session
calling_party Calling party number
called_party Called party number
record_id R ecord ID, available only if ‘record_wait_sync’ = true