login as: root
root@192.168.1.122's password:
Welcome to RasPBX - Asterisk for Raspberry Pi
RasPBX is based on Debian. The programs included with the Debian GNU/Linux
system are free software; the exact distribution terms for each program are
described in the individual files in /usr/share/doc/*/copyright.
RasPBX comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
List of RasPBX specific commands:
-----------------------------------------------------------------------------
raspbx-upgrade Keep your system up to date with the latest add-ons and
security fixes
configure-timezone Set timezone for both system and PHP
install-fax Install HylaFAX
add-fax-extension Add additional fax extension for use with HylaFAX
install-fail2ban Install Fail2Ban for additional security
install-dongle Install GSM/3G calling capability with chan_dongle
raspbx-backup Backup your complete system to an image file
root@raspbx:~# ps -aux | grep asterisk
asterisk 967 4.2 5.3 121088 23988 ? S 02:28 0:03 /usr/sbin/apache2 -k start
asterisk 968 0.8 5.0 118984 22700 ? S 02:28 0:00 /usr/sbin/apache2 -k start
asterisk 969 9.0 6.4 120424 28712 ? S 02:28 0:06 /usr/sbin/apache2 -k start
asterisk 976 0.5 4.9 118840 21864 ? S 02:28 0:00 /usr/sbin/apache2 -k start
asterisk 979 3.4 6.0 119152 26924 ? S 02:28 0:02 /usr/sbin/apache2 -k start
root 1186 47.3 8.6 69344 38580 ? R 02:28 0:29 php /var/lib/asterisk/bin/fwconsole start
root 1677 1.0 0.4 4276 2020 pts/0 S+ 02:29 0:00 grep asterisk
root@raspbx:~# php /var/lib/asterisk/bin/fwconsole start
Running FreePBX startup...
Taking too long? Customize the chown command, See http://wiki.freepbx.org/display/FOP/FreePBX+Chown+Conf
Setting Permissions...
Collecting Files...Done
39274/39274 [============================] 100%
Finished setting permissions
Starting Asterisk...
[============================] 1 sec
Asterisk Started
#9 решается в большинстве случаев с помощью nat=yes и qualify=xxx в sip.conf для клиента. Некоторые клиенты (X-lite) упрощают подключение с помощью встроенных функций STUN и посылки UDP пакетов keep-alive. Опция qualify же напротив, посылает пакеты keep-alive со стороны Asterisk клиенту за NAT.
nat=yes
qualify=yes
-A INPUT -p udp -m udp —dport 5060 -m string —string «sipcli» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «sip-scan» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «iWar» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «sipvicious» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «sipsak» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «sundayddr» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «VaxSIPUserAgent» —algo bm —to 65535 -j DROP
-A INPUT -p udp -m udp —dport 5060 -m string —string «friendly-scanner» —algo bm —to 65535 -j DROP