pub enum Codec {
Show 73 variants
None,
NonStandard,
Pcma,
G711Alaw56k,
Pcmu,
G711Ulaw56k,
G72264k,
G72256k,
G72248k,
G7231,
G728,
G729,
G729A,
Is11172,
Is13818,
G729B,
G729Ab,
GsmFullRate,
GsmHalfRate,
GsmEnhancedFullRate,
Wideband256k,
Data64k,
Data56k,
G7221_32k,
G7221_24k,
Aac,
Mp4aLatm128,
Mp4aLatm64,
Mp4aLatm56,
Mp4aLatm48,
Mp4aLatm32,
Mp4aLatm24,
Mp4aLatm,
Gsm,
ActiveVoice,
G726_32k,
G726_24k,
G726_16k,
G729AnnexB,
Ilbc,
Isac,
Opus,
Amr,
AmrWb,
H261,
H263,
H263Plus,
H264,
H264Svc,
T120,
H224,
T38Fax,
Tote,
H265,
H264Uc,
Xv150ModemRelay711u,
NseVbd711u,
Xv150ModemRelay729a,
NseVbd729a,
H264Fec,
ClearChannel,
UniversalTranscoder,
DtmfOutOfBandRfc2833,
DtmfPassthrough,
DtmfDynamic,
DtmfOutOfBand,
DtmfInBandRfc2833,
CfbTones,
DtmfNoAudio,
V150ModemRelay,
V150Sprt,
V150Sse,
Unknown(u32),
}Expand description
Skinny payload capability / codec identifier.
Variants§
None
Indicates that no media encoding is selected or advertised.
NonStandard
Marks an implementation-specific media format. The identifier alone does not define an interoperable encoding.
Pcma
G.711 A-law PCM at 64 kbit/s, commonly used by E-carrier telephony systems.
G711Alaw56k
G.711 A-law PCM carried through a 56 kbit/s bearer rather than a full 64 kbit/s channel.
Pcmu
G.711 µ-law PCM at 64 kbit/s, commonly used by North American and Japanese telephony systems.
G711Ulaw56k
G.711 µ-law PCM carried through a 56 kbit/s bearer rather than a full 64 kbit/s channel.
G72264k
G.722 sub-band wideband speech using its 64 kbit/s mode.
G72256k
G.722 sub-band wideband speech using its 56 kbit/s mode.
G72248k
G.722 sub-band wideband speech using its 48 kbit/s mode.
G7231
G.723.1 low-bit-rate narrowband speech, normally encoded at 5.3 or 6.3 kbit/s.
G728
G.728 low-delay CELP narrowband speech encoded at 16 kbit/s.
G729
Base G.729 CS-ACELP narrowband speech encoded at 8 kbit/s.
G729A
The reduced-complexity Annex A profile of G.729 at 8 kbit/s.
Is11172
ISO/IEC 11172 MPEG-1 audio, retained as a legacy SCCP audio capability.
Is13818
ISO/IEC 13818 MPEG-2 audio, retained as a legacy SCCP audio capability.
G729B
G.729 with Annex B voice-activity detection and comfort-noise generation.
G729Ab
The reduced-complexity G.729 Annex A profile combined with Annex B silence suppression.
GsmFullRate
GSM Full Rate cellular speech coding.
This is distinct from the RTP GSM 06.10 capability represented by Gsm.
GsmHalfRate
GSM Half Rate cellular speech coding, trading speech quality for reduced radio bandwidth.
GsmEnhancedFullRate
GSM Enhanced Full Rate cellular speech coding with improved quality over GSM Full Rate.
Wideband256k
Uncompressed 16-bit linear wideband PCM at 16 kHz, producing a 256 kbit/s audio stream.
Data64k
A transparent 64 kbit/s data bearer rather than an audio or video encoding.
Data56k
A transparent 56 kbit/s data bearer for rate-limited digital trunks.
G7221_32k
G.722.1 wideband transform audio at 32 kbit/s, commonly known as the Siren 7 family.
G7221_24k
G.722.1 wideband transform audio at 24 kbit/s, commonly known as the Siren 7 family.
Aac
Generic Advanced Audio Coding capability without a fixed SCCP LATM bit-rate selector.
Mp4aLatm128
AAC audio transported with MPEG-4 LATM at a nominal 128 kbit/s. Cisco capability tables associate this family with low-delay AAC.
Mp4aLatm64
AAC audio transported with MPEG-4 LATM at a nominal 64 kbit/s.
Mp4aLatm56
AAC audio transported with MPEG-4 LATM at a nominal 56 kbit/s.
Mp4aLatm48
AAC audio transported with MPEG-4 LATM at a nominal 48 kbit/s.
Mp4aLatm32
AAC audio transported with MPEG-4 LATM at a nominal 32 kbit/s.
Mp4aLatm24
AAC audio transported with MPEG-4 LATM at a nominal 24 kbit/s.
Mp4aLatm
AAC audio transported with MPEG-4 LATM when the bit rate is negotiated elsewhere or unspecified.
Gsm
The RTP GSM 06.10 full-rate narrowband speech format. This is the interoperable RTP profile rather than a cellular bearer-mode selector.
ActiveVoice
A Cisco-defined narrowband ActiveVoice audio capability.
The audited SCCP sources name it but do not establish a public encoding specification.
G726_32k
G.726 ADPCM narrowband speech encoded at 32 kbit/s.
G726_24k
G.726 ADPCM narrowband speech encoded at 24 kbit/s.
G726_16k
G.726 ADPCM narrowband speech encoded at 16 kbit/s.
G729AnnexB
A later SCCP identifier for G.729 Annex B silence suppression.
It remains wire-distinct from the legacy G729B identifier.
Ilbc
iLBC packet-loss-resilient narrowband speech, normally using 20 ms or 30 ms frames.
Isac
iSAC adaptive wideband speech coding designed for variable IP-network conditions.
Opus
Opus interactive audio, supporting speech and full-band audio with adaptive bit rate.
Amr
Adaptive Multi-Rate narrowband cellular speech coding.
AmrWb
Adaptive Multi-Rate Wideband speech coding, also standardized as G.722.2.
H261
H.261 video for audiovisual services over constant-rate digital channels.
H263
Base H.263 low-bit-rate video coding.
H263Plus
H.263+ video, incorporating the optional enhancements standardized in H.263 version 2.
H264
Base H.264/AVC video capability.
H264Svc
The scalable-video-coding extension of H.264/AVC, allowing layered temporal, spatial, or quality streams.
T120
T.120 real-time data-conferencing traffic such as shared whiteboards and application data. It is a data capability, not a speech codec.
H224
H.224 low-rate data-link traffic used by applications such as H.281 far-end camera control.
T38Fax
T.38 real-time facsimile relay, transporting decoded fax data instead of modem audio.
Tote
A Cisco-defined TOTE payload capability with no public encoding semantics established here.
Available SCCP sources disagree on whether to classify it as video or data.
H265
H.265/HEVC video, the successor to H.264/AVC with improved compression efficiency.
H264Uc
Cisco’s distinct H264_UC video capability.
The audited sources do not define what the UC profile adds, so it is not treated as base H.264.
Xv150ModemRelay711u
Cisco X-V.150 modem relay associated with a G.711 µ-law voiceband-data path. Legacy chan-sccp sources identify it with modem traffic on VG224 gateways.
NseVbd711u
Cisco named-signaling-event mode for voiceband data carried over G.711 µ-law.
Xv150ModemRelay729a
Cisco X-V.150 modem relay associated with a G.729 Annex A voice path. Legacy chan-sccp sources identify it with modem traffic on VG224 gateways.
NseVbd729a
Cisco named-signaling-event mode for voiceband data associated with G.729 Annex A.
H264Fec
Cisco’s H.264 capability variant carrying forward-error-correction support. It is negotiated separately because the backend has no equivalent base-H.264 flag.
ClearChannel
A transparent clear-channel bearer that preserves arbitrary digital data without transcoding.
UniversalTranscoder
A Cisco media-resource capability representing a universal transcoder. It identifies a transformation service rather than a media encoding.
DtmfOutOfBandRfc2833
DTMF carried as RTP telephone-event packets using a dynamically negotiated payload type.
The historical name references RFC 2833; RFC 4733 later replaced it.
DtmfPassthrough
Cisco’s proprietary RTP DTMF passthrough payload rather than audible in-band tones.
DtmfDynamic
A Cisco DTMF event capability whose RTP payload number is negotiated dynamically.
DtmfOutOfBand
Cisco out-of-band DTMF signaling, carrying digits separately from the voice samples.
DtmfInBandRfc2833
Cisco’s historical “in-band RFC 2833” event-payload mode. Despite the label, it represents packetized digit events rather than acoustic DTMF audio.
CfbTones
Conference-bridge tone events used by Cisco media resources. This is a control/event payload, not an audio codec.
DtmfNoAudio
DTMF event signaling without a companion audio stream.
V150ModemRelay
The V.150.1 modem-relay media mode, carrying demodulated modem data across an IP network.
V150Sprt
The V.150.1 Simple Packet Relay Transport used for reliable modem-relay data.
V150Sse
The V.150.1 State Signalling Events channel used to coordinate transitions among audio, VBD, and relay modes.
Unknown(u32)
Preserves an SCCP numeric value not recognized by this crate. Allows newer or vendor-specific values to round-trip without loss.
Implementations§
Source§impl Codec
impl Codec
Sourcepub const fn sample_rate(self) -> Option<u32>
pub const fn sample_rate(self) -> Option<u32>
Returns the nominal clock rate in hertz for supported audio codecs.
Non-audio, unrecognized, and codecs without a defined mapping return
None.
Sourcepub const fn rtp_payload_type(self) -> Option<u8>
pub const fn rtp_payload_type(self) -> Option<u8>
Returns the codec’s default RTP payload type when statically assigned.
Dynamically assigned codecs return None and require negotiated
payload metadata.