這篇雖然寫在 Incredible PBX/PIAF 文章下,不過也適用其他發行版,只要組成元件也是 Asterisk 12 + FreePBX 12 的安裝都能適用。
所謂自動化指令集,這是由 PIAF 作者所釋出的幾個 scripts,這些 scripts 可用在 PBX 的系統管理,比如大量佈署分機、自動化管理等等。
Add SIP Extension with NO Voicemail
Syntax: add-extension-no-vm ext-num ext-pw
Add SIP Extension with Voicemail
Syntax: add-extension-vm ext-num ext-pw vm-pw
Call Forwarding
Forward Calls Syntax: call-forward ext-num fwd-num
Cancel Forwarding Syntax: call-forward ext-num cancel/disable/delete
Create Sample Trunks
Create Sample Trunks Syntax: create-sample-trunks now
Create Vestalink SIP Trunk
Create Syntax: create-vestalink-trunk enabled/disabled acct-number acct-password acct-did
List Devices & Extensions
Syntax: list-devices
List Trunks
Syntax: list-trunks
List Inbound Routes
Syntax: list-inbound-routes
List Outbound Routes
Syntax: list-outbound-routes
List Users
Syntax: list-users
List Custom Destinations
Syntax: list-custom-destinations
List Misc Destinations
Syntax: list-misc-destinations
List Ring Groups
Syntax: list-ring-groups
List Call Forwarding
Syntax: list-call-forwarding
List IVRs
Syntax: list-ivrs
Show_active_call.sh:
Asterisk 1.8)
#!/bin/bash - echo "A Party B Party" asterisk -rx "core show channels concise"|awk -F ! '$6 == "Dial" { print $8"\t"$7 }'|sed -e 's/\t.*\//\t/g' -e 's/,.*$//g'
Asterisk 11.x)
文件 | 大小 | 日期 | 附件上傳者 | |||
---|---|---|---|---|---|---|
![]() | add-extension-no-vm.tar.gz Add Extension without VM | 1304 位元 | 15:54, 13 Feb 2015 | alang | 動作 | |
![]() | add-extension-vm.tar.gz Add Extension with VM | 1511 位元 | 15:54, 13 Feb 2015 | alang | 動作 | |
![]() | call-forward.tar.gz Call Forward | 484 位元 | 15:54, 13 Feb 2015 | alang | 動作 | |
![]() | create-sample-trunks.tar.gz Create Sample Trunks | 2.48 KB | 15:55, 13 Feb 2015 | alang | 動作 | |
![]() | create-vestalink-trunk.tar.gz Creat vestalink Trunk | 950 位元 | 15:55, 13 Feb 2015 | alang | 動作 | |
![]() | list-call-forwarding.jpg 無描述 | 8.62 KB | 15:43, 13 Feb 2015 | alang | 動作 | |
![]() | list-custom-destination.jpg 無描述 | 18.19 KB | 15:43, 13 Feb 2015 | alang | 動作 | |
![]() | list-custom-destinations.tar.gz List Custom Destinations | 389 位元 | 15:55, 13 Feb 2015 | alang | 動作 | |
![]() | list-devices.jpg 無描述 | 26.73 KB | 15:43, 13 Feb 2015 | alang | 動作 | |
![]() | list-devices.tar.gz List Devices | 365 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-inbound-routes.tar.gz List Inbound Routes | 392 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-ivrs.jpg 無描述 | 68.3 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-ivrs.tar.gz List IVRs | 419 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-misc-destination.jpg 無描述 | 29.57 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-misc-destinations.tar.gz List Misc Destinations | 376 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-outbound-routes.tar.gz List Outbound Routes | 512 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-outboundroutes.jpg 無描述 | 26.01 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-ring-groups.jpg 無描述 | 19.93 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-trunks.jpg 無描述 | 48.99 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-trunks.tar.gz List Trunks | 387 位元 | 15:57, 13 Feb 2015 | alang | 動作 | |
![]() | list-users.jpg 無描述 | 15.37 KB | 15:44, 13 Feb 2015 | alang | 動作 | |
![]() | list-users.tar.gz List Users | 381 位元 | 15:58, 13 Feb 2015 | alang | 動作 | |
![]() | lits-inboundroutes.jpg 無描述 | 13.86 KB | 15:44, 13 Feb 2015 | alang | 動作 |