This request will initiate a call from a specific device (phone) to a given extension or phone number.
| 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. | |
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
| 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). |
{ "success": true, "_id": "pbx4.telecomx.dk:573636496893.3554" }
| Error code | Message | Description |
|---|---|---|
| 422 | device | Invalid device |
| 422 | target | Invalid target |
| 403 | access_denied | Insufficient access level |
| 500 | internal_error | <Unspecified> |