Parrot.Sip.Transport.Udp (Parrot Platform v0.0.1-alpha.3)

Parrot SIP Stack UDP Transport

Summary

Functions

Returns a specification to start this module under a supervisor.

Types

source_options()

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

start_opts()

@type start_opts() :: %{
  optional(:listen_addr) => :inet.ip_address(),
  optional(:listen_port) => :inet.port_number(),
  optional(:exposed_addr) => :inet.ip_address(),
  optional(:exposed_port) => :inet.port_number(),
  optional(:handler) => Parrot.Sip.Handler.handler(),
  optional(:sip_trace) => boolean(),
  optional(:max_burst) => non_neg_integer()
}

Functions

child_spec(init_arg)

Returns a specification to start this module under a supervisor.

See Supervisor.

local_uri()

@spec local_uri() :: String.t()

send_request(out_req)

@spec send_request(map()) :: :ok

set_handler(handler)

@spec set_handler(Parrot.Sip.Handler.handler()) :: :ok

start_link(start_opts)

@spec start_link(start_opts()) :: GenServer.on_start()

stop()

@spec stop() :: :ok