elixir_agi v0.0.6 ElixirAgi.Agi
This module represents an AGI application
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
Closes an AGI socket
GenServer callback
GenServer callback
GenServer callback
GenServer callback
GenServer callback
Starts an AGI application
Starts and link an AGI application
GenServer callback
Types
t :: ElixirAgi.Agi
Functions
Specs
answer(GenServer.server) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_answer
Specs
code_change(term, state, term) :: {:ok, state}
GenServer callback
Specs
dial(GenServer.server, String.t, non_neg_integer, [String.t]) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Application_Dial
Specs
exec(GenServer.server, String.t, [String.t], Integer.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_exec
Specs
get_full_variable(GenServer.server, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_get+full+variable
Specs
handle_call(term, term, state) ::
{:noreply, state} |
{:reply, term, state}
GenServer callback
Specs
handle_cast(term, state) ::
{:noreply, state} |
{:stop, :normal, state}
GenServer callback
Specs
hangup(GenServer.server, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/AGICommand_hangup
Specs
set_variable(GenServer.server, String.t, String.t) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+AGICommand_set+variable
Specs
wait(GenServer.server, non_neg_integer) :: ElixirAgi.Agi.Result.t
See: https://wiki.asterisk.org/wiki/display/AST/Application_Wait