Skip to content

Latest commit

 

History

History
153 lines (85 loc) · 3.69 KB

ersip_hdr_replaces.md

File metadata and controls

153 lines (85 loc) · 3.69 KB

Module ersip_hdr_replaces

Data Types


parse_error() = term()

parse_result() = {ok, replaces()} | {error, parse_error()}

raw() = #{call_id => binary(), from_tag => binary(), to_tag => binary(), early_only => boolean(), params => ersip_hparams:raw()}

replaces() = #replaces{call_id = ersip_hdr_callid:callid(), params = ersip_hparams:hparams()}

Function Index

assemble/1Assemble Replaces as iolist().
assemble_bin/1Assemble Replaces as binary().
build/2Build raw SIP header.
dialog_id/1Dialog ID encoded in Replaces header.
early_only/1Early only property of Replaces header.
make/1Create Replaces header from binary() or from raw representation.
parse/1Parse Replaces header.
raw/1Raw representation of Replaces header.

Function Details

assemble/1


assemble(Replaces::replaces()) -> iolist()

Assemble Replaces as iolist().

assemble_bin/1


assemble_bin(Replaces::replaces()) -> binary()

Assemble Replaces as binary().

build/2


build(HdrName::binary(), Replaces::replaces()) -> ersip_hdr:header()

Build raw SIP header.

dialog_id/1


dialog_id(Replaces::replaces()) -> ersip_dialog:id()

Dialog ID encoded in Replaces header.

early_only/1


early_only(Replaces::replaces()) -> boolean()

Early only property of Replaces header.

make/1


make(HeaderBin::binary()) -> replaces()

Create Replaces header from binary() or from raw representation.

parse/1


parse(HeaderBin::ersip_hdr:header() | binary()) -> parse_result()

Parse Replaces header.

raw/1


raw(Replaces::replaces()) -> raw()

Raw representation of Replaces header.