Documentation Index
Fetch the complete documentation index at: https://developers.telnyx.com/llms.txt
Use this file to discover all available pages before exploring further.
INotification
TheINotification object is emitted via the telnyx.notification event. It contains information about call state changes, media events, and SDK notifications.
Properties
| Property | Type | Description |
|---|---|---|
type | string | Notification type (see below) |
call | Call | The call object this notification relates to (if applicable) |
timestamp | number | Unix timestamp of the notification |
Notification Types
| Type | Description | When It Fires |
|---|---|---|
callUpdate | Call state changed | Call rings, connects, hangs up, etc. |
userMediaError | Media access failed | Browser denied microphone/camera permissions |
peerConnectionFailedError | ICE/DTLS connection failed | Media could not be established |
signalingStateClosed | PeerConnection signaling closed | SIP signaling terminated unexpectedly |
vertoClientReady | Client is ready | Initial connection established |
Type: callUpdate
The most common notification type. Fired whenever a call’s state changes.
Call State Diagram
Type: userMediaError
Fired when the browser denies or fails to access media devices (microphone/camera).
- User clicked “Block” on the permission prompt
- No microphone/camera detected
- Another application is using the device
- System-level permission denied (OS settings)
Type: peerConnectionFailedError
Fired when the WebRTC PeerConnection fails to establish media. This usually means ICE negotiation or DTLS handshake failed.
- Firewall blocks UDP to TURN servers
- Symmetric NAT prevents direct connectivity
- VPN interfering with ICE
- Docker/container network issues
Type: signalingStateClosed
Fired when the PeerConnection’s signaling state becomes closed, indicating the SIP signaling channel has terminated.
callUpdate with state hangup.
Type: vertoClientReady
Fired when the client has successfully connected and authenticated with the Telnyx signaling server. This is equivalent to the telnyx.ready event but delivered as a notification.
Listening to Notifications
On the Client
On a Call
You can also listen on individual call objects:Listening on the client gives you notifications for ALL calls. Listening on a specific call gives you notifications for that call only. Choose based on your app’s architecture.
See Also
- Call Class — Call state and control methods
- TelnyxRTC Class — Client-level events
- Error Handling — Error and warning codes
- SDK Commonalities — Call states across all SDK platforms