Asterisk Manager Interface (AMI)

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
Asterisk 15 Asterisk Call Manager/4.0.3

/etc/asterisk/manager.conf

Нажмите, чтобы отобразить

Нажмите, чтобы скрыть

; ---------------------------- SECURITY NOTE -------------------------------
; Note that you should not enable the AMI on a public IP address. If needed,
; block this TCP port with iptables (or another FW software) and reach it
; with IPsec, SSH, or SSL vpn tunnel.  You can also make the manager
; interface available over http/https if Asterisk's http server is enabled in
; http.conf and if both "enabled" and "webenabled" are set to yes in
; this file.  Both default to no.  httptimeout provides the maximum
; timeout in seconds before a web based session is discarded.  The
; default is 60 seconds.
;
[general]
enabled = yes
;webenabled = yes
 
port = 5041
bindaddr = 0.0.0.0

; Parameters that control AMI over TLS. ("enabled" must be set too).
; You can open a connection to this socket with e.g.
;
;	openssl s_client -connect my_host:5039
;
;tlsenable=no		; set to YES to enable it
;tlsbindaddr=0.0.0.0:5039		; address and port to bind to, default to bindaddr and port 5039
;tlscertfile=/tmp/asterisk.pem	; path to the certificate.
;tlsprivatekey=/tmp/private.pem ; path to the private key, if no private given,
                                ; if no tlsprivatekey is given, default is to search
								; tlscertfile for private key.
;tlscipher=<cipher string>      ; string specifying which SSL ciphers to use or not use
;
;allowmultiplelogin = yes		; IF set to no, rejects manager logins that are already in use.
;                               ; The default is yes.
;
;displayconnects = yes
;
; Add a Unix epoch timestamp to events (not action responses)
;
;timestampevents = yes

;brokeneventsaction = yes   ; Restore previous behavior that caused the events
                            ; action to not return a response in certain
                            ; circumstances.  Defaults to 'no'.

;
; Display certain channel variables every time a channel-oriented
; event is emitted:
;
;channelvars = var1,var2,var3

; debug = on	; enable some debugging info in AMI messages (default off).
		; Also accessible through the "manager debug" CLI command.

; authtimeout specifies the maximum number of seconds a client has to
; authenticate.  If the client does not authenticate beofre this timeout
; expires, the client will be disconnected. (default: 30 seconds)

;authtimeout = 30

; authlimit specifies the maximum number of unauthenticated sessions that will
; be allowed to connect at any given time.

;authlimit = 50

;httptimeout = 60
; a) httptimeout sets the Max-Age of the http cookie
; b) httptimeout is the amount of time the webserver waits
;    on a action=waitevent request (actually its httptimeout-10)
; c) httptimeout is also the amount of time the webserver keeps
;    a http session alive after completing a successful action
 
 
[admin]
secret = PASS
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.0
read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write = system,call,agent,user,config,command,reporting,originate,message

 
;acl=named_acl_example               ; use a named ACL from acl.conf
;
;
;setvar=PBXACCOUNT=edvina
; The setvar option defines channel variables that will be set when this account
; originates a call. You can define multiple setvar= commands for one manager
; user.
;
;eventfilter=Event: Newchannel
;eventfilter=Channel: (PJ)?SIP/(james|jim|john)-
;eventfilter=!Channel: DAHDI/
; The eventfilter option is used to whitelist or blacklist events per user.
; A filter consists of an (unanchored) regular expression that is run on the
; entire event data. If the first character of the filter is an exclamation
; mark (!), the filter is appended to the blacklist instead of the whitelist.
; After first checking the read access below, the regular expression filters
; are processed as follows:
; - If no filters are configured all events are reported as normal.
; - If there are white filters only: implied black all filter processed first,
; then white filters.
; - If there are black filters only: implied white all filter processed first,
; then black filters.
; - If there are both white and black filters: implied black all filter processed
; first, then white filters, and lastly black filters.

;
; If the device connected via this user accepts input slowly,
; the timeout for writes to it can be increased to keep it
; from being disconnected (value is in milliseconds)
;
; writetimeout = 100
;
;displayconnects = yes	; Display on CLI user login/logoff
;
; Authorization for various classes
;
; Read authorization permits you to receive asynchronous events, in general.
; Write authorization permits you to send commands and get back responses.  The
; following classes exist:
;
; all       - All event classes below (including any we may have missed).
; system    - General information about the system and ability to run system
;             management commands, such as Shutdown, Restart, and Reload. This
;             class also includes dialplan manipulation actions such as
;             DialplanExtensionAdd and DialplanExtensionRemove.
; call      - Information about channels and ability to set information in a
;             running channel.
; log       - Logging information.  Read-only. (Defined but not yet used.)
; verbose   - Verbose information.  Read-only. (Defined but not yet used.)
; agent     - Information about queues and agents and ability to add queue
;             members to a queue.
; user      - Permission to send and receive UserEvent.
; config    - Ability to read and write configuration files.
; command   - Permission to run CLI commands.  Write-only.
; dtmf      - Receive DTMF events.  Read-only.
; reporting - Ability to get information about the system.
; cdr       - Output of cdr_manager, if loaded.  Read-only.
; dialplan  - Receive NewExten and VarSet events.  Read-only.
; originate - Permission to originate new calls.  Write-only.
; agi       - Output AGI commands executed.  Input AGI command to execute.
; cc        - Call Completion events.  Read-only.
; aoc       - Permission to send Advice Of Charge messages and receive Advice
;           - Of Charge events.
; test      - Ability to read TestEvent notifications sent to the Asterisk Test
;             Suite.  Note that this is only enabled when the TEST_FRAMEWORK
;             compiler flag is defined.
; security  - Security Events.  Read-only.
; message   - Permissions to send out of call messages. Write-only
;
;read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
;write = system,call,agent,user,config,command,reporting,originate,message

[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 15

Action Synopsis
AbsoluteTimeout Set absolute timeout.
AOCMessage Generate an Advice of Charge mess
Atxfer Attended transfer.
BlindTransfer Blind transfer channel(s) to the
Bridge Bridge two channels already in th
BridgeDestroy Destroy a bridge.
BridgeInfo Get information about a bridge.
BridgeKick Kick a channel from a bridge.
BridgeList Get a list of bridges in the syst
BridgeTechnologyList List available bridging technolog
BridgeTechnologySuspend Suspend a bridging technology.
BridgeTechnologyUnsuspend Unsuspend a bridging technology.
CancelAtxfer Cancel an attended transfer.
Challenge Generate Challenge for MD5 Auth.
Command Execute Asterisk CLI Command.
ConfbridgeKick Kick a Confbridge user.
ConfbridgeList List participants in a conference
ConfbridgeListRooms List active conferences.
ConfbridgeLock Lock a Confbridge conference.
ConfbridgeMute Mute a Confbridge user.
ConfbridgeSetSingleVideoSrc Set a conference user as the sing
ConfbridgeStartRecord Start recording a Confbridge conf
ConfbridgeStopRecord Stop recording a Confbridge confe
ConfbridgeUnlock Unlock a Confbridge conference.
ConfbridgeUnmute Unmute a Confbridge user.
CoreSettings Show PBX core settings (version e
CoreShowChannels List currently active channels.
CoreStatus Show PBX core status variables.
CreateConfig Creates an empty file in the conf
DBDel Delete DB entry.
DBDelTree Delete DB Tree.
DBGet Get DB Entry.
DBPut Put DB entry.
DialplanExtensionAdd Add an extension to the dialplan
DialplanExtensionRemove Remove an extension from the dial
Events Control Event Flow.
ExtensionState Check Extension Status.
ExtensionStateList List the current known extension
Filter Dynamically add filters for the c
GetConfig Retrieve configuration.
GetConfigJSON Retrieve configuration (JSON form
Getvar Gets a channel variable or functi
Hangup Hangup channel.
ListCategories List categories in configuration
ListCommands List available manager commands.
LocalOptimizeAway Optimize away a local channel whe
LoggerRotate Reload and rotate the Asterisk lo
Login Login Manager.
Logoff Logoff Manager.
MailboxCount Check Mailbox Message Count.
MailboxStatus Check mailbox.
MessageSend Send an out of call message to an
ModuleCheck Check if module is loaded.
ModuleLoad Module management.
Originate Originate a call.
Ping Keepalive command.
PJSIPQualify Qualify a chan_pjsip endpoint.
PJSIPRegister Register an outbound registration
PJSIPShowEndpoint Detail listing of an endpoint and
PJSIPShowEndpoints Lists PJSIP endpoints.
PJSIPShowRegistrationInboundContactStatuses Lists ContactStatuses for PJSIP i
PJSIPShowRegistrationsInbound Lists PJSIP inbound registrations
PJSIPShowRegistrationsOutbound Lists PJSIP outbound registration
PJSIPShowResourceLists Displays settings for configured
PJSIPShowSubscriptionsInbound Lists subscriptions.
PJSIPShowSubscriptionsOutbound Lists subscriptions.
PJSIPUnregister Unregister an outbound registrati
PresenceState Check Presence State
Redirect Redirect (transfer) a call.
Reload Send a reload event.
SendText Send text message to channel.
Setvar Sets a channel variable or functi
ShowDialPlan Show dialplan contexts and extens
Status List channel status.
UpdateConfig Update basic configuration.
UserEvent Send an arbitrary event.
VoicemailRefresh Tell Asterisk to poll mailboxes f
VoicemailUsersList List All Voicemail User Informati
WaitEvent Wait for an event to occur.

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>

Originate

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.

Настройка Asterisk

  • asterisk/ami.txt
  • Последние изменения: 2019/08/21