Overview of Events When Working with the WebRTC Client Call Card

If you are developing integrations for Bitrix24 using AI tools (Codex, Claude Code, Cursor), connect to the MCP server so that the assistant can utilize the official REST documentation.

The BackgroundCallCard::* events allow the application to respond to user actions in the call card and changes in the interface state without additional polling.

Events only work within the application in the PAGE_BACKGROUND_WORKER placement.

Quick navigation: all events

How to Subscribe to Events

  1. Subscribe to the desired event using BX24.placement.bindEvent.
  2. Handle the event data in the application's callback.
  3. After the BackgroundCallCard::initialized event, initiate the call card management logic.

How to Choose an Event

Scenario

What to Use

What Comes in the Callback

The application has access to the created call card

BackgroundCallCard::initialized

Initial call data and CRM binding

The operator clicks call control buttons

BackgroundCallCard::muteButtonClick, BackgroundCallCard::holdButtonClick, BackgroundCallCard::hangupButtonClick, BackgroundCallCard::answerButtonClick

Data for the specific action in the interface

The operator is working with call transfer

BackgroundCallCard::transferButtonClick, BackgroundCallCard::cancelTransferButtonClick, BackgroundCallCard::completeTransferButtonClick

Data for the transfer scenario

In dialing mode, the current client changes

BackgroundCallCard::entityChanged

Client number and current CRM binding

Additional actions are needed from the call card interface, such as saving a comment, rating call quality, or entering a number on the keypad

BackgroundCallCard::addCommentButtonClick, BackgroundCallCard::dialpadButtonClick, BackgroundCallCard::qualityMeterClick, BackgroundCallCard::notifyAdminButtonClick, BackgroundCallCard::nextButtonClick, BackgroundCallCard::skipButtonClick, BackgroundCallCard::makeCallButtonClick, BackgroundCallCard::closeButtonClick

Value selected by the user or action parameters

Overview of Events

Scope: telephony

Who can subscribe: any user

Event

Triggered

BackgroundCallCard::initialized

After the call card is created

BackgroundCallCard::addCommentButtonClick

When saving a comment in the call card

BackgroundCallCard::muteButtonClick

When the mute button is pressed

BackgroundCallCard::holdButtonClick

When the hold button is pressed

BackgroundCallCard::closeButtonClick

When the close button on the call card is pressed

BackgroundCallCard::transferButtonClick

When selecting the operator to whom the current operator wants to transfer the call

BackgroundCallCard::cancelTransferButtonClick

When the "return to call" button is pressed

BackgroundCallCard::completeTransferButtonClick

When the "redirect" button is pressed

BackgroundCallCard::hangupButtonClick

When the "end" button is pressed

BackgroundCallCard::nextButtonClick

When the "next" button is pressed

BackgroundCallCard::skipButtonClick

When the "skip" button is pressed

BackgroundCallCard::answerButtonClick

When the "answer" button is pressed

BackgroundCallCard::entityChanged

In the dialing card when the current dialed entity changes

BackgroundCallCard::makeCallButtonClick

When the "call" or "callback" button is pressed

BackgroundCallCard::qualityMeterClick

When rating call quality

BackgroundCallCard::dialpadButtonClick

When one of the numeric buttons on the phone is pressed

BackgroundCallCard::notifyAdminButtonClick

When the "notify administrator" button is pressed