Thursday, November 21, 2024

Một số lệnh cơ bản của Asterisk

-

Module

pluto*CLI> module reload manager 

help

pluto*CLI> help manager
manager reload                 -- Reload manager configurations
manager set debug [on|off]     -- Show, enable, disable debugging of the manager code
manager show command           -- Show a manager interface command
manager show commands          -- List manager interface commands
manager show connected         -- List connected manager interface users
manager show eventq            -- List manager interface queued events
manager show events            -- List manager interface events
manager show event             -- Show a manager interface event
manager show settings          -- Show manager global settings
manager show users             -- List configured manager users
manager show user              -- Display information on a specific manager user

show command

pluto*CLI> help manager show command
Usage: manager show command <actionname> [<actionname> [<actionname> [...]]]
	Shows the detailed description for a specific Asterisk manager interface command.

show commands

pluto*CLI> help manager show commands
Usage: manager show commands
	Prints a listing of all the available Asterisk manager interface commands.

Example

pluto*CLI> manager show commands
  Action                          Synopsis
  ------                          --------
  AbsoluteTimeout                 Set absolute timeout. 
  AgentLogoff                     Sets an agent as no longer logged in. 
  Agents                          Lists agents and their status. 
  AGI                             Add an AGI command to execute by Async AGI. 
...

show connected

pluto*CLI> help manager show connected
Usage: manager show connected
	Prints a listing of the users that are currently connected to the Asterisk manager interface.

Example

pluto*CLI> manager show connected
  Username         IP Address                                               Start       Elapsed     FileDes   HttpCnt   Read   Write
  test             127.0.0.1                                                1476265437  3           75        0         2147483647  2147483647
1 users connected.

show eventq

pluto*CLI> help manager show eventq
Usage: manager show eventq
	Prints a listing of all events pending in the Asterisk manger
event queue.

Example

pluto*CLI> manager show eventq
Usecount: 1
Category: 262144
Event:
Event: RequestBadFormat
Privilege: security,all
EventTV: 2016-10-12T09:47:41.510+0000
Severity: Error
Service: AMI
EventVersion: 1
SessionID: 0x76303354
LocalAddress: IPV4/TCP/0.0.0.0/5038
RemoteAddress: IPV4/TCP/127.0.0.1/51812
RequestType: Action: NONE
SessionTV: 2016-10-12T09:43:57.067+0000
AccountID: test

show events

pluto*CLI> help manager show events
Usage: manager show events
	Prints a listing of the available Asterisk manager interface events.

Example

pluto*CLI> manager show events
Events:
  --------------------  --------------------  --------------------  
  AGIExecEnd            AGIExecStart          AOC-D               
  AOC-E                 AOC-S                 AgentCalled         
...

show event

pluto*CLI> help manager show event
Usage: manager show event <eventname>
       Provides a detailed description a Manager interface event.

Example

pluto*CLI> manager show event OriginateResponse
Event: OriginateResponse
[Synopsis]
Raised in response to an Originate command.

[Syntax]
Event: OriginateResponse
[ActionID:] <value>
Response: <value>
Channel: <value>
Context: <value>
Exten: <value>
Application: <value>
Data: <value>
Reason: <value>
Uniqueid: <value>
CallerIDNum: <value>
CallerIDName: <value>

[Arguments]
Response
    Failure
    Success

[See Also]
Originate

show settings

pluto*CLI> help manager show settings
Usage: manager show settings
       Provides detailed list of the configuration of the Manager.

Example

pluto*CLI> manager show settings

Global Settings:
----------------
  Manager (AMI):             Yes            
  Web Manager (AMI/HTTP):    No             
  TCP Bindaddress:           0.0.0.0:5038   
  HTTP Timeout (minutes):    60             
  TLS Enable:                No             
  TLS Bindaddress:           Disabled       
  TLS Certfile:              asterisk.pem   
  TLS Privatekey:                           
  TLS Cipher:                               
  Allow multiple login:      Yes            
  Display connects:          Yes            
  Timestamp events:          No             
  Channel vars:                             
  Debug:                     No             

show users

pluto*CLI> help manager show users
Usage: manager show users
       Prints a listing of all managers that are currently configured on that
 system.

Example

pluto*CLI> manager show users

username
--------
test
-------------------
1 manager users configured.

show user

pluto*CLI> help manager show user
 Usage: manager show user <user>
        Display all information related to the manager user specified.

Example

pluto*CLI> manager show user test

          username: test
            secret: <Set>
               ACL: yes
         read perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
        write perm: system,call,log,verbose,command,agent,user,config,dtmf,reporting,cdr,dialplan,originate,agi,cc,aoc,test,security,message,all
   displayconnects: yes
allowmultiplelogin: yes
         Variables: 

LEAVE A REPLY

Please enter your comment!
Please enter your name here

4,956FansLike
256FollowersFollow
223SubscribersSubscribe
spot_img

Related Stories