Sippet.Message.get_remote

You're seeing just the function get_remote, go back to Sippet.Message module for more information.

Specs

get_remote(request()) ::
  {:ok, {protocol :: atom() | binary(), host :: binary(), port :: integer()}}
  | {:error, reason :: term()}

Extracts the remote address and port from an incoming request inspecting the Via header. If ;rport is present, use it instead of the topmost Via port, if ;received is present, use it instead of the topmost Via host.