api:pbx:app:action:call
Table of Contents
API : PBX : APP : Action : Call
Introduction
This request will initiate a call from a specific device (phone) to a given extension or phone number.
Request
| URL | https://api.telecomx.dk/pbx/app/action/call | ||
|---|---|---|---|
| Method | GET | ||
| Access level | PERSONAL, VIEWER, MANAGER, OWNER, RESELLER, ADMIN. | ||
| query | device | Id | Id of a device (sip phone or mobile) that the call shall be initiated from. |
| target | Id/String | Id of an extension to call or a phone number to call. | |
Request example
https://api.telecomx.dk/pbx/app/action/call?device=12345678901234567890ABCD&target=12345678901234567890AAAA https://api.telecomx.dk/pbx/app/action/call?device=12345678901234567890ABCD&target=70305050 https://api.telecomx.dk/pbx/app/action/call?device=12345678901234567890ABCD&target=201 https://api.telecomx.dk/pbx/app/action/call?device=12345678901234567890ABCD&target=+4570305050
Response
| Json object | ||
|---|---|---|
| success | Boolean | True on success |
| _id. | String. | Id of the call - for tracking and the ability to perform other actions on it (e.g. hangup). |
Example
{ "success": true, "_id": "pbx4.telecomx.dk:573636496893.3554" }
Errors
| Error code | Message | Description |
|---|---|---|
| 422 | device | Invalid device |
| 422 | target | Invalid target |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |
api/pbx/app/action/call.txt · Last modified: 2020/06/19 21:10 by Per Møller