View Source Sippet.Transactions.Server.Key (Sippet v1.0.16)
Defines a key in which server transactions are uniquely identified.
Summary
Functions
Creates a server transaction identifier from an incoming request or an outgoing response. If they are related, they will be equal.
Creates a server transaction identifier.
Types
@type branch() :: binary()
The topmost Via header branch parameter
The topmost Via header sent-by parameter
@type t() :: %Sippet.Transactions.Server.Key{ branch: binary(), method: Sippet.Message.method(), sentby: sentby() }
Functions
@spec new(Sippet.Message.t()) :: t()
Creates a server transaction identifier from an incoming request or an outgoing response. If they are related, they will be equal.
@spec new(branch(), Sippet.Message.method(), sentby()) :: t()
Creates a server transaction identifier.