INotification
TheINotification object is emitted via the telnyx.notification event. It contains information about call state changes, media events, and SDK notifications.
Properties
Notification Types
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