Caracola.Registrar.Contact (Caracola v0.1.0-rc.1)

Copy Markdown View Source

A registered contact. Equivalent to NkSIP's #reg_contact{}.

  • index: identifies the contact for updates (scheme, transport, user, host and port).
  • contact: the Contact URI, with its expires parameter.
  • updated: time of the last update (microseconds), expire: expiration time (seconds).
  • call_id and cseq of the last REGISTER, to reject old ones.
  • origin: {transport, ip, port} the REGISTER came from.
  • path: the Path of the REGISTER (RFC 3327).

Summary

Types

Where a contact was registered from: transport, IP and port.

t()

A registered contact: its URI, expiration, priority (q), Call-ID, CSeq and origin.

Types

origin()

@type origin() :: {atom(), :inet.ip_address(), :inet.port_number()}

Where a contact was registered from: transport, IP and port.

t()

@type t() :: %Caracola.Registrar.Contact{
  call_id: String.t(),
  contact: Caracola.URI.t(),
  cseq: non_neg_integer(),
  expire: integer(),
  index: term(),
  meta: map(),
  origin: origin() | nil,
  path: [Caracola.URI.t()],
  q: float(),
  updated: integer()
}

A registered contact: its URI, expiration, priority (q), Call-ID, CSeq and origin.