Get Call Status getStatus
We are still updating this page
Some data may be missing here — we will complete it shortly.
Scope:
telephonyWho can execute the method: any user
The method returns information about the current call.
No parameters.
Code Examples
How to Use Examples in Documentation
Calling the placement method. The result is returned in a callback.
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"getStatus","PARAMS":{}}' \
"https://**put_your_bitrix24_address**/rest/**put_your_user_id_here**/**put_your_webhook_here**/placement.call"
curl -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"PLACEMENT":"getStatus","PARAMS":{}}' \
"https://**put_your_bitrix24_address**/rest/placement.call?auth=**put_access_token_here**"
BX24.placement.call('getStatus', {}, function (result) {
console.log(result);
});
require_once('crest.php');
$result = CRest::call(
'placement.call',
[
'PLACEMENT' => 'getStatus',
'PARAMS' => (object)[]
]
);
echo '<PRE>';
print_r($result);
echo '</PRE>';
Response Handling
Returned Data
|
Name |
Description |
|
CALL_ID |
ID of the current call |
|
PHONE_NUMBER |
Client's phone number |
|
CRM_ENTITY_TYPE |
Type of the CRM entity associated with the call ( |
|
CRM_ENTITY_ID |
ID of the CRM entity associated with the call |
|
CRM_ACTIVITY_ID |
ID of the CRM activity related to the call |
|
CALL_DIRECTION |
Direction of the call ( |
|
CALL_LIST_MODE |
Indicator of operation in call list mode |
|
CRM_BINDINGS |
Array of bindings of the call to CRM entities |
Continue Learning
- Disable Auto-Close disableAutoClose
- Disable Auto-Close enableAutoClose
- Event of Client Change CallCard::EntityChanged
- Event Before Closing the CallCard CallCard::BeforeClose
- Event of Call Status Change CallCard::CallStateChanged