Hang up a Call

Hang up a specified call.

Request URL

{base_url}/{api_path}/call/hangup?token={token}

Request parameters

Parameter Required Type Description
channelid Yes String The call channel ID of each member during the call.

Response parameters

Parameter Type Description
status String Request result.
  • Success
  • Failed
callid String The unique ID of each call.

Example

Request example
POST /api/v2.0.0/call/hangup?token=1a4d2fb22b1942ca34a3691b0c7234ab HTTP/1.1
Content-Type:application/json; charset=utf-8
Host: 192.168.5.150

{
	"channelid": "PJSIP/1023-000000c0"
}

Response example

HTTP/1.1 200 OK
Server: Boa/0.94.14rc21
Accept-Ranges: bytes
Connection: close
Content-Type: application/json
Access-control-allow-origin: *
Access-control-allow-methods: GET, POST, OPTIONS, PUT, DELETE

{
	"status": "Success",
	"callid": "1571646222.312"
}