Asterisk-dialplan

From 탱이의 잡동사니
Revision as of 08:35, 12 October 2016 by Pchero (talk | contribs) (→‎show)
Jump to navigation Jump to search

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