Skip to main content
Skip table of contents

Start a call

Start a call

After a push has arrived to ring (apn/fcm/huawei), and the user wants to pick up the phone, it is necessary to send this request so that all other devices receive a push via web socket, indicating that the call is answered. After answering, the call status changes to answered.

POST /api/v1/intercom/calls/{call}/start

Parameters

int call, ID of the call to start (status should be ring)

200 OK

Successful response

JSON
{
    "sip": "wss://intercom2.vms.local:443/sip?token=ciOiJIUzUEp6UvshAzZwD1bZJPErvADmA",
    "number": "81786225",
    "host": "intercom2.vms.local"
}

401 Unauthorized

Authorization token not sent or not valid

404 Not Found

If the call does not belong to the user, does not exist or is not in ring status

cURL
BASH
curl -k --request POST \
	--url 'https://your-domain/api/v1/intercom/calls/{call}/start' \
	--header 'Content-Type: application/json' \
	--header 'Accept: application/json' \
	--data '{
    "call": 0
}'
PHP
PHP
$data = array (
  'call' => 0,
);
$context = stream_context_create([
	'ssl'=>['verify_peer' => false],
	'http' => [
		'method' => 'POST',
		'header' => "Content-Type: application/json\r
Accept: application/json",
		'content'=>json_encode($data)
	]
]);
$result = file_get_contents('https://your-domain/api/v1/intercom/calls/{call}/start', false, $context);
JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.