RELAYCall
Intercept call media (audio) and stream it to an external destination such as a
WebSocket or RTP endpoint. Returns a
TapAction that you can use to stop
the tap or wait for it to finish.
This method emits calling.call.tap events. See Call Events for payload details.
Tap configuration specifying which audio to intercept.
Tap type. Valid values: "audio".
Tap parameters. Supports a direction key with the following values:
"listen" — capture audio heard by the caller"speak" — capture audio spoken by the caller"both" — capture audio in both directionsDestination device for the tapped media.
Device type.
"ws" — WebSocket endpoint"rtp" — RTP endpointDevice-specific parameters (e.g., uri for WebSocket, addr/port for RTP).
Custom control ID. Auto-generated if not provided.
Callback invoked when the tap operation ends.
TapAction — An action handle with
stop() and wait() methods.