Skip to main content

Overview

The CometChatOutgoingCall component renders a full-screen outgoing call overlay when a user initiates a voice or video call. It displays the receiver’s name, a “Calling…” subtitle, the receiver’s avatar, and a cancel button. The component plays an outgoing ringtone and provides focus-trapped dialog behavior.

Key Features

  • Receiver Information: Displays receiver name and avatar for both user and group calls
  • Ringtone Support: Plays an outgoing call ringtone with custom sound support
  • Cancel Action: Built-in cancel button to abort the outgoing call
  • Template Overrides: Replace title, subtitle, avatar, or cancel button with custom templates
  • Focus Management: Dialog focus trap with Escape key to cancel
  • Global Config Priority: Supports a three-tier priority system (Input > GlobalConfig > Default)
Live Preview — default outgoing call preview. Open in Storybook ↗

Basic Usage

When <cometchat-outgoing-call> is used standalone, it is purely presentational. Its default cancel action only stops the local ringtone and emits (callCanceled) — it does not call the Chat SDK cancellation API. Your (callCanceled) handler must cancel the outgoing call itself via the Chat SDK (see the example below).When the component is rendered inside <cometchat-call-buttons>, the buttons component performs the SDK cancellation for you, so you should not cancel the call again in your own handler.

Properties

Events

Customization

CSS Variable Overrides

Custom Templates

Accessibility

Keyboard Navigation

ARIA Attributes

  • role="dialog" on the overlay container
  • aria-labelledby references the receiver name heading
  • Focus is trapped within the dialog while visible
  • Initial focus is set to the cancel button

Screen Reader Support

  • Outgoing call is announced via a live region with the receiver’s name
  • Call ended is announced when the call terminates