Skip to main content

Module event_packages

Module event_packages 

Source
Expand description

SIP event-package / companion body parsers (lenient dialects), ported from restsend-call: REFER targets, PIDF, dialog-info (BLF), simple-message-summary (MWI) and INFO-carried DTMF. Pure no_std + alloc.

Structs§

DialogInfoState
MessageSummary
ReferToTarget

Functions§

dtmf_char_code
DTMF character (0-9, *, #, A-D) → RFC 4733 event code.
parse_dialog_info
Lenient RFC 4235 dialog-info parse; no <dialog> element = idle.
parse_info_dtmf
Parse application/dtmf-relay / application/dtmf; RFC 4733 event code.
parse_message_summary
Lenient RFC 3842 simple-message-summary parse.
parse_refer_to
Parse <sip:1003@pbx?Replaces=…> (display-name noise before < tolerated).
percent_decode
Decode %XX escapes (invalid escapes pass through).
pidf_basic
First <basic>…</basic> value of a PIDF body (open / closed).
pidf_note
First <note>…</note> text of a PIDF body.