View Source SIP Endpoint
This document holds design information about the SIP Endpoint.
Architecture
The Endpoint is a Membrane.Bin
behaving like a state machine.
State diagram
flowchart TD
U1[:unregistered] -->|receive :registered| R[:registered]
U2[:unregistered_call_pending] -->|receive :registered| C[:calling]
U1 ==>|SIP.dial/3| U2
R ==>|SIP.dial/3| C
C -->|"receive {:call_info, {:call_ready, options}}"| I[:in_call]
U2 & C & I ==>|SIP.end_call/2| E[:ending_call]
C & I & E -->|"receive {:call_info, {:end, reason}}"| T[:terminating]