PBX API : POST /Calls/

To make a call, make an HTTP POST request with basic authorization, resource URI:

http(s)://{PBX}/api/v1/Calls/

POST Parameters

Required Parameters

NameDescription

number

 
nameoptional, default = number
deviceoptional, default = any_device
(mobility, any_device OR "
sip:345@10.100.253.74:50374;transport=ws" - example value device
javascript - document.querySelectorAll('.selectionPhones input')

Response

GET http://{PBX}/api/v1/Calls/:channel/
{"type":"result","result":true}

Examples

CLI CURL
curl -X POST -u user:pass --url "http://{PBX}/api/v1/Calls"  --data-urlencode "number=extension" --data-urlencode "name=username" --data-urlencode "device=mobility"