post https://your-instance.stats.pbx.commpeak.com/api/ongoing
List Ongoing Calls
This endpoint allows you to retrieve a list of active calls in the PBX.
Request Body
-
format: The format of the response. -
destination: Search by destination number. -
bridged: [0 => not bridged , 1 => bridged] -
bill_duration_from: Filter the bill duration from (sec). -
bill_duration_till: Filter the bill duration till (sec). -
{custom_field}: Filter by custom fields (Key -> field name, Value -> field value).
Response
The response will contain:
-
count: The count of active calls. -
cdrs: An array of active call details including id, unique_id, channel_name, source, destination, original_destination, caller_id, call_start, duration, bill_duration, bridged, bridged_agent_name, bridged_agent_extension, direction, and custom_fields.