View Source Sippet.Transactions.Server.Key (Sippet v1.0.16)

Defines a key in which server transactions are uniquely identified.

Summary

Types

The topmost Via header branch parameter

The topmost Via header sent-by parameter

t()

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

@type sentby() :: {shost :: binary(), sport :: integer()}

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.

Link to this function

new(branch, method, sentby)

View Source
@spec new(branch(), Sippet.Message.method(), sentby()) :: t()

Creates a server transaction identifier.