ESLx (eslx v0.1.3)

ESLx a layer for Freeswitch Event Socket Protocol

Examples

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

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

Summary

Functions

executes api once and closes connection

Functions

Link to this function

api(connection_details, cmd, arg, opts)

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

executes api once and closes connection