sipmedia

package
v1.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package sipmedia is the SIP RTP/audio plane, separate from pure signaling (protocol/sip).

Layering:

protocol/sipmedia/rtp            RTP/RTCP, SRTP SDES, DTLS-SRTP
protocol/sipmedia/session        CallSession (RTP ↔ media.MediaSession)
protocol/sipmedia/bridge         Two-leg PCM transcode or G.711 RTP relay
protocol/sipmedia/codecreg       SDP offer codec negotiation → media.CodecConfig
protocol/sipmedia/dtmf           RFC 2833 + SIP INFO DTMF processors
protocol/sipmedia/transferbridge Media bridge after protocol/sip/transfer dial

Wire with protocol/sip/gateway or protocol/sip/outbound for signaling; attach protocol/voice on session.CallSession for ASR/TTS/LLM.

Directories

Path Synopsis
Package codecreg holds the SIP audio codec negotiation registry.
Package codecreg holds the SIP audio codec negotiation registry.
Package dtmf decodes SIP RTP out-of-band DTMF (RFC 2833 / RFC 4733 telephone-event).
Package dtmf decodes SIP RTP out-of-band DTMF (RFC 2833 / RFC 4733 telephone-event).
internal
siplog
Package siplog provides the shared logrus logger for protocol/sipmedia subpackages.
Package siplog provides the shared logrus logger for protocol/sipmedia subpackages.
Package session binds pkg/sip1/rtp to pkg/media using pkg/sip1/sdp negotiation (no duplicate codec math).
Package session binds pkg/sip1/rtp to pkg/media using pkg/sip1/sdp negotiation (no duplicate codec math).
Package transferbridge wires two SIP media legs (protocol/sipmedia/session) after a signaling-only transfer (protocol/sip/transfer) completes.
Package transferbridge wires two SIP media legs (protocol/sipmedia/session) after a signaling-only transfer (protocol/sip/transfer) completes.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL