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

Types

t :: ElixirAgi.Agi

Functions

close(server)

Specs

close(GenServer.server) :: :ok

Closes an AGI socket.

code_change(arg1, state, extra)

Specs

code_change(term, state, term) :: {:ok, state}

GenServer callback

dial(server, dial_string, timeout_seconds, options)

Specs

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

exec(server, application, args \\ [], timeout \\ 5000)

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

handle_call(msg, from, state)

Specs

handle_call(term, term, state) ::
  {:noreply, state} |
  {:reply, term, state}

GenServer callback

handle_cast(msg, state)

Specs

handle_cast(term, state) ::
  {:noreply, state} |
  {:stop, :normal, state}

GenServer callback

handle_info(message, state)

Specs

handle_info(term, state) :: {:noreply, state}

GenServer callback

init(args)

Specs

init(t) :: {:ok, state}

GenServer callback

start(info)

Specs

start(t) :: GenServer.on_start

Starts an AGI application.

start_link(info)

Specs

start_link(t) :: GenServer.on_start

Starts and link an AGI application.

terminate(reason, state)

Specs

terminate(term, state) :: :ok

GenServer callback

Macros

log(level, message)