elixir_agi v0.0.20 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
Functions
See: https://wiki.asterisk.org/wiki/display/AST/Application_AMD
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_answer
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_channel+status
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_control+stream+file
See: https://wiki.asterisk.org/wiki/display/AST/Application_Dial
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_exec
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+data
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_get+full+variable
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+option
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_hangup
Returns an AGI struct that uses STDIN and STDOUT
Returns an AGI struct
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_record+file
Runs an agi command on a channel
Parameters
- agi: the agi channel to send command to
- cmd: Asterisk command name
- args: List of asterisk command parameters in order of asterisk command docs
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+alpha
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+date
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+datetime TODO: This function needs testing!
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+digits
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+number
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+phonetic
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+time
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+autohangup
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+callerid
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+context
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+extension
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_set+variable
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_stream+file
See: https://wiki.asterisk.org/wiki/display/AST/Application_Wait
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_wait+for+digit
Types
Functions
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
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_answer
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_channel+status
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_control+stream+file
dial(t, String.t, non_neg_integer, [String.t]) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Application_Dial
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_exec
get_data(t, String.t, Integer.t, Integer.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+data
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_get+full+variable
get_option(t, String.t, String.t, Integer.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_get+option
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_hangup
Returns an AGI struct that uses STDIN and STDOUT.
Returns an AGI struct.
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_record+file
Runs an agi command on a channel
Parameters
- agi: the agi channel to send command to
- cmd: Asterisk command name
- args: List of asterisk command parameters in order of asterisk command docs
say_alpha(t, Integer.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+alpha
say_date(t, Integer.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+date
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+datetime TODO: This function needs testing!
say_digits(t, Integer.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+digits
say_number(t, Integer.t, String.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+number
say_phonetic(t, String.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+phonetic
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_say+time
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+autohangup
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+callerid
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+context
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_set+extension
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_set+variable
stream_file(t, String.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_stream+file
See: https://wiki.asterisk.org/wiki/display/AST/Application_Wait
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_wait+for+digit