Project

General

Profile

HTTP API active_calls

Returns a list of current active calls that are received by internal phones for this account.
Typically, this API is used in polling mode every 5-10 seconds by CRM systems.
When an incoming call is detected, the CRM system can display Contact card.

Mandatory arguments

argument description
_login coincides with the user/company login to the personal account
_password matches the user/company password to the personal account

Returned data

status "ok", if the operation completed without an error,
"error", if an error occurred, or if it was not possible to return useful data
data useful data, returned when status = "ok"
errors error details, returned when status = "error"
calleridnum internal number to which the call is directed
connectedlinenum caller ID
connectedlinename caller name
state call state
uniqueid unique call ID, matches uniqueid from cdr and recordings

Example

request GET "https://your.server.name/api/active_calls?_login=LOGIN&_password=PASSWORD"
response
{
  "data" : [
    {
      "calleridnum" : "12123388100",
      "connectedlinenum" : "123737373737",
      "connectedlinename" : "John",
      "state" : "Ringing",
      "uniqueid" : "121223123.333" 
    },
    {
      "calleridnum" : "12124599066",
      "connectedlinenum" : "123445435567",
      "connectedlinename" : "Michael",
      "state" : "Ringing",
      "uniqueid" : "12122545.334" 
    }
 ],
 "status" : "ok" 
}

Русский перевод

Also available in: PDF HTML TXT