SwitchX v0.1.4 SwitchX.Connection.Outbound View Source

Outbound mode means you make a daemon, and then have FreeSWITCH connect to it. You add an extension to the dialplan, and put

In outbound mode, also known as the “socket application” (or socket client), FreeSWITCH makes outbound connections to another process (similar to Asterisk’s FAGI model). Using outbound connections you can have FreeSWITCH call your own application(s) when particular events occur.

See Event Socket Outbound for more details regarding things specific to outbound mode.

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor

Starts a new outbound server

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function start_link(module, opts) View Source
start_link(module :: Module, opts :: Keyword) ::
  {:ok, server_pid :: Pid} | {:error, term()}

Starts a new outbound server.

Returns {:ok, Pid}

Examples

iex> parameters [
  host: "127.0.0.1",
  port: 9998,
]
iex> SwitchX.Connection.Outbound.start_link(Examples.OutboundSession, parameters)
{:ok, server_pid}