User Tools

Site Tools


asterisk

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
asterisk [2025/07/18 19:19] – [Oracle Cloud Infrastructure PBX Server Setup] nicolasasterisk [2025/07/21 10:56] (current) – [Oracle Cloud Infrastructure PBX Server Setup] nicolas
Line 20: Line 20:
 # Copy down private key, store and set security on it # Copy down private key, store and set security on it
 cd keys cd keys
-sudo chmod 60 ssh-key-2025-07-11.key+sudo chmod 60 ssh-key-2025-07-19.key
  
 # ssh on to cloud instance # ssh on to cloud instance
-sudo ssh -i ./keys/ssh-key-2025-07-11.key ubuntu@152.67.159.88+sudo ssh -i ./keys/ssh-key-2025-07-19.key ubuntu@xx.xx.xx.xx
 sudo apt update sudo apt update
 sudo apt full-upgrade sudo apt full-upgrade
Line 31: Line 31:
 sudo systemctl start cron sudo systemctl start cron
 sudo systemctl enable cron sudo systemctl enable cron
 +sudo apt install ufw 
 +sudo apt install net-tools
 </code> </code>
  
-https://www.atlantic.net/vps-hosting/how-to-install-asterisk-and-freepbx-on-ubuntu/+===UFW install===
  
-after ./install -n +Revised to install UFW, use this instead of directly changing iptables
-messages about SIP missing +
-fwconsole ma install pm2 +
-Rerun ./install -n +
- +
-Update firewall rules 80 Web Dashboard +
- +
-Stateless connection needed for 80? - sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT +
-did not work. +
  
 <code> <code>
-sudo iptables -S+sudo ufw status 
 +sudo ufw allow http 
 +sudo ufw allow ssh 
 +sudo ufw allow 5060:5061/udp 
 +sudo ufw allow 10000:20000/udp 
 +sudo ufw enable
 </code> </code>
  
-<code> +===Asterisk / FreePBX on Ubuntu===
-sudo iptables -I INPUT -p tcp -m tcp --dport 80 -j ACCEPT +
-sudo netfilter-persistent save +
-</code>+
  
-This gets the web server visible+https://www.atlantic.net/vps-hosting/how-to-install-asterisk-and-freepbx-on-ubuntu/
  
-FreePBX Config+===FreePBX Config===
  
 Load User and other modules - Admin, Check Online, Select then process. Load User and other modules - Admin, Check Online, Select then process.
  
-Unlock+if you need to Unlock the admin page
 sudo fwconsole unlock s231lcov0fbdsnhaiidchantu4 (highlighted PHP session text) sudo fwconsole unlock s231lcov0fbdsnhaiidchantu4 (highlighted PHP session text)
  
-Update firewall rules 42002 SIP - UDP and 80 Web Dashboard +User Ext Setup 
-sudo iptables -I INPUT 6 -m state --state NEW -p tcp --dport 80 -j ACCEPT +
-sudo iptables -I INPUT 6 -m state --state NEW -p udp --dport 42002 -j ACCEPT+
  
-Check firewall rules+Had to change SIP port directly in asterisk - FreePBX ad restart did not work 
 +sudo nano /etc/asterisk/sip_general_additional.conf
  
-==UFW install== +Revise  
- +sudo nano /etc/php/*/apache2/php.ini 
-Revised to install UFW, use this instead of directly changing iptables +; Maximum amount of memory a script may consume 
- +; https://php.net/memory-limit 
-<code> +memory_limit = 256M
-sudo apt install ufw +
-sudo ufw status +
-sudo ufw allow 5060:5061/udp +
-sudo ufw allow 10000:20000/udp +
-</code> +
- +
-User Ext Setup +
  
  
 +SIP TCP Port Min: 560 - 580 updated
 +5081
  
 +===Asterisk Security===
  
 +https://computingpost.medium.com/secure-asterisk-and-freepbx-from-voip-fraud-and-brute-force-attacks-118af5b31e41
  
  
 +----
 ====Hams Over IP install==== ====Hams Over IP install====
  
Line 112: Line 104:
 ===Connect Ext 2 to Local Asterisk PBX=== ===Connect Ext 2 to Local Asterisk PBX===
  
-TCP must be enabled. PBX on different IP so can use default port.  +UDP must be enabled. PBX on different IP so can use default port.  
-Ext 2 tab - line enable AND Phone tab - Line key 2 enabled. +Ext 2 tab - Line enable AND Phone tab - Line key 2 enabled.  
 + 
 +===Connect using a different SIP port=== 
 + 
 +In EXT change the SIP port and add the port number to the proxy address 141.147.xx.xx:portnumber
  
 ===Change background image on phone=== ===Change background image on phone===
Line 122: Line 118:
  
 https://wiki.hamshackhotline.com/doku.php?id=tt:tips.and.tricks:spare.line.key.functions https://wiki.hamshackhotline.com/doku.php?id=tt:tips.and.tricks:spare.line.key.functions
 +https://hamsoverip.github.io/wiki/endpoints/hard_phones/cisco504g/#make-a-test-call
  
 ===Reboot=== ===Reboot===
asterisk.1752862794.txt.gz · Last modified: by nicolas