event_socket_outbound v0.5.1 EventSocketOutbound.Protocol View Source

Protocol handler starts a connection process and defines logic for FreeSWITCH events and protocol.

Link to this section Summary

Functions

Answers the call. For further details, refer to FreeSWITCH docs

Send an api command. For further details, refer to FreeSWITCH docs

Returns a specification to start this module under a supervisor

Send a conference command. For further details, refer to FreeSWITCH docs

Once the connection is accepted, run this command in order to get all information about the call. For further details, refer to FreeSWITCH docs

Enable or disable events by class or all. For further details, refer to FreeSWITCH docs

Execute a dialplan application, and wait for a response from the server. For further details, refer to FreeSWITCH docs

Filtered events will come to the app. For further details, refer to FreeSWITCH docs

Hangs the call. For further details, refer to FreeSWITCH docs

Not to close the socket connect when a channel hangs up. For further details, refer to FreeSWITCH docs

It will "lock on" to the events for a particular uuid and will ignore all other events. For further details, refer to FreeSWITCH docs

Callback implementation for c::ranch_protocol.start_link/3

Link to this section Functions

Answers the call. For further details, refer to FreeSWITCH docs.

Link to this function

api(pid, command, args) View Source
api(pid(), String.t(), String.t()) :: term()

Send an api command. For further details, refer to FreeSWITCH docs.

Returns a specification to start this module under a supervisor.

See Supervisor.

Link to this function

conference(pid, args) View Source
conference(pid(), String.t()) :: term()

Send a conference command. For further details, refer to FreeSWITCH docs.

Link to this function

connect(pid) View Source
connect(pid()) :: term()

Once the connection is accepted, run this command in order to get all information about the call. For further details, refer to FreeSWITCH docs.

Link to this function

eventplain(pid, args) View Source
eventplain(pid(), String.t()) :: term()

Enable or disable events by class or all. For further details, refer to FreeSWITCH docs.

Link to this function

execute(pid, command, args) View Source
execute(pid(), String.t(), String.t()) :: term()

Execute a dialplan application, and wait for a response from the server. For further details, refer to FreeSWITCH docs.

Link to this function

filter(pid, args) View Source
filter(pid(), String.t()) :: term()

Filtered events will come to the app. For further details, refer to FreeSWITCH docs.

Link to this function

hangup(pid, reason \\ "") View Source
hangup(pid(), String.t()) :: term()

Hangs the call. For further details, refer to FreeSWITCH docs.

Link to this function

linger(pid, args \\ "") View Source
linger(pid(), String.t()) :: term()

Not to close the socket connect when a channel hangs up. For further details, refer to FreeSWITCH docs.

Link to this function

myevents(pid) View Source
myevents(pid()) :: term()

It will "lock on" to the events for a particular uuid and will ignore all other events. For further details, refer to FreeSWITCH docs.

Link to this function

start_link(ref, transport, module_protocol) View Source
start_link(reference(), module(), any()) :: {:ok, pid()}

Callback implementation for c::ranch_protocol.start_link/3.