elixir_agi v0.0.6 ElixirAgi.Agi.Proto

This module handles the AGI implementation by reading and writing to/from the source.

Copyright 2015 Marcelo Gornstein marcelog@gmail.com

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Summary

Types

reader :: function
writer :: function

Functions

dial(reader, writer, dial_string, timeout_seconds, options)

Specs

dial(reader, writer, String.t, non_neg_integer, [String.t]) ::
  ElixirAgi.Agi.Result.t |
  :eof

See: https://wiki.asterisk.org/wiki/display/AST/Application_Dial

exec(reader, writer, application, args \\ [])

See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_exec

get_full_variable(reader, writer, name)

Specs

get_full_variable(reader, writer, String.t) ::
  ElixirAgi.Agi.Result.t |
  :eof

See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_get+full+variable

hangup(reader, writer, channel \\ "")

Specs

See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_hangup

read_variables(reader, vars \\ %{})

Specs

read_variables(reader, Map.t) :: Map.t | :eof
run(reader, writer, cmd, args)
wait(reader, writer, seconds)

Specs

wait(reader, writer, non_neg_integer) ::
  ElixirAgi.Agi.Result.t |
  :eof

See: https://wiki.asterisk.org/wiki/display/AST/Application_Wait

Macros

log(level, message)