ESLx (eslx v0.1.1)

ESLx a layer for Freeswitch Event Socket Protocol

examples

Examples

listening-events

Listening Events

iex> {:ok, esl} = ESLx.Events.start_link(URI.parse("esl://:ClueCon@localhost:8021"), 3_000)
iex> ESLx.Events.events(esl, "ALL")
iex> flush().
...

execute-api

Execute api

iex> ESLx.api(URI.parse("esl://:ClueCon@localhost:8021"), "uptime", [])
...

Link to this section Summary

Functions

executes api once and closes connection

Link to this section Functions

Link to this function

api(connection_details, cmd, opts)

@spec api(ESLx.ConnectionDetails.t(), cmd :: String.t(), timeout :: pos_integer()) ::
  {:ok, String.t()} | :error

executes api once and closes connection