Asterisk-dialplan: Difference between revisions
Jump to navigation
Jump to search
(Created page with "== Overview == Asterisk dialplan 명령어 정리 == help == <pre> pluto*CLI> help dialplan dialplan add extension -- Add new extension into context dialplan add igno...") |
No edit summary |
||
(3 intermediate revisions by the same user not shown) | |||
Line 22: | Line 22: | ||
dialplan show chanvar -- Show channel variables | dialplan show chanvar -- Show channel variables | ||
dialplan show globals -- Show global dialplan variables | dialplan show globals -- Show global dialplan variables | ||
</pre> | |||
== show == | |||
설정된 dialplan 의 내용을 보여준다. | |||
<pre> | |||
pluto*CLI> help dialplan show | |||
Usage: dialplan show [[exten@]context] | |||
Show dialplan | |||
</pre> | |||
Example | |||
<pre> | |||
pluto*CLI> dialplan show public | |||
[ Context 'public' created by 'pbx_config' ] | |||
Include => 'demo' [pbx_config] | |||
pluto*CLI> dialplan show demo | |||
[ Context 'demo' created by 'pbx_config' ] | |||
'#' => 1. Playback(demo-thanks) [pbx_config] | |||
2. Hangup() [pbx_config] | |||
'1000' => 1. Goto(default,s,1) [pbx_config] | |||
'1234' => 1. Playback(transfer,skip) [pbx_config] | |||
2. Gosub(${EXTEN},stdexten(${GLOBAL(CONSOLE)})) [pbx_config] | |||
3. Goto(default,s,1) [pbx_config] | |||
... | |||
-= 16 extensions (36 priorities) in 1 context. =- | |||
</pre> | |||
== show chanvar == | |||
<pre> | |||
pluto*CLI> help dialplan show chanvar | |||
Usage: dialplan show chanvar <channel> | |||
List current channel variables and their values | |||
</pre> | |||
== show global == | |||
현재 설정되어 있는 global dialplan 변수들을 보여준다. | |||
<pre> | |||
Usage: dialplan show globals | |||
List current global dialplan variables and their values | |||
</pre> | |||
Example | |||
<pre> | |||
pluto*CLI> dialplan show globals | |||
TRUNKMSD=1 | |||
TRUNK=DAHDI/G2 | |||
IAXINFO=guest | |||
CONSOLE=Console/dsp | |||
OUTBOUND-TRUNKMSD=1 | |||
OUTBOUND-TRUNK="Zap/g2" | |||
IAXINFO-AEL=guest | |||
CONSOLE-AEL="Console/dsp" | |||
-- 8 variable(s) | |||
</pre> | </pre> | ||
[[category:asterisk]] | [[category:asterisk]] |
Latest revision as of 09:16, 12 October 2016
Overview
Asterisk dialplan 명령어 정리
help
pluto*CLI> help dialplan dialplan add extension -- Add new extension into context dialplan add ignorepat -- Add new ignore pattern dialplan add include -- Include context in other context dialplan debug -- Show fast extension pattern matching data structures dialplan reload -- Reload extensions and *only* extensions dialplan remove context -- Remove a specified context dialplan remove extension -- Remove a specified extension dialplan remove ignorepat -- Remove ignore pattern from context dialplan remove include -- Remove a specified include from context dialplan save -- Save current dialplan into a file dialplan set chanvar -- Set a channel variable dialplan set extenpatternmatchnew false -- Use the Old extension pattern matching algorithm. dialplan set extenpatternmatchnew true -- Use the New extension pattern matching algorithm. dialplan set global -- Set global dialplan variable dialplan show -- Show dialplan dialplan show chanvar -- Show channel variables dialplan show globals -- Show global dialplan variables
show
설정된 dialplan 의 내용을 보여준다.
pluto*CLI> help dialplan show Usage: dialplan show [[exten@]context] Show dialplan
Example
pluto*CLI> dialplan show public [ Context 'public' created by 'pbx_config' ] Include => 'demo' [pbx_config] pluto*CLI> dialplan show demo [ Context 'demo' created by 'pbx_config' ] '#' => 1. Playback(demo-thanks) [pbx_config] 2. Hangup() [pbx_config] '1000' => 1. Goto(default,s,1) [pbx_config] '1234' => 1. Playback(transfer,skip) [pbx_config] 2. Gosub(${EXTEN},stdexten(${GLOBAL(CONSOLE)})) [pbx_config] 3. Goto(default,s,1) [pbx_config] ... -= 16 extensions (36 priorities) in 1 context. =-
show chanvar
pluto*CLI> help dialplan show chanvar Usage: dialplan show chanvar <channel> List current channel variables and their values
show global
현재 설정되어 있는 global dialplan 변수들을 보여준다.
Usage: dialplan show globals List current global dialplan variables and their values
Example
pluto*CLI> dialplan show globals TRUNKMSD=1 TRUNK=DAHDI/G2 IAXINFO=guest CONSOLE=Console/dsp OUTBOUND-TRUNKMSD=1 OUTBOUND-TRUNK="Zap/g2" IAXINFO-AEL=guest CONSOLE-AEL="Console/dsp" -- 8 variable(s)