Asterisk 1.2 Demo dialplan

stn-43-sh*CLI> show dialplan
[ Context 'ael-demo' created by 'pbx_ael' ]
'#' =>            1. Playback(demo-thanks)                      [pbx_ael]
                    2. Hangup()                                   [pbx_ael]
'2' =>            1. Background(demo-moreinfo)                  [pbx_ael]
                    2. Goto(s|instructions)                       [pbx_ael]
'3' =>            1. Set(LANGUAGE()=$[ fr ])                    [pbx_ael]
                    2. Goto(s|restart)                            [pbx_ael]
'500' =>          1. Playback(demo-abouttotry)                  [pbx_ael]
                    2. Dial(
IAX2/[email protected] )         [pbx_ael]
                    3. Playback(demo-nogo)                        [pbx_ael]
                    4. Goto(s|instructions)                       [pbx_ael]
'600' =>          1. Playback(demo-echotest)                    [pbx_ael]
                    2. Echo()                                     [pbx_ael]
                    3. Playback(demo-echodone)                    [pbx_ael]
                    4. Goto(s|instructions)                       [pbx_ael]
'i' =>            1. Playback(invalid)                          [pbx_ael]
's' =>            1. Wait(1)                                    [pbx_ael]
                    2. Answer()                                   [pbx_ael]
                    3. Set(TIMEOUT(digit)=$[ 5 ])                 [pbx_ael]
                    4. Set(TIMEOUT(response)=$[ 10 ])             [pbx_ael]
     [restart]      5. Background(demo-congrats)                  [pbx_ael]
     [instructions] 6. Set(x=$[ 0 ])                              [pbx_ael]
                    7. GotoIf($[ ${x} < 3 ]?8:12)                 [pbx_ael]
                    8. Set(x=$[ ${x} + 1 ])                       [pbx_ael]
                    9. Background(demo-instruct)                  [pbx_ael]
                    10. WaitExten()                               [pbx_ael]
                    11. Goto(7)                                   [pbx_ael]
                    12. NoOp(Finish for-s-6)                      [pbx_ael]
't' =>            1. Goto(#|1)                                  [pbx_ael]
'_1234' =>        1. Macro(std-exten-ael|${EXTEN}| "IAX2")      [pbx_ael]

[ Context 'macro-std-exten-ael' created by 'pbx_ael' ]
'a' =>            1. VoiceMailMain(${ext})                      [pbx_ael]
                    2. return()                                   [pbx_ael]
's' =>            1. Set(ext=${ARG1})                           [pbx_ael]
                    2. Set(dev=${ARG2})                           [pbx_ael]
                    3. Dial(${dev}/${ext}|20)                     [pbx_ael]
                    4. Goto(sw-4-${DIALSTATUS}|1)                 [pbx_ael]
                    5. NoOp(Finish switch-4)                      [pbx_ael]
'sw-4-BUSY' =>    1. Voicemail(b${ext})                         [pbx_ael]
                    2. Goto(s|5)                                  [pbx_ael]
'_sw-4-.' =>      1. Voicemail(u${ext})                         [pbx_ael]
stn-43-sh*CLI>
[ Context 'default' created by 'pbx_config' ]
Include =>        'demo'                                        [pbx_config]

[ 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. Macro(stdexten|1234|${CONSOLE})            [pbx_config]
'1235' =>         1. Voicemail(u1234)                           [pbx_config]
'1236' =>         1. Dial(Console/dsp)                          [pbx_config]
                    2. Voicemail(u1234)                           [pbx_config]
'2' =>            1. BackGround(demo-moreinfo)                  [pbx_config]
                    2. Goto(s|instruct)                           [pbx_config]
'3' =>            1. Set(LANGUAGE()=fr)                         [pbx_config]
                    2. Goto(s|restart)                            [pbx_config]
'500' =>          1. Playback(demo-abouttotry)                  [pbx_config]
                    2. Dial(
IAX2/[email protected]/s@default) [pbx_config]
                    3. Playback(demo-nogo)                        [pbx_config]
                    4. Goto(s|6)                                  [pbx_config]
'600' =>          1. Playback(demo-echotest)                    [pbx_config]
                    2. Echo()                                     [pbx_config]
                    3. Playback(demo-echodone)                    [pbx_config]
                    4. Goto(s|6)                                  [pbx_config]
'8500' =>         1. VoicemailMain()                            [pbx_config]
                    2. Goto(s|6)                                  [pbx_config]
'i' =>            1. Playback(invalid)                          [pbx_config]
's' =>            1. Wait(1)                                    [pbx_config]
                    2. Answer()                                   [pbx_config]
                    3. Set(TIMEOUT(digit)=5)                      [pbx_config]
                    4. Set(TIMEOUT(response)=10)                  [pbx_config]
     [restart]      5. BackGround(demo-congrats)                  [pbx_config]
     [instruct]     6. BackGround(demo-instruct)                  [pbx_config]
                    7. WaitExten()                                [pbx_config]
't' =>            1. Goto(#|1)                                  [pbx_config]

[ Context 'macro-stdPrivacyexten' created by 'pbx_config' ]
'a' =>            1. VoicemailMain(${ARG1})                     [pbx_config]
's' =>            1. Dial(${ARG2}|20|p)                         [pbx_config]
                    2. Goto(s-${DIALSTATUS}|1)                    [pbx_config]
's-BUSY' =>       1. Voicemail(b${ARG1})                        [pbx_config]
                    2. Goto(default|s|1)                          [pbx_config]
's-DONTCALL' =>   1. Goto(${ARG3}|s|1)                          [pbx_config]
's-NOANSWER' =>   1. Voicemail(u${ARG1})                        [pbx_config]
                    2. Goto(default|s|1)                          [pbx_config]
's-TORTURE' =>    1. Goto(${ARG4}|s|1)                          [pbx_config]
'_s-.' =>         1. Goto(s-NOANSWER|1)                         [pbx_config]

[ Context 'macro-stdexten' created by 'pbx_config' ]
'a' =>            1. VoicemailMain(${ARG1})                     [pbx_config]
's' =>            1. Dial(${ARG2}|20)                           [pbx_config]
                    2. Goto(s-${DIALSTATUS}|1)                    [pbx_config]
's-BUSY' =>       1. Voicemail(b${ARG1})                        [pbx_config]
                    2. Goto(default|s|1)                          [pbx_config]
's-NOANSWER' =>   1. Voicemail(u${ARG1})                        [pbx_config]
                    2. Goto(default|s|1)                          [pbx_config]
'_s-.' =>         1. Goto(s-NOANSWER|1)                         [pbx_config]

[ Context 'local' created by 'pbx_config' ]
Include =>        'default'                                     [pbx_config]
Include =>        'parkedcalls'                                 [pbx_config]
Include =>        'trunklocal'                                  [pbx_config]
Include =>        'iaxtel700'                                   [pbx_config]
Include =>        'trunktollfree'                               [pbx_config]
Include =>        'iaxprovider'                                 [pbx_config]
Ignore pattern => '9'                                           [pbx_config]

[ Context 'longdistance' created by 'pbx_config' ]
Include =>        'local'                                       [pbx_config]
Include =>        'trunkld'                                     [pbx_config]
Ignore pattern => '9'                                           [pbx_config]

[ Context 'international' created by 'pbx_config' ]
Include =>        'longdistance'                                [pbx_config]
Include =>        'trunkint'                                    [pbx_config]
Ignore pattern => '9'                                           [pbx_config]

[ Context 'trunktollfree' created by 'pbx_config' ]
'_91800NXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]
'_91866NXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]
'_91877NXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]
'_91888NXXXXXX' => 1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]

[ Context 'trunklocal' created by 'pbx_config' ]
'_9NXXXXXX' =>    1. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]

[ Context 'trunkld' created by 'pbx_config' ]
'_91NXXNXXXXXX' => 1. Macro(dundi-e164|${EXTEN:1})               [pbx_config]
                    2. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]

[ Context 'trunkint' created by 'pbx_config' ]
'_9011.' =>       1. Macro(dundi-e164|${EXTEN:4})               [pbx_config]
                    2. Dial(${TRUNK}/${EXTEN:${TRUNKMSD}})        [pbx_config]

[ Context 'iaxprovider' created by 'pbx_config' ]

[ Context 'iaxtel700' created by 'pbx_config' ]
'_91700XXXXXXX' => 1. Dial(
IAX2/${IAXINFO}@iaxtel.com/${EXTEN:1}@iaxtel) [pbx_
config]

[ Context 'macro-dundi-e164' created by 'pbx_config' ]
's' =>            1. Goto(${ARG1}|1)                            [pbx_config]
Include =>        'dundi-e164-lookup'                           [pbx_config]

[ Context 'dundi-e164-lookup' created by 'pbx_config' ]
Include =>        'dundi-e164-local'                            [pbx_config]
Include =>        'dundi-e164-switch'                           [pbx_config]

[ Context 'dundi-e164-switch' created by 'pbx_config' ]
Alt. Switch =>    'DUNDi/e164'                                  [pbx_config]

[ Context 'dundi-e164-local' created by 'pbx_config' ]
Include =>        'dundi-e164-canonical'                        [pbx_config]
Include =>        'dundi-e164-customers'                        [pbx_config]
Include =>        'dundi-e164-via-pstn'                         [pbx_config]

[ Context 'dundi-e164-via-pstn' created by 'pbx_config' ]

[ Context 'dundi-e164-customers' created by 'pbx_config' ]

[ Context 'dundi-e164-canonical' created by 'pbx_config' ]

[ Context 'parkedcalls' created by 'res_features' ]
'700' =>          1. Park()                                     [res_features]

-= 48 extensions (100 priorities) in 23 contexts. =-
stn-43-sh*CLI>

你可能感兴趣的:(demo)