Скрипты по ссылке:
https://www.dropbox.com/sh/mqu2gplpkus8 ... yFnwa?dl=0
Из конфига Cisco:
aaa authentication login h323 group radius
aaa authorization exec h323 group radius
aaa accounting network default start-stop group radius
aaa accounting connection h323 start-stop group radius
voice class aaa 3
authentication method h323
authorization method h323
accounting method h323
gw-accounting aaa
acct-template callhistory-detail
suppress pots
radius-server configure-nas
radius-server host х.х.х.х auth-port хххх acct-port хххх key ...
radius-server authorization default Framed-Protocol ppp
radius-server vsa send accounting
radius-server vsa send authentication
call application voice npw_unlimit tftp://х.х.х.х/npw_unlimit.tcl
!
call application voice npw_limit tftp://х.х.х.х/npw_limit.tcl
call application cache reload time 0
Скрипты вешаются на диал-пиры так:
dial-peer voice 2 pots
voice cut-through alert
description ------
preference 1
application npw_limit
incoming called-number [2,4]....$
destination-pattern [2-4]....$
direct-inward-dial
port 1/0:D
forward-digits all
dial-peer voice 4 pots
voice cut-through alert
description ------
huntstop
preference 9
incoming called-number 36...$
destination-pattern 36...$
voice-class aaa 2
direct-inward-dial
port 3/1:D
forward-digits all
dial-peer voice 22 pots
voice cut-through alert
description
huntstop
preference 4
application npw_unlimit
incoming called-number 7.T
destination-pattern 7..........$
no digit-strip
direct-inward-dial
port 1/0:D
forward-digits all