ElixirAmi.Action

An AMI action is represented by this structure.

See: https://wiki.asterisk.org/wiki/display/AST/AMI+Actions

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

Creates a new action structure from the given name, keys, and variables

Transforms an action structure into an iolist suitable to be sent through a socket

Types

t :: ElixirAmi.Action

Functions

absolute_timeout(channel, timeout)

Specs

absolute_timeout(String.t, Integer.t) :: t

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

agent_logoff(agent, soft)

Specs

agent_logoff(String.t, boolean) :: t

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

agi(channel, command, command_id)

Specs

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

bridge(channel1, channel2, tone)

Specs

bridge(String.t, String.t, boolean) :: t

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

core_show_channels()

Specs

core_show_channels :: t

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

monitor(channel, file, format, mix)

Specs

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

new(name, keys \\ %{}, variables \\ %{})

Specs

new(String.t, Map.t, Map.t) :: t

Creates a new action structure from the given name, keys, and variables.

originate(channel, application, data, timeout, caller_id, account, async, codecs, variables)

Specs

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

originate(channel, exten, context, priority, timeout, caller_id, account, async, codecs, variables)

Specs

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

park(channel, channel2, timeout, parking_lot)

Specs

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

pause_monitor(channel)

Specs

pause_monitor(String.t) :: t

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

redirect(channel, context, exten, priority)

Specs

redirect(String.t, String.t, String.t, String.t) :: t

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

send_text(channel, message)

Specs

send_text(String.t, String.t) :: t

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

serialize(action)

Specs

serialize(t) :: iolist

Transforms an action structure into an iolist suitable to be sent through a socket.

sip_qualify_peer(peer)

Specs

sip_qualify_peer(String.t) :: t

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

unpause_monitor(channel)

Specs

unpause_monitor(String.t) :: t

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

user_event(event, headers \\ %{})

Specs

user_event(String.t, Map.t) :: t

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

voicemail_users_list()

Specs

voicemail_users_list :: t

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