# `Caracola.Registrar.Contact`
[🔗](https://github.com/netkubes/caracola/blob/v0.1.0-rc.1/lib/caracola/registrar/contact.ex#L1)

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).

# `origin`

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

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

# `t`

```elixir
@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.

---

*Consult [api-reference.md](api-reference.md) for complete listing*
