Expand description
RFC 4733 telephone-event (DTMF) payload helpers.
The Encoder/Decoder move no audio samples — telephone-event is an event
stream, not a waveform; they exist so CodecType::TelephoneEvent slots
into codec tables.
Structs§
Constants§
Functions§
- digit_
to_ event - Character → RFC 4733 event code (
0-9,*=10,#=11,A-D=12-15). - dtmf_
press - dtmf_
sequence - Packet sequence for one digit: interims + End ×3, marker on the first.
duration_ms/clock_rateare untrusted — clamped to u16::MAX wire ticks. - encode_
event_ payload event(8) | E(1) R(1) volume(6) | duration(16).- event_
to_ digit - RFC 4733 event code → character.
- parse_
telephone_ event - Parse a telephone-event payload; with multiple 4-byte blocks the last wins.