exten => _X.,1,Set(GROUP()=provider1)
same => n,GotoIF($[${GROUP_COUNT(provider1)} > 1]?prov2)
same => n,Dial(SIP/provider1/${EXTEN},60)
same => n(prov2),Set(GROUP()=provider2)
same => n,GotoIF($[${GROUP_COUNT(provider2)} > 4]?prov3)
same => n,Dial(SIP/provider2/${EXTEN},60)
same => n(prov3),Set(GROUP()=provider3)
same => n,GotoIF($[${GROUP_COUNT(provider3)} > 10]?stop)
same => n,Dial(SIP/provider3/${EXTEN},60)
same => n(stop),Hangup()
test.ru:80 -> 192.168.1.200:80разные домены...
demo.ru:80 -> 192.168.1.1:80
iptables -t nat -A PREROUTING -d 192.168.1.202 -p tcp -m tcp --dport 3022 -j DNAT --to-destination 192.168.1.200:22
iptables -A FORWARD -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -d 192.168.1.200 -p tcp -m tcp --dport 22 -j ACCEPT
asterisk -rx "module show like cdr_odbc"
ls -1 /usr/lib/asterisk/modules/ | grep cdr_odbc
yum search asterisk | grep -i odbc
apt-cache search asterisk | grep -i odbc
# crontab -e -u chemax
$ crontab -e
* * * * * /home/chemax/getdata/getdata.sh
SET GLOBAL general_log_file='general.log';
SET GLOBAL general_log=ON;
SET GLOBAL log_output='FILE';
должно и под форточкой работать $ telnet 192.168.1.100 5038
Action: login
Username: extracdr
Secret: extracdr
Action: Command
Command: core show channels
Ctrl+Alt+F1
если выдало приглашение на ввод логина, все не так плохо