Внимание!
Эта wiki об устаревших версиях
Документация к актуальной версии интеграции 1С и телефонии доступна по ссылке

Инструменты пользователя

Инструменты сайта


kb:asterisk:ami:listcommands

Команда Asterisk Manager API: ListCommands

Команда выдает список команд, которые доступны через Asterisk Manager API.

Параметры команды

  • ActionID: Не обязательный ID команды, который будет возвращен в ответе.

Пример

Запрос:

Action: ListCommands

Ответ asterisk (версии 1.4):

Response: Success
AbsoluteTimeout: Set Absolute Timeout (Priv: call,all)
AgentCallbackLogin: Sets an agent as logged in by callback (Priv: agent,all)
AgentLogoff: Sets an agent as no longer logged in (Priv: agent,all)
Agents: Lists agents and their status (Priv: agent,all)
ChangeMonitor: Change monitoring filename of a channel (Priv: call,all)
Command: Execute Asterisk CLI Command (Priv: command,all)
DAHDIDialOffHook: Dial over channel while offhook (Priv: )
DAHDIDNDoff: Toggle channel Do Not Disturb status OFF (Priv: )
DAHDIDNDon: Toggle channel Do Not Disturb status ON (Priv: )
DAHDIHangup: Hangup Channel (Priv: )
DAHDIRestart: Fully Restart channels (terminates calls) (Priv: )
DAHDIShowChannels: Show status channels (Priv: )
DAHDITransfer: Transfer Channel (Priv: )
DBGet: Get DB Entry (Priv: system,all)
DBPut: Put DB Entry (Priv: system,all)
Events: Control Event Flow (Priv: )
ExtensionState: Check Extension Status (Priv: call,all)
GetConfig: Retrieve configuration (Priv: config,all)
Getvar: Gets a Channel Variable (Priv: call,all)
Hangup: Hangup Channel (Priv: call,all)
ListCommands: List available manager commands (Priv: )
Logoff: Logoff Manager (Priv: )
MailboxCount: Check Mailbox Message Count (Priv: call,all)
MailboxStatus: Check Mailbox (Priv: call,all)
MeetmeMute: Mute a Meetme user (Priv: call,all)
MeetmeUnmute: Unmute a Meetme user (Priv: call,all)
Monitor: Monitor a channel (Priv: call,all)
Originate: Originate Call (Priv: call,all)
Park: Park a channel (Priv: call,all)
ParkedCalls: List parked calls (Priv: )
PauseMonitor: Pause monitoring of a channel (Priv: call,all)
Ping: Keepalive command (Priv: )
PlayDTMF: Play DTMF signal on a specific channel. (Priv: call,all)
QueueAdd: Add interface to queue. (Priv: agent,all)
QueuePause: Makes a queue member temporarily unavailable (Priv: agent,all)
QueueRemove: Remove interface from queue. (Priv: agent,all)
Queues: Queues (Priv: )
QueueStatus: Queue Status (Priv: )
Redirect: Redirect (transfer) a call (Priv: call,all)
SetCDRUserField: Set the CDR UserField (Priv: call,all)
Setvar: Set Channel Variable (Priv: call,all)
SIPpeers: List SIP peers (text format) (Priv: system,all)
SIPshowpeer: Show SIP peer (text format) (Priv: system,all)
Status: Lists channel status (Priv: call,all)
StopMonitor: Stop monitoring a channel (Priv: call,all)
UnpauseMonitor: Unpause monitoring of a channel (Priv: call,all)
UpdateConfig: Update basic configuration (Priv: config,all)
UserEvent: Send an arbitrary event (Priv: user,all)
WaitEvent: Wait for an event to occur (Priv: )
ZapDialOffHook: Dial over channel while offhook (Priv: )
ZapDNDoff: Toggle channel Do Not Disturb status OFF (Priv: )
ZapDNDon: Toggle channel Do Not Disturb status ON (Priv: )
ZapHangup: Hangup Channel (Priv: )
ZapRestart: Fully Restart channels (terminates calls) (Priv: )
ZapShowChannels: Show status channels (Priv: )
ZapTransfer: Transfer Channel (Priv: )

Ответ asterisk (версии 1.6)

Response: Success
WaitEvent: Wait for an event to occur (Priv: <none>)
FaxLicenseList: Fax License List (Priv: call,all)
FaxLicenseStatus: Fax License Status (Priv: call,all)
SIPnotify: Send a SIP notify (Priv: system,all)
SIPshowregistry: Show SIP registrations (text format) (Priv: system,reporting,all)
SIPqualifypeer: Show SIP peer (text format) (Priv: system,reporting,all)
SIPshowpeer: Show SIP peer (text format) (Priv: system,reporting,all)
SIPpeers: List SIP peers (text format) (Priv: system,reporting,all)
SkypeRemoveBuddy: Remove a skype buddy (Priv: system,all)
SkypeAddBuddy: Add a skype buddy (Priv: system,all)
SkypeAccountProperty: Display Skype Buddy properties (Priv: system,all)
SkypeBuddy: Set a Skype account property (Priv: system,all)
SkypeBuddies: List Skype buddies (Priv: system,all)
SkypeChatSend: Send a Skype Chat message (Priv: system,all)
SkypeLicenseList: Skype for Asterisk license list (Priv: call,all)
SkypeLicenseStatus: Skype for Asterisk license status (Priv: call,all)
IAXregistry: Show IAX registrations (Priv: system,reporting,all)
IAXnetstats: Show IAX Netstats (Priv: system,reporting,all)
IAXpeerlist: List IAX Peers (Priv: system,reporting,all)
IAXpeers: List IAX Peers (Priv: system,reporting,all)
VoicemailUsersList: List All Voicemail User Information (Priv: call,reporting,all)
QueueReset: Reset queue statistics (Priv: <none>)
QueueReload: Reload a queue, queues, or any sub-section of a queue or queues (Priv: <none>)
QueueRule: Queue Rules (Priv: <none>)
QueuePenalty: Set the penalty for a queue member (Priv: agent,all)
QueueLog: Adds custom entry in queue_log (Priv: agent,all)
QueuePause: Makes a queue member temporarily unavailable (Priv: agent,all)
QueueRemove: Remove interface from queue. (Priv: agent,all)
QueueAdd: Add interface to queue. (Priv: agent,all)
QueueSummary: Queue Summary (Priv: <none>)
QueueStatus: Queue Status (Priv: <none>)
Queues: Queues (Priv: <none>)
PlayDTMF: Play DTMF signal on a specific channel. (Priv: call,all)
UnpauseMonitor: Unpause monitoring of a channel (Priv: call,all)
PauseMonitor: Pause monitoring of a channel (Priv: call,all)
ChangeMonitor: Change monitoring filename of a channel (Priv: call,all)
StopMonitor: Stop monitoring a channel (Priv: call,all)
Monitor: Monitor a channel (Priv: call,all)
DBDelTree: Delete DB Tree (Priv: system,all)
DBDel: Delete DB Entry (Priv: system,all)
DBPut: Put DB Entry (Priv: system,all)
DBGet: Get DB Entry (Priv: system,reporting,all)
Bridge: Bridge two channels already in the PBX (Priv: call,all)
Park: Park a channel (Priv: call,all)
ParkedCalls: List parked calls (Priv: <none>)
ShowDialPlan: List dialplan (Priv: config,reporting,all)
ModuleCheck: Check if module is loaded (Priv: system,all)
ModuleLoad: Module management (Priv: system,all)
CoreShowChannels: List currently active channels (Priv: system,reporting,all)
Reload: Send a reload event (Priv: system,config,all)
CoreStatus: Show PBX core status variables (Priv: system,reporting,all)
CoreSettings: Show PBX core settings (version etc) (Priv: system,reporting,all)
UserEvent: Send an arbitrary event (Priv: user,all)
UpdateConfig: Update basic configuration (Priv: config,all)
SendText: Send text message to channel (Priv: call,all)
ListCommands: List available manager commands (Priv: <none>)
MailboxCount: Check Mailbox Message Count (Priv: call,reporting,all)
MailboxStatus: Check Mailbox (Priv: call,reporting,all)
AbsoluteTimeout: Set Absolute Timeout (Priv: system,call,all)
ExtensionState: Check Extension Status (Priv: call,reporting,all)
Command: Execute Asterisk CLI Command (Priv: command,all)
Originate: Originate Call (Priv: originate,all)
Atxfer: Attended transfer (Priv: call,all)
Redirect: Redirect (transfer) a call (Priv: call,all)
ListCategories: List categories in configuration file (Priv: config,all)
CreateConfig: Creates an empty file in the configuration directory (Priv: config,all)
Status: Lists channel status (Priv: system,call,reporting,all)
GetConfigJSON: Retrieve configuration (JSON format) (Priv: system,config,all)
GetConfig: Retrieve configuration (Priv: system,config,all)
Getvar: Gets a Channel Variable (Priv: call,reporting,all)
Setvar: Set Channel Variable (Priv: call,all)
Ping: Keepalive command (Priv: <none>)
Hangup: Hangup Channel (Priv: system,call,all)
Challenge: Generate Challenge for MD5 Auth (Priv: <none>)
Login: Login Manager (Priv: <none>)
Logoff: Logoff Manager (Priv: <none>)
Events: Control Event Flow (Priv: <none>)

Ответ asterisk (версии 1.8)

Response: Success
WaitEvent: Wait for an event to occur.  (Priv: <none>)
QueueReset: Reset queue statistics.  (Priv: <none>)
QueueReload: Reload a queue, queues, or any sub-section of a queue or queues.  (Priv: <none>)
QueueRule: Queue Rules.  (Priv: <none>)
QueuePenalty: Set the penalty for a queue member.  (Priv: agent,all)
QueueLog: Adds custom entry in queue_log.  (Priv: agent,all)
QueuePause: Makes a queue member temporarily unavailable.  (Priv: agent,all)
QueueRemove: Remove interface from queue.  (Priv: agent,all)
QueueAdd: Add interface to queue.  (Priv: agent,all)
QueueSummary: Show queue summary.  (Priv: <none>)
QueueStatus: Show queue status.  (Priv: <none>)
Queues: Queues.  (Priv: <none>)
VoicemailUsersList: List All Voicemail User Information.  (Priv: call,reporting,all)
PlayDTMF: Play DTMF signal on a specific channel.  (Priv: call,all)
MixMonitorMute: Mute / unMute a Mixmonitor recording.  (Priv: <none>)
MuteAudio: Mute an audio stream (Priv: system,all)
AgentLogoff: Sets an agent as no longer logged in.  (Priv: agent,all)
Agents: Lists agents and their status.  (Priv: agent,all)
SKINNYshowline: Show SKINNY line (text format).  (Priv: system,reporting,all)
SKINNYlines: List SKINNY lines (text format).  (Priv: system,reporting,all)
SKINNYshowdevice: Show SKINNY device (text format).  (Priv: system,reporting,all)
SKINNYdevices: List SKINNY devices (text format).  (Priv: system,reporting,all)
IAXregistry: Show IAX registrations.  (Priv: system,reporting,all)
IAXnetstats: Show IAX Netstats.  (Priv: system,reporting,all)
IAXpeerlist: List IAX Peers.  (Priv: system,reporting,all)
IAXpeers: List IAX peers.  (Priv: system,reporting,all)
SIPnotify: Send a SIP notify.  (Priv: system,all)
SIPshowregistry: Show SIP registrations (text format).  (Priv: system,reporting,all)
SIPqualifypeer: Qualify SIP peers.  (Priv: system,reporting,all)
SIPshowpeer: show SIP peer (text format).  (Priv: system,reporting,all)
SIPpeers: List SIP peers (text format).  (Priv: system,reporting,all)
JabberSend: Sends a message to a Jabber Client.  (Priv: system,all)
UnpauseMonitor: Unpause monitoring of a channel.  (Priv: call,all)
PauseMonitor: Pause monitoring of a channel.  (Priv: call,all)
ChangeMonitor: Change monitoring filename of a channel.  (Priv: call,all)
StopMonitor: Stop monitoring a channel.  (Priv: call,all)
Monitor: Monitor a channel.  (Priv: call,all)
DBDelTree: Delete DB Tree.  (Priv: system,all)
DBDel: Delete DB entry.  (Priv: system,all)
DBPut: Put DB entry.  (Priv: system,all)
DBGet: Get DB Entry.  (Priv: system,reporting,all)
Bridge: Bridge two channels already in the PBX.  (Priv: call,all)
Park: Park a channel.  (Priv: call,all)
ParkedCalls: List parked calls.  (Priv: <none>)
ShowDialPlan: Show dialplan contexts and extensions  (Priv: config,reporting,all)
ModuleCheck: Check if module is loaded.  (Priv: system,all)
ModuleLoad: Module management.  (Priv: system,all)
CoreShowChannels: List currently active channels.  (Priv: system,reporting,all)
Reload: Send a reload event.  (Priv: system,config,all)
CoreStatus: Show PBX core status variables.  (Priv: system,reporting,all)
CoreSettings: Show PBX core settings (version etc).  (Priv: system,reporting,all)
UserEvent: Send an arbitrary event.  (Priv: user,all)
UpdateConfig: Update basic configuration.  (Priv: config,all)
SendText: Send text message to channel.  (Priv: call,all)
ListCommands: List available manager commands.  (Priv: <none>)
MailboxCount: Check Mailbox Message Count.  (Priv: call,reporting,all)
MailboxStatus: Check mailbox.  (Priv: call,reporting,all)
AbsoluteTimeout: Set absolute timeout.  (Priv: system,call,all)
ExtensionState: Check Extension Status.  (Priv: call,reporting,all)
Command: Execute Asterisk CLI Command.  (Priv: command,all)
Originate: Originate a call.  (Priv: originate,all)
Atxfer: Attended transfer.  (Priv: call,all)
Redirect: Redirect (transfer) a call.  (Priv: call,all)
ListCategories: List categories in configuration file.  (Priv: config,all)
CreateConfig: Creates an empty file in the configuration directory.  (Priv: config,all)
Status: List channel status.  (Priv: system,call,reporting,all)
GetConfigJSON: Retrieve configuration (JSON format).  (Priv: system,config,all)
GetConfig: Retrieve configuration.  (Priv: system,config,all)
Getvar: Gets a channel variable.  (Priv: call,reporting,all)
Setvar: Set a channel variable.  (Priv: call,all)
Ping: Keepalive command.  (Priv: <none>)
Hangup: Hangup channel.  (Priv: system,call,all)
Challenge: Generate Challenge for MD5 Auth.  (Priv: <none>)
Login: Login Manager.  (Priv: <none>)
Logoff: Logoff Manager.  (Priv: <none>)
Events: Control Event Flow.  (Priv: <none>)
LocalOptimizeAway: Optimize away a local channel when possible.  (Priv: system,call,all)
DataGet: Retrieve the data api tree.  (Priv: <none>)

Ссылки по теме

kb/asterisk/ami/listcommands.txt · Последние изменения: 2014/11/14 22:32 (внешнее изменение)