Asterisk Call manager (AMI) versions
Asterisk | AMI |
---|---|
Asterisk 1.8 | Asterisk Call Manager /1.1 |
Asterisk 11 | Asterisk Call Manager /1.3 |
Asterisk 12 | Asterisk Call Manager /2.5 |
Asterisk 13 | Asterisk Call Manager /2.8 |
/etc/asterisk/manager.conf
[admin] secret = amp111 deny = 0.0.0.0/0.0.0.0 permit = 127.0.0.1/255.255.255.255 read = all,system,call,log,verbose,command,agent,user,config write = all,system,call,log,verbose,command,agent,user,config
telnet
$ telnet 127.0.0.1 5038 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Asterisk Call Manager/1.0
Ctrl-V
Action: Login ActionID: 1 Username: admin Secret: amp111
Для ввода команды требуется двойное нажатие ENTER
Action: Login ActionID: 1 Username: manager1 Secret: manager111
Action: QueueAdd Queue: qs01 Interface: Local/6666@from-qs01 Penalty: 1 Paused: true
Action: QueueRemove Queue: qs01 Interface: Local/6666@from-qs01
Asterisk 1.8 + Dongle
asterisk*CLI> manager show commands Action Privilege Synopsis ------ --------- -------- WaitEvent <none> Wait for an event to occur. QueueReset <none> Reset queue statistics. QueueReload <none> Reload a queue, queues, or any sub-section of a queue o QueueRule <none> Queue Rules. QueuePenalty agent,all Set the penalty for a queue member. QueueLog agent,all Adds custom entry in queue_log. QueuePause agent,all Makes a queue member temporarily unavailable. QueueRemove agent,all Remove interface from queue. QueueAdd agent,all Add interface to queue. QueueSummary <none> Show queue summary. QueueStatus <none> Show queue status. Queues <none> Queues. MuteAudio system,all Mute an audio stream VoicemailUsersL call,reporting, List All Voicemail User Information. DongleReload system,config,a Reload a module configuration. DongleRemove system,config,a Remove a dongle. DongleStart system,config,a Start a dongle. DongleStop system,config,a Stop a dongle. DongleRestart system,config,a Restart a dongle. DongleReset system,config,a Reset a dongle. DongleSetCCWA config,all Enable/Disabled Call-Waiting on a dongle. DongleSendPDU call,all Send a PDU of message. DongleSendSMS call,all Send a SMS message. DongleSendUSSD call,all Send a ussd command to the dongle. DongleShowDevic system,reportin List Dongle devices MixMonitorMute <none> Mute / unMute a Mixmonitor recording. PlayDTMF call,all Play DTMF signal on a specific channel. MeetmeList reporting,all List participants in a conference. MeetmeUnmute call,all Unmute a Meetme user. MeetmeMute call,all Mute a Meetme user. DAHDIRestart <none> Fully Restart DAHDI channels (terminates calls). DAHDIShowChanne <none> Show status of DAHDI channels. DAHDIDNDoff <none> Toggle DAHDI channel Do Not Disturb status OFF. DAHDIDNDon <none> Toggle DAHDI channel Do Not Disturb status ON. DAHDIDialOffhoo <none> Dial over DAHDI channel while offhook. DAHDIHangup <none> Hangup DAHDI Channel. DAHDITransfer <none> Transfer DAHDI Channel. IAXregistry system,reportin Show IAX registrations. IAXnetstats system,reportin Show IAX Netstats. IAXpeerlist system,reportin List IAX Peers. IAXpeers system,reportin List IAX peers. SIPnotify system,all Send a SIP notify. SIPshowregistry system,reportin Show SIP registrations (text format). SIPqualifypeer system,reportin Qualify SIP peers. SIPshowpeer system,reportin show SIP peer (text format). SIPpeers system,reportin List SIP peers (text format). AGI agi,all Add an AGI command to execute by Async AGI. UnpauseMonitor call,all Unpause monitoring of a channel. PauseMonitor call,all Pause monitoring of a channel. ChangeMonitor call,all Change monitoring filename of a channel. StopMonitor call,all Stop monitoring a channel. Monitor call,all Monitor a channel. DBDelTree system,all Delete DB Tree. DBDel system,all Delete DB entry. DBPut system,all Put DB entry. DBGet system,reportin Get DB Entry. Bridge call,all Bridge two channels already in the PBX. Park call,all Park a channel. ParkedCalls <none> List parked calls. ShowDialPlan config,reportin Show dialplan contexts and extensions AOCMessage aoc,all Generate an Advice of Charge message on a channel. ModuleCheck system,all Check if module is loaded. ModuleLoad system,all Module management. CoreShowChannel system,reportin List currently active channels. Reload system,config,a Send a reload event. CoreStatus system,reportin Show PBX core status variables. CoreSettings system,reportin Show PBX core settings (version etc). UserEvent user,all Send an arbitrary event. UpdateConfig config,all Update basic configuration. SendText call,all Send text message to channel. ListCommands <none> List available manager commands. MailboxCount call,reporting, Check Mailbox Message Count. MailboxStatus call,reporting, Check mailbox. AbsoluteTimeout system,call,all Set absolute timeout. ExtensionState call,reporting, Check Extension Status. Command command,all Execute Asterisk CLI Command. Originate originate,all Originate a call. Atxfer call,all Attended transfer. Redirect call,all Redirect (transfer) a call. ListCategories config,all List categories in configuration file. CreateConfig config,all Creates an empty file in the configuration directory. Status system,call,rep List channel status. GetConfigJSON system,config,a Retrieve configuration (JSON format). GetConfig system,config,a Retrieve configuration. Getvar call,reporting, Gets a channel variable or function value. Setvar call,all Sets a channel variable or function value. Ping <none> Keepalive command. Hangup system,call,all Hangup channel. Challenge <none> Generate Challenge for MD5 Auth. Login <none> Login Manager. Logoff <none> Logoff Manager. Events <none> Control Event Flow. LocalOptimizeAw system,call,all Optimize away a local channel when possible. DataGet <none> Retrieve the data api tree. asterisk*CLI>
Asterisk 12
Connected to Asterisk 12.5.0 currently running on localhost (pid = 1300) localhost*CLI> manager show commands Action Synopsis ------ -------- WaitEvent Wait for an event to occur. QueueReset Reset queue statistics. QueueReload Reload a queue, queues, or any sub-section of a q QueueRule Queue Rules. QueueMemberRingInUse Set the ringinuse value for a queue member. QueuePenalty Set the penalty for a queue member. QueueLog Adds custom entry in queue_log. QueuePause Makes a queue member temporarily unavailable. QueueRemove Remove interface from queue. QueueAdd Add interface to queue. QueueSummary Show queue summary. QueueStatus Show queue status. Queues Queues. PlayDTMF Play DTMF signal on a specific channel. VoicemailRefresh Tell Asterisk to poll mailboxes for a change VoicemailUsersList List All Voicemail User Information. MuteAudio Mute an audio stream. ControlPlayback Control the playback of a file being played to a StopMixMonitor Stop recording a call through MixMonitor, and fre MixMonitor Record a call and mix the audio during the record MixMonitorMute Mute / unMute a Mixmonitor recording. ConfbridgeSetSingleVideoSrc Set a conference user as the single video source ConfbridgeStopRecord Stop recording a Confbridge conference. ConfbridgeStartRecord Start recording a Confbridge conference. ConfbridgeLock Lock a Confbridge conference. ConfbridgeUnlock Unlock a Confbridge conference. ConfbridgeKick Kick a Confbridge user. ConfbridgeUnmute Unmute a Confbridge user. ConfbridgeMute Mute a Confbridge user. ConfbridgeListRooms List active conferences. ConfbridgeList List participants in a conference. IAXregistry Show IAX registrations. IAXnetstats Show IAX Netstats. IAXpeerlist List IAX Peers. IAXpeers List IAX peers. PRIShowSpans Show status of PRI spans. DAHDIRestart Fully Restart DAHDI channels (terminates calls). DAHDIShowChannels Show status of DAHDI channels. DAHDIDNDoff Toggle DAHDI channel Do Not Disturb status OFF. DAHDIDNDon Toggle DAHDI channel Do Not Disturb status ON. DAHDIDialOffhook Dial over DAHDI channel while offhook. DAHDIHangup Hangup DAHDI Channel. DAHDITransfer Transfer DAHDI Channel. SIPpeerstatus Show the status of one or all of the sip peers. SIPnotify Send a SIP notify. SIPshowregistry Show SIP registrations (text format). SIPqualifypeer Qualify SIP peers. SIPshowpeer show SIP peer (text format). SIPpeers List SIP peers (text format). Park Park a channel. ParkedCalls List parked calls. Parkinglots Get a list of parking lots AGI Add an AGI command to execute by Async AGI. UnpauseMonitor Unpause monitoring of a channel. PauseMonitor Pause monitoring of a channel. ChangeMonitor Change monitoring filename of a channel. StopMonitor Stop monitoring a channel. Monitor Monitor a channel. BridgeKick Kick a channel from a bridge. BridgeDestroy Destroy a bridge. BridgeInfo Get information about a bridge. BridgeList Get a list of bridges in the system. BlindTransfer Blind transfer channel(s) to the given destinatio Filter Dynamically add filters for the current manager s AOCMessage Generate an Advice of Charge message on a channel ModuleCheck Check if module is loaded. ModuleLoad Module management. CoreShowChannels List currently active channels. Reload Send a reload event. CoreStatus Show PBX core status variables. CoreSettings Show PBX core settings (version etc). UserEvent Send an arbitrary event. UpdateConfig Update basic configuration. SendText Send text message to channel. ListCommands List available manager commands. MailboxCount Check Mailbox Message Count. MailboxStatus Check mailbox. AbsoluteTimeout Set absolute timeout. PresenceState Check Presence State ExtensionState Check Extension Status. Command Execute Asterisk CLI Command. Originate Originate a call. Atxfer Attended transfer. Redirect Redirect (transfer) a call. ListCategories List categories in configuration file. CreateConfig Creates an empty file in the configuration direct Status List channel status. GetConfigJSON Retrieve configuration (JSON format). GetConfig Retrieve configuration. Getvar Gets a channel variable or function value. Setvar Sets a channel variable or function value. ShowDialPlan Show dialplan contexts and extensions Hangup Hangup channel. Challenge Generate Challenge for MD5 Auth. Login Login Manager. Logoff Logoff Manager. Events Control Event Flow. Ping Keepalive command. LocalOptimizeAway Optimize away a local channel when possible. MessageSend Send an out of call message to an endpoint. Bridge Bridge two channels already in the PBX. BridgeTechnologyUnsuspend Unsuspend a bridging technology. BridgeTechnologySuspend Suspend a bridging technology. BridgeTechnologyList List available bridging technologies and their st DataGet Retrieve the data api tree. DBPut Put DB entry. DBDelTree Delete DB Tree. DBDel Delete DB entry. DBGet Get DB Entry. localhost*CLI>
DBGet asterisk 13
asterisk*CLI> manager show commands Action Synopsis ------ -------- WaitEvent Wait for an event to occur. PresenceStateList List the current known presence states. QueueReset Reset queue statistics. QueueReload Reload a queue, queues, or any sub-section of QueueRule Queue Rules. QueueMemberRingInUse Set the ringinuse value for a queue member. QueuePenalty Set the penalty for a queue member. QueueLog Adds custom entry in queue_log. QueuePause Makes a queue member temporarily unavailable. QueueRemove Remove interface from queue. QueueAdd Add interface to queue. QueueSummary Show queue summary. QueueStatus Show queue status. Queues Queues. DeviceStateList List the current known device states. PlayDTMF Play DTMF signal on a specific channel. StopMixMonitor Stop recording a call through MixMonitor, and MixMonitor Record a call and mix the audio during the rec MixMonitorMute Mute / unMute a Mixmonitor recording. VoicemailRefresh Tell Asterisk to poll mailboxes for a change VoicemailUsersList List All Voicemail User Information. MuteAudio Mute an audio stream. ControlPlayback Control the playback of a file being played to ConfbridgeSetSingleVideoSrc Set a conference user as the single video sour ConfbridgeStopRecord Stop recording a Confbridge conference. ConfbridgeStartRecord Start recording a Confbridge conference. ConfbridgeLock Lock a Confbridge conference. ConfbridgeUnlock Unlock a Confbridge conference. ConfbridgeKick Kick a Confbridge user. ConfbridgeUnmute Unmute a Confbridge user. ConfbridgeMute Mute a Confbridge user. ConfbridgeListRooms List active conferences. ConfbridgeList List participants in a conference. PJSIPShowRegistrationsInbound Lists PJSIP inbound registrations. PJSIPShowRegistrationsOutbound Lists PJSIP outbound registrations. PJSIPRegister Register an outbound registration. PJSIPUnregister Unregister an outbound registration. PJSIPNotify Send a NOTIFY to either an endpoint or an arbi IAXregistry Show IAX registrations. IAXnetstats Show IAX Netstats. IAXpeerlist List IAX Peers. IAXpeers List IAX peers. SIPpeerstatus Show the status of one or all of the sip peers SIPnotify Send a SIP notify. SIPshowregistry Show SIP registrations (text format). SIPqualifypeer Qualify SIP peers. SIPshowpeer show SIP peer (text format). SIPpeers List SIP peers (text format). PRIDebugFileUnset Disables file output for PRI debug messages PRIDebugFileSet Set the file used for PRI debug message output PRIDebugSet Set PRI debug levels for a span PRIShowSpans Show status of PRI spans. DAHDIRestart Fully Restart DAHDI channels (terminates calls DAHDIShowChannels Show status of DAHDI channels. DAHDIDNDoff Toggle DAHDI channel Do Not Disturb status OFF DAHDIDNDon Toggle DAHDI channel Do Not Disturb status ON. DAHDIDialOffhook Dial over DAHDI channel while offhook. DAHDIHangup Hangup DAHDI Channel. DAHDITransfer Transfer DAHDI Channel. UnpauseMonitor Unpause monitoring of a channel. PauseMonitor Pause monitoring of a channel. ChangeMonitor Change monitoring filename of a channel. StopMonitor Stop monitoring a channel. Monitor Monitor a channel. Park Park a channel. ParkedCalls List parked calls. Parkinglots Get a list of parking lots FAXStats Responds with fax statistics FAXSession Responds with a detailed description of a sing FAXSessions Lists active FAX sessions AGI Add an AGI command to execute by Async AGI. PJSIPShowResourceLists Displays settings for configured resource list PJSIPShowSubscriptionsOutbound Lists subscriptions. PJSIPShowSubscriptionsInbound Lists subscriptions. PJSIPQualify Qualify a chan_pjsip endpoint. PJSIPShowEndpoint Detail listing of an endpoint and its objects. PJSIPShowEndpoints Lists PJSIP endpoints. BridgeKick Kick a channel from a bridge. BridgeDestroy Destroy a bridge. BridgeInfo Get information about a bridge. BridgeList Get a list of bridges in the system. BlindTransfer Blind transfer channel(s) to the given destina Filter Dynamically add filters for the current manage AOCMessage Generate an Advice of Charge message on a chan ModuleCheck Check if module is loaded. ModuleLoad Module management. CoreShowChannels List currently active channels. LoggerRotate Reload and rotate the Asterisk logger. Reload Send a reload event. CoreStatus Show PBX core status variables. CoreSettings Show PBX core settings (version etc). UserEvent Send an arbitrary event. UpdateConfig Update basic configuration. SendText Send text message to channel. ListCommands List available manager commands. MailboxCount Check Mailbox Message Count. MailboxStatus Check mailbox. AbsoluteTimeout Set absolute timeout. PresenceState Check Presence State ExtensionState Check Extension Status. Command Execute Asterisk CLI Command. Originate Originate a call. Atxfer Attended transfer. Redirect Redirect (transfer) a call. ListCategories List categories in configuration file. CreateConfig Creates an empty file in the configuration dir Status List channel status. GetConfigJSON Retrieve configuration (JSON format). GetConfig Retrieve configuration. Getvar Gets a channel variable or function value. Setvar Sets a channel variable or function value. ShowDialPlan Show dialplan contexts and extensions Hangup Hangup channel. Challenge Generate Challenge for MD5 Auth. Login Login Manager. Logoff Logoff Manager. Events Control Event Flow. Ping Keepalive command. LocalOptimizeAway Optimize away a local channel when possible. ExtensionStateList List the current known extension states. MessageSend Send an out of call message to an endpoint. Bridge Bridge two channels already in the PBX. DialplanExtensionRemove Remove an extension from the dialplan DialplanExtensionAdd Add an extension to the dialplan BridgeTechnologyUnsuspend Unsuspend a bridging technology. BridgeTechnologySuspend Suspend a bridging technology. BridgeTechnologyList List available bridging technologies and their DataGet Retrieve the data api tree. DBPut Put DB entry. DBDelTree Delete DB Tree. DBDel Delete DB entry. DBGet Get DB Entry.