Start a media tap that streams call audio to an external endpoint. Supports
WebSocket (wss://, ws://) and RTP (rtp://) destinations.
Tap configuration object.
Destination URI for the media stream. Supported formats:
"rtp://IP:port" — RTP stream"ws://example.com" — WebSocket stream"wss://example.com" — Secure WebSocket streamIdentifier for this tap. Pass the same ID to stopTap() to end this
specific tap. If omitted, a default ID is generated.
Audio direction to tap.
"speak" — what the party says"hear" — what the party hears"both" — both directionsAudio codec for the stream.
"PCMU" — G.711 mu-law"PCMA" — G.711 A-lawPacketization time in milliseconds for RTP streams.
URL to receive tap status change webhooks.
FunctionResult — this, for chaining.