Asterisk-core: Difference between revisions

From 탱이의 잡동사니
Jump to navigation Jump to search
No edit summary
Line 125: Line 125:


== show channels ==
== show channels ==
현재 설정된 채널들의 목록을 보여준다.
<pre>
pchero*CLI> help core show channels
Usage: core show channels [concise|verbose|count]
      Lists currently defined channels and some information about them. If
      'concise' is specified, the format is abridged and in a more easily
      machine parsable format. If 'verbose' is specified, the output includes
      more and longer fields. If 'count' is specified only the channel and call
      count is output.
The 'concise' option is deprecated and will be removed from future versions
of Asterisk.
</pre>


=== Example ===
=== Example normal ===
<pre>
<pre>
pluto*CLI> core show channels
pluto*CLI> core show channels
Line 141: Line 153:
4 active calls
4 active calls
9224 calls processed
9224 calls processed
</pre>
=== Example verbose ===
상세 정보를 칼럼 내용과 같이 나타낸다.
<pre>
pchero*CLI> core show channels verbose
Channel              Context              Extension        Prio State  Application  Data                      CallerID        Duration Accountcode PeerAccount BridgedTo         
Local/200-pcherosoft DialLine            200-pcherosoftph  88 Up      Dial        SIP/200-pcherosoftphone20 600            00:03:08                        SIP/200-pcherosoftph
Local/200-pcherosoft DialLine                                1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@DialAccoun
Local/200@DuetNumber DuetNumber                              1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@CallFromIn
Local/200@DuetNumber DuetNumber          s                  12 Up      Dial        Local/200@DialAccount,360 600            00:03:08                        Local/200@DialAccoun
SIP/600-pchero-softp CallFromSipDevice    s                  43 Up      Dial        Local/200@CallFromInterna 600            00:03:08                        Local/200@CallFromIn
Local/200@CallFromIn pcheroDialDirect    s                  7 Up      Dial        Local/200@DuetNumber,30,  600            00:03:08                        Local/200@DuetNumber
Local/200@CallFromIn CallFromInternal                        1 Up      AppDial      (Outgoing Line)          200            00:03:08                        SIP/600-pchero-softp
Local/200@DialAccoun DialAccount          s                  12 Up      Dial        Local/200-fake00085d13c6a 600            00:03:08                        Local/200-pcherosoft
Local/200@DialAccoun DialAccount                              1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@DuetNumber
SIP/200-pcherosoftph app_dial_gosub_virtu s                  2 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200-pcherosoft
10 active channels
5 active calls
1242 calls processed
</pre>
=== Example concise ===
상세 정보를 구분자(!)와 함께 나타낸다.
<pre>
pchero*CLI> core show channels concise
Local/200@DialAccount-e8d1;1!DialAccount!s!1!Ringing!AppQueue!(Outgoing Line)!200!!!3!9!(None)!1474977577.5519
Local/200@DialAccount-e8d1;2!DialAccount!s!12!Ring!Dial!Local/45200@DialLine/n,3600!503!!!3!9!(None)!1474977577.5520
Local/0002@CallFromInternal-9407;2!queue_metallica!s!19!Up!Queue!Metallica,ti ,,,3600!503!!!3!120!(None)!1474977466.5503
Local/0002@CallFromInternal-9407;1!CallFromInternal!!1!Up!AppDial!(Outgoing Line)!s!!!3!120!SIP/503-pcherosoftphone503-1-0000056c!1474977466.5502
SIP/csbc04-00000570!CallFromCSBC!45200!1!Ringing!AppDial!(Outgoing Line)!45200!!!3!9!(None)!1474977577.5523
SIP/503-pcherosoftphone503-1-0000056c!CallFromSipDevice!s!43!Up!Dial!Local/0002@CallFromInternal/n,3600,!503!!!3!120!Local/0002@CallFromInternal-9407;1!1474977466.5501
Local/45200@DialLine-9c29;2!DialLine!45200!74!Ring!Dial!SIP/+45200@csbc04,180,tciU(SetCalledIDNum^200^45200^Providertdcdanmark^200^200)!503!!!3!9!(None)!1474977577.5522
Local/45200@DialLine-9c29;1!DialLine!s!1!Ringing!AppDial!(Outgoing Line)!200!!!3!9!(None)!1474977577.5521
</pre>
=== Example count ===
count 와 관련된 내용만을 표시한다.
<pre>
pchero*CLI> core show channels count
8 active channels
4 active calls
2174 calls processed
</pre>
</pre>


Line 201: Line 256:
</pre>
</pre>


== show channels ==
현재 설정된 채널들의 목록을 보여준다.
<pre>
pchero*CLI> help core show channels
Usage: core show channels [concise|verbose|count]
      Lists currently defined channels and some information about them. If
      'concise' is specified, the format is abridged and in a more easily
      machine parsable format. If 'verbose' is specified, the output includes
      more and longer fields. If 'count' is specified only the channel and call
      count is output.
The 'concise' option is deprecated and will be removed from future versions
of Asterisk.
</pre>
=== Example verbose ===
상세 정보를 칼럼 내용과 같이 나타낸다.
<pre>
pchero*CLI> core show channels verbose
Channel              Context              Extension        Prio State  Application  Data                      CallerID        Duration Accountcode PeerAccount BridgedTo         
Local/200-pcherosoft DialLine            200-pcherosoftph  88 Up      Dial        SIP/200-pcherosoftphone20 600            00:03:08                        SIP/200-pcherosoftph
Local/200-pcherosoft DialLine                                1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@DialAccoun
Local/200@DuetNumber DuetNumber                              1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@CallFromIn
Local/200@DuetNumber DuetNumber          s                  12 Up      Dial        Local/200@DialAccount,360 600            00:03:08                        Local/200@DialAccoun
SIP/600-pchero-softp CallFromSipDevice    s                  43 Up      Dial        Local/200@CallFromInterna 600            00:03:08                        Local/200@CallFromIn
Local/200@CallFromIn pcheroDialDirect    s                  7 Up      Dial        Local/200@DuetNumber,30,  600            00:03:08                        Local/200@DuetNumber
Local/200@CallFromIn CallFromInternal                        1 Up      AppDial      (Outgoing Line)          200            00:03:08                        SIP/600-pchero-softp
Local/200@DialAccoun DialAccount          s                  12 Up      Dial        Local/200-fake00085d13c6a 600            00:03:08                        Local/200-pcherosoft
Local/200@DialAccoun DialAccount                              1 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200@DuetNumber
SIP/200-pcherosoftph app_dial_gosub_virtu s                  2 Up      AppDial      (Outgoing Line)          200            00:03:08                        Local/200-pcherosoft
10 active channels
5 active calls
1242 calls processed
</pre>
=== Example concise ===
상세 정보를 구분자(!)와 함께 나타낸다.
<pre>
pchero*CLI> core show channels concise
Local/200@DialAccount-e8d1;1!DialAccount!s!1!Ringing!AppQueue!(Outgoing Line)!200!!!3!9!(None)!1474977577.5519
Local/200@DialAccount-e8d1;2!DialAccount!s!12!Ring!Dial!Local/45200@DialLine/n,3600!503!!!3!9!(None)!1474977577.5520
Local/0002@CallFromInternal-9407;2!queue_metallica!s!19!Up!Queue!Metallica,ti ,,,3600!503!!!3!120!(None)!1474977466.5503
Local/0002@CallFromInternal-9407;1!CallFromInternal!!1!Up!AppDial!(Outgoing Line)!s!!!3!120!SIP/503-pcherosoftphone503-1-0000056c!1474977466.5502
SIP/csbc04-00000570!CallFromCSBC!45200!1!Ringing!AppDial!(Outgoing Line)!45200!!!3!9!(None)!1474977577.5523
SIP/503-pcherosoftphone503-1-0000056c!CallFromSipDevice!s!43!Up!Dial!Local/0002@CallFromInternal/n,3600,!503!!!3!120!Local/0002@CallFromInternal-9407;1!1474977466.5501
Local/45200@DialLine-9c29;2!DialLine!45200!74!Ring!Dial!SIP/+45200@csbc04,180,tciU(SetCalledIDNum^200^45200^Providertdcdanmark^200^200)!503!!!3!9!(None)!1474977577.5522
Local/45200@DialLine-9c29;1!DialLine!s!1!Ringing!AppDial!(Outgoing Line)!200!!!3!9!(None)!1474977577.5521
</pre>
=== Example count ===
count 와 관련된 내용만을 표시한다.
<pre>
pchero*CLI> core show channels count
8 active channels
4 active calls
2174 calls processed
</pre>


== References ==
== References ==

Revision as of 08:19, 14 October 2016

Overview

Asterisk core 명령어 내용 정리

Basic

core 모듈은 Asterisk 의 가장 기본적인 모듈이다. Asterisk 의 전체적인 동작 방식과 설정들을 담당한다.

help

pluto*CLI> help core
core abort shutdown            -- Cancel a running shutdown
core clear profile             -- Clear profiling info
core ping taskprocessor        -- Ping a named task processor
core reload                    -- Global reload
core restart gracefully        -- Restart Asterisk gracefully
core restart now               -- Restart Asterisk immediately
core restart when convenient   -- Restart Asterisk at empty call volume
core set debug channel         -- Enable/disable debugging on a channel
core set debug                 -- Set level of debug chattiness
core set verbose               -- Set level of verbose chattiness
core show applications [like|describing] -- Shows registered dialplan applications
core show application          -- Describe a specific dialplan application
core show calls [uptime]       -- Display information on calls
core show channels [concise|verbose|count] -- Display information on channels
core show channel              -- Display information on a specific channel
core show channeltypes         -- List available channel types
core show channeltype          -- Give more details on that channel type
core show codecs [audio|video|image|text] -- Displays a list of registered codecs
core show codec                -- Shows a specific codec
core show config mappings      -- Display config mappings (file names to config engines)
core show file formats         -- Displays file formats
core show file version [like]  -- List versions of files used to build Asterisk
core show functions [like]     -- Shows registered dialplan functions
core show function             -- Describe a specific dialplan function
core show hanguphandlers all   -- Show hangup handlers of all channels
core show hanguphandlers       -- Show hangup handlers of a specified channel
core show help                 -- Display help list, or specific help on a command
core show hints                -- Show dialplan hints
core show hint                 -- Show dialplan hint
core show image formats        -- Displays image formats
core show license              -- Show the license(s) for this copy of Asterisk
core show profile              -- Display profiling info
core show settings             -- Show some core settings
core show sounds               -- Shows available sounds
core show sound                -- Shows details about a specific sound
core show switches             -- Show alternative switches
core show sysinfo              -- Show System Information
core show taskprocessors       -- List instantiated task processors and statistics
core show threads              -- Show running threads
core show translation          -- Display translation matrix
core show uptime [seconds]     -- Show uptime information
core show version              -- Display version info
core show warranty             -- Show the warranty (if any) for this copy of Asterisk
core stop gracefully           -- Gracefully shut down Asterisk
core stop now                  -- Shut down Asterisk immediately
core stop when convenient      -- Shut down Asterisk at empty call volume
core waitfullybooted           -- Wait for Asterisk to be fully booted

show applications

입력과 매칭되는 내용을 가진 Asterisk application 를 나타낸다.

pluto*CLI> help core show applications
Usage: core show applications [{like|describing} <text>]
       List applications which are currently available.
       If 'like', <text> will be a substring of the app name
       If 'describing', <text> will be a substring of the description

Example

pluto*CLI> core show applications like park
    -= Matching Asterisk Applications =-
                  Park: Park yourself. 
       ParkAndAnnounce: Park and Announce. 
            ParkedCall: Retrieve a parked call. 
    -= 3 Applications Matching =-

show application

입력한 application 의 상세 설명을 보여준다.

pluto*CLI> help core show application
Usage: core show application <application> [<application> [<application> [...]]]
       Describes a particular application.

Example

pluto*CLI> core show application park

  -= Info about application 'Park' =- 

[Synopsis]
Park yourself. 

[Description]
Used to park yourself (typically in combination with an attended transfer to
know the parking space).
...

show calls

현재 진행중인 콜의 숫자와 현재까지 진행된 콜의 숫자를 보여준다.

pluto*CLI> help core show calls
Usage: core show calls [uptime] [seconds]
       Lists number of currently active calls and total number of calls
       processed through PBX since last restart. If 'uptime' is specified
       the system uptime is also displayed. If 'seconds' is specified in
       addition to 'uptime', the system uptime is displayed in seconds.

Example

pluto*CLI> core show calls uptime seconds
0 active calls
0 calls processed
System uptime: 33863

pluto*CLI> core show calls uptime 
0 active calls
0 calls processed
System uptime: 9 hours, 24 minutes, 27 seconds

show channels

현재 설정된 채널들의 목록을 보여준다.

pchero*CLI> help core show channels
Usage: core show channels [concise|verbose|count]
       Lists currently defined channels and some information about them. If
       'concise' is specified, the format is abridged and in a more easily
       machine parsable format. If 'verbose' is specified, the output includes
       more and longer fields. If 'count' is specified only the channel and call
       count is output.
	The 'concise' option is deprecated and will be removed from future versions
	of Asterisk.

Example normal

pluto*CLI> core show channels
Channel              Location             State   Application(Data)             
Local/200@DialA      s@DialAccount:1      Ringing AppQueue((Outgoing Line))     
Local/200@DialA      s@DialAccount:12     Ring    Dial(Local/45200@DialLine
Local/45200@Dia      s@DialLine:1         Ringing AppDial((Outgoing Line))      
Local/45200@Dia      45200@DialLine:      Ring    Dial(SIP/+45200@csbc02,18
Local/0002@CallFromI (None)               Up      AppDial((Outgoing Line))      
Local/0002@CallFromI s@queue_metallica:22 Up      Queue(Metallica,cti ,,,3600)  
SIP/403-test_403_sof s@CallFromSipDevice: Up      Dial(Local/0002@CallFromIntern
SIP/csbc02-00001399  45200@CallFromC      Ringing AppDial((Outgoing Line))      
8 active channels
4 active calls
9224 calls processed

Example verbose

상세 정보를 칼럼 내용과 같이 나타낸다.

pchero*CLI> core show channels verbose
Channel              Context              Extension        Prio State   Application  Data                      CallerID        Duration Accountcode PeerAccount BridgedTo           
Local/200-pcherosoft DialLine             200-pcherosoftph   88 Up      Dial         SIP/200-pcherosoftphone20 600             00:03:08                         SIP/200-pcherosoftph
Local/200-pcherosoft DialLine                                 1 Up      AppDial      (Outgoing Line)           200             00:03:08                         Local/200@DialAccoun
Local/200@DuetNumber DuetNumber                               1 Up      AppDial      (Outgoing Line)           200             00:03:08                         Local/200@CallFromIn
Local/200@DuetNumber DuetNumber           s                  12 Up      Dial         Local/200@DialAccount,360 600             00:03:08                         Local/200@DialAccoun
SIP/600-pchero-softp CallFromSipDevice    s                  43 Up      Dial         Local/200@CallFromInterna 600             00:03:08                         Local/200@CallFromIn
Local/200@CallFromIn pcheroDialDirect     s                   7 Up      Dial         Local/200@DuetNumber,30,  600             00:03:08                         Local/200@DuetNumber
Local/200@CallFromIn CallFromInternal                         1 Up      AppDial      (Outgoing Line)           200             00:03:08                         SIP/600-pchero-softp
Local/200@DialAccoun DialAccount          s                  12 Up      Dial         Local/200-fake00085d13c6a 600             00:03:08                         Local/200-pcherosoft
Local/200@DialAccoun DialAccount                              1 Up      AppDial      (Outgoing Line)           200             00:03:08                         Local/200@DuetNumber
SIP/200-pcherosoftph app_dial_gosub_virtu s                   2 Up      AppDial      (Outgoing Line)           200             00:03:08                         Local/200-pcherosoft
10 active channels
5 active calls
1242 calls processed

Example concise

상세 정보를 구분자(!)와 함께 나타낸다.

pchero*CLI> core show channels concise
Local/200@DialAccount-e8d1;1!DialAccount!s!1!Ringing!AppQueue!(Outgoing Line)!200!!!3!9!(None)!1474977577.5519
Local/200@DialAccount-e8d1;2!DialAccount!s!12!Ring!Dial!Local/45200@DialLine/n,3600!503!!!3!9!(None)!1474977577.5520
Local/0002@CallFromInternal-9407;2!queue_metallica!s!19!Up!Queue!Metallica,ti ,,,3600!503!!!3!120!(None)!1474977466.5503
Local/0002@CallFromInternal-9407;1!CallFromInternal!!1!Up!AppDial!(Outgoing Line)!s!!!3!120!SIP/503-pcherosoftphone503-1-0000056c!1474977466.5502
SIP/csbc04-00000570!CallFromCSBC!45200!1!Ringing!AppDial!(Outgoing Line)!45200!!!3!9!(None)!1474977577.5523
SIP/503-pcherosoftphone503-1-0000056c!CallFromSipDevice!s!43!Up!Dial!Local/0002@CallFromInternal/n,3600,!503!!!3!120!Local/0002@CallFromInternal-9407;1!1474977466.5501
Local/45200@DialLine-9c29;2!DialLine!45200!74!Ring!Dial!SIP/+45200@csbc04,180,tciU(SetCalledIDNum^200^45200^Providertdcdanmark^200^200)!503!!!3!9!(None)!1474977577.5522
Local/45200@DialLine-9c29;1!DialLine!s!1!Ringing!AppDial!(Outgoing Line)!200!!!3!9!(None)!1474977577.5521

Example count

count 와 관련된 내용만을 표시한다.

pchero*CLI> core show channels count
8 active channels
4 active calls
2174 calls processed

show settings

Asterisk 설정 정보를 표시한다.

pluto*CLI> help core show settings
Usage: core show settings
       Show core misc settings

Example

PBX Core settings
-----------------
  Version:                     GIT-13-14b4111
  Build Options:               AST_DEVMODE, LOADABLE_MODULES, BUILD_NATIVE, OPTIONAL_API
  Maximum calls:               Not set
  Maximum open file handles:   Not set
  Root console verbosity:      0
  Current console verbosity:   0
  Debug level:                 0
  Maximum load average:        0.000000
  Minimum free memory:         0 MB
  Startup time:                00:39:41
  Last reload time:            06:29:11
  System:                      Linux/3.16.0-4-amd64 built by pchero on x86_64 2015-12-08 11:42:30 UTC
  System name:                 
  Entity ID:                   08:00:27:1f:0a:4b
  Default language:            en
  Language prefix:             Enabled
  User name and group:         /
  Executable includes:         Disabled
  Transcode via SLIN:          Enabled
  Transmit silence during rec: Disabled
  Generic PLC:                 Enabled
  Min DTMF duration::          80

* Subsystems
  -------------
  Manager (AMI):               Enabled
  Web Manager (AMI/HTTP):      Disabled
  Call data records:           Enabled
  Realtime Architecture (ARA): Disabled

* Directories
  -------------
  Configuration file:          
  Configuration directory:     /etc/asterisk
  Module directory:            /usr/lib/asterisk/modules
  Spool directory:             /var/spool/asterisk
  Log directory:               /var/log/asterisk
  Run/Sockets directory:       /var/run/asterisk
  PID file:                    /var/run/asterisk/asterisk.pid
  VarLib directory:            /var/lib/asterisk
  Data directory:              /var/lib/asterisk
  ASTDB:                       /var/lib/asterisk/astdb
  IAX2 Keys directory:         /var/lib/asterisk/keys
  AGI Scripts directory:       /var/lib/asterisk/agi-bin


References

<references />