Sippy.IncomingCall (sippy v0.1.0)

Copy Markdown View Source

An incoming call reported by a Sippy.Registrar as {:incoming_call, %Sippy.IncomingCall{}}.

Ring it with Sippy.ring/1, turn it down with Sippy.reject/2, or answer it with Sippy.start_inbound_call/2 and Sippy.answer/2. When it is cancelled or times out before it is answered, the registrar's :notify process receives {:incoming_call_cancelled, call_id}.

  • :call_id - the SIP Call-ID
  • :from, :to - the From and To headers of the INVITE
  • :caller_id - the caller's number or user part, if any
  • :caller_name - the caller's display name, if any
  • :registrar - the registrar that received the call

The :invite field holds the parsed INVITE for Sippy's own use.

Summary

Types

t()

@type t() :: %Sippy.IncomingCall{
  call_id: String.t(),
  caller_id: String.t() | nil,
  caller_name: String.t() | nil,
  from: String.t() | nil,
  invite: map(),
  registrar: pid(),
  to: String.t() | nil
}