Image
The image from the download 2021-09-14-hamserverpiV2.img Download it to your PC.
load and use a current Raspberry Pi Imager to a 32 GB SD card.
Die Einrichtung der WEB-Pages und Site-Maps mit den OnBoard-Tools des Images http://<url>/admin laut getrennter Anleitung bearbeiten.
Extensions
Log in to the Raspberry Pi using an SSH console.
Username: pi
Password: hamsrvpi
SSH Login via root – user
> sudo raspi-config
> root <passwort> setzen
neuerlich mit der SSH-Konsole mit root/<passwort> verbinden
Alternative Use via the pi user
when connected via SSH
> sudo -s
Set root privileges
Customize Raspberry Pi OS BUSTER for Further Use
To ensure that ` apt update ` finds the latest repositories, make the following changes:
sudo nano /etc/apt/sources.list
Replace the "deb…" line with
deb http://legacy.raspbian.org/raspbian/ buster main contrib non-free rpi
Asterisk SIP version FREEPBX start
> systemctl enable freepbx
Enable HAMNET Dial Plan
> cd /etc/asterisk
- Download the necessary files from the HAMNET server
- wget http://44.143.70.8/voipsetup/checkonline.php
- wget http://44.143.70.8/voipsetup/dtmfdecode.php
- wget http://44.143.70.8/voipsetup/extensions.conf
- wget http://44.143.70.8/voipsetup/manager.conf
- wget http://44.143.70.8/voipsetup/sip.conf
- Edit your own IP address in the file checkonline.php
- nano checkonline.php
- Row
- $C_IP="0.0.0.0";
- to exchange
- $C_IP = "44.143.x.y";
- Row
- nano checkonline.php
- Edit manager_custom.conf
- nano manager_custom.conf
- Insert the following lines
- [user]
secret = pass
deny=0.0.0.0/0.0.0.0
permit=127.0.0.1/255.255.255.255
read = system,call,log,verbose,command,agent,user
write = system,call,log,verbose,command,agent,user
- [user]
- Insert the following lines
- nano manager_custom.conf
- Edit extension_custom.conf
- nano extension_custom.conf
- right below [from-internal-custom] insert
- #include hamnet_destination.conf
- right below [from-internal-custom] insert
- nano extension_custom.conf
- Set Access Rights
- chmod 777 checkonline.php
- Auto-Start in the crontab seten
- crontab -e
- Insert rows at the end
- * * * * * /usr/bin/php /etc/asterisk/checkonline.php &> /dev/null
*/5 * * * * /opt/prefetch/prefetch-scripts/info-prefetch.sh &
*/5 * * * * /opt/prefetch/prefetch-scripts/prefetch_runner.sh &
- * * * * * /usr/bin/php /etc/asterisk/checkonline.php &> /dev/null
- Insert rows at the end
- crontab -e
- Reboot the Raspberry Pi
- reboot
