elixir_agi v0.0.12 ElixirAgi.Agi

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

close :: function
init :: function
reader :: function
t :: ElixirAgi.Agi
writer :: function

Functions

amd(agi, initial_silence, greeting, after_greeting_silence, total_time, min_word_length, between_words_silence, max_words, silence_threshold, max_word_length)

Specs

amd(t, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer, non_neg_integer) :: ElixirAgi.Agi.Result.t

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

dial(agi, dial_string, timeout_seconds, options)

Specs

dial(t, String.t, non_neg_integer, [String.t]) :: ElixirAgi.Agi.Result.t

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

new(debug \\ false)

Specs

new(boolean) :: t

Returns an AGI struct that uses STDIN and STDOUT.

new(init, close, reader, writer, debug)

Specs

new(init, close, reader, writer, boolean) :: t

Returns an AGI struct.

read_variables(agi, vars \\ %{})

Specs

read_variables(t, Map.t) :: Map.t
run(agi, cmd, args)
wait(agi, seconds)

Specs

wait(t, non_neg_integer) :: ElixirAgi.Agi.Result.t

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

Macros

log(level, message)