Event of Call Status Change CallCard::CallStateChanged
We are still updating this page
Some data may be missing here — we will complete it soon.
Scope:
telephonyWho can subscribe:
any user
The event CallCard::CallStateChanged occurs when the status of the current call changes.
What the handler receives
The specified arguments are passed to the handler.
Required parameters are marked with *
|
Parameter |
Description |
|
PHONE_NUMBER* |
Current state of the call ( |
|
additionalParams |
Object with additional fields |
Parameter data[]
|
Parameter |
Description |
|
failedCode |
Call completion code. Passed only in case of an unsuccessful call completion when transitioning to the |
Event Subscription
How to Use Examples in Documentation
cURL (Webhook)
cURL (OAuth)
JS
PHP
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::CallStateChanged","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/placement.bindEvent"
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"CallCard::CallStateChanged","HANDLER":"**your_handler_url_here**"}' \
"https://**put_your_bitrix24_address**/rest/placement.bindEvent?auth=**put_access_token_here**"
BX24.placement.bindEvent("CallCard::CallStateChanged", function (callState) {
console.log(callState);
});
require_once('crest.php');
$result = CRest::call(
'placement.bindEvent',
[
'PLACEMENT' => 'CallCard::CallStateChanged',
'HANDLER' => '**your_handler_url_here**'
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Continue Learning
- Get Call Status getStatus
- Disable Auto-Close disableAutoClose
- Disable Auto-Close enableAutoClose
- Event of Client Change CallCard::EntityChanged
- Event Before Closing the CallCard CallCard::BeforeClose
Copied