Код: Выделить всё
*CLI> dialplan show from-trunk
[ Context 'from-trunk' created by 'pbx_config' ]
  Include =>        'from-pstn' 
*CLI> dialplan show from-pstn
[ Context 'from-pstn' created by 'pbx_config' ]
  Include =>        'from-pstn-custom'                 
  Include =>        'ext-did'                          
  Include =>        'ext-did-post-custom'              
  Include =>        'from-did-direct'                  
  Include =>        'ext-did-catchall'                 
*CLI> dialplan show ext-did
[ Context 'ext-did' created by 'pbx_config' ]
  'foo' =>          1. Noop(bar)                       
  Include =>        'ext-did-custom'                   
  Include =>        'ext-did-0001'                     
  Include =>        'ext-did-0002'  
[i](дальше страшно!)[/i]...
*CLI>dialplan show ext-did-0001'
[ Context 'ext-did-0001' created by 'pbx_config' ]
  '244047600' (CID match '015758610141') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(disa,1,1)                            [pbx_config]
  '244047600' (CID match '01625168275') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(disa,1,1)                            [pbx_config]
  '244047600' (CID match '03089069899') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(disa,1,1)                            [pbx_config]
  '4930577081708' (CID match '0079039355655') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079139300485') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079231501010') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079231563205') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079231918813') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079831228303') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  '4930577081708' (CID match '0079833023521') =>  1. Set(__DIRECTION=INBOUND)                   [pbx_config]
                    2. Gosub(sub-record-check,s,1(in,${EXTEN},dontcare)) [pbx_config]
                    3. Gosub(app-blacklist-check,s,1())           [pbx_config]
                    4. Set(__FROM_DID=${EXTEN})                   [pbx_config]
                    5. Set(CDR(did)=${FROM_DID})                  [pbx_config]
                    6. ExecIf($[ "${CALLERID(name)}" = "" ] ?Set(CALLERID(name)=${CALLERID(num)})) [pbx_config]
                    7. Set(__MOHCLASS=)                           [pbx_config]
                    8. Set(__REVERSAL_REJECT=FALSE)               [pbx_config]
                    9. GotoIf($["${REVERSAL_REJECT}"!="TRUE"]?post-reverse-charge) [pbx_config]
                    10. GotoIf($["${CHANNEL(reversecharge)}"="1"]?macro-hangupcall) [pbx_config]
     [post-reverse-charge] 11. Noop()                                    [pbx_config]
                    12. Set(__CALLINGNAMEPRES_SV=${CALLERID(name-pres)}) [pbx_config]
                    13. Set(__CALLINGNUMPRES_SV=${CALLERID(num-pres)}) [pbx_config]
                    14. Set(CALLERID(name-pres)=allowed_not_screened) [pbx_config]
                    15. Set(CALLERID(num-pres)=allowed_not_screened) [pbx_config]
     [did-cid-hook] 16. Noop(CallerID Entry Point)                [pbx_config]
     [dest-ext]     17. Goto(dublon-red-button,s,1)               [pbx_config]
  Include =>        'ext-did-0001-custom'                         [pbx_config]
-= 10 extensions (170 priorities) in 1 context. =-
Код: Выделить всё
[from-internal-custom]
exten => 12345678,1,Что_хочу_то_ворочу