Packages
parrot_platform
0.0.1-alpha.2
Elixir libraries and OTP behaviours for building telecom applications with SIP protocol and media handling
Current section
Files
Jump to
Current section
Files
lib/parrot/supervisor.ex
defmodule Parrot.Supervisor do
use Supervisor
alias Parrot.Sip.TransactionSupervisor
def start_link(_args) do
Supervisor.start_link(__MODULE__, :ok, name: __MODULE__)
end
@impl true
def init(:ok) do
children = [
{Registry, keys: :unique, name: Parrot.Registry},
TransactionSupervisor
# Add other supervisors or workers here
]
Supervisor.init(children, strategy: :one_for_one)
end
end