This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
voice:pbx:freepbx_yum [2012/08/26 23:13] gcooper |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Build a PBX with YUM Using CentOS, Asterisk and a GUI ====== | ||
- | * CentOS 5 (x64, latest) | ||
- | * Asterisk 10 | ||
- | * Choice of GUIs | ||
- | * FreePBX 2.10 | ||
- | * Asterisk GUI 2.0 | ||
- | |||
- | ===== Documentation ===== | ||
- | |||
- | https:// | ||
- | |||
- | https:// | ||
- | |||
- | ===== Hosted VPS ===== | ||
- | |||
- | http:// | ||
- | |||
- | If you are starting from a preinstalled CentOS server: | ||
- | |||
- | < | ||
- | yum groupremove 'DNS Name Server' | ||
- | yum groupremove ' | ||
- | yum groupremove ' | ||
- | yum groupremove 'Mail Server' | ||
- | yum groupremove ' | ||
- | yum groupremove ' | ||
- | yum groupremove ' | ||
- | yum groupremove 'Web Server' | ||
- | yum groupremove ' | ||
- | |||
- | yum remove yum-updatesd cups cups-lpd redhat-lsb autofs pcsc-lite smartmontools cpuspeed avahi | ||
- | |||
- | ln -sf / | ||
- | </ | ||
- | |||
- | Now skip the next section... | ||
- | |||
- | ===== Minimal CentOS 5 Install ===== | ||
- | |||
- | Do a [[computing: | ||
- | |||
- | I generally disable IPv6 since I've never used it on a PBX. | ||
- | |||
- | After the reboot: | ||
- | |||
- | < | ||
- | yum update -y | ||
- | </ | ||
- | |||
- | then reboot again. | ||
- | |||
- | ===== Security ===== | ||
- | |||
- | http:// | ||
- | |||
- | ==== Firewall ==== | ||
- | |||
- | FIXME | ||
- | |||
- | < | ||
- | vim / | ||
- | |||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 8088 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 443 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 4445 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 5060:5061 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 10000:20000 -j ACCEPT | ||
- | -A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 4569 -j ACCEPT | ||
- | |||
- | service iptables reload | ||
- | |||
- | iptables -nL | ||
- | </ | ||
- | |||
- | ===== RepoForge Repository ===== | ||
- | |||
- | Here we add the RepoForge Repository (x64) needed to install '' | ||
- | |||
- | < | ||
- | wget http:// | ||
- | rpm -ivh rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm | ||
- | rm -f rpmforge-release-0.5.2-2.el5.rf.x86_64.rpm | ||
- | </ | ||
- | |||
- | Now e disable the repo so it doesn' | ||
- | |||
- | < | ||
- | vim / | ||
- | |||
- | enabled=0 | ||
- | </ | ||
- | |||
- | ===== Install Asterisk ===== | ||
- | |||
- | :!: Digium now provides separate repositories for different Asterisk versions (1.4, 1.6, 1.8 and 10). | ||
- | |||
- | :!: Once you install an Asterisk version, its repo will be enabled permanently. | ||
- | |||
- | Check for updates and additional (64-bit) packages [[http:// | ||
- | |||
- | < | ||
- | yum install --enablerepo=rpmforge dnsmasq mpg123 | ||
- | |||
- | rpm -Uvh http:// | ||
- | </ | ||
- | |||
- | |||
- | http:// | ||
- | |||
- | The '' | ||
- | |||
- | < | ||
- | yum install --enablerepo=asterisk-10 asterisk asterisk-configs asterisk-addons | ||
- | </ | ||
- | |||
- | :!: Once installed, you can search for additional asterisk-related packages using a web browser to the repo URLs or at the command line with YUM: | ||
- | |||
- | < | ||
- | yum search asterisk | ||
- | </ | ||
- | |||
- | ===== Install DAHDI ===== | ||
- | |||
- | < | ||
- | yum install dahdi-linux dahdi-tools libpri | ||
- | </ | ||
- | |||
- | ===== Upgrading ===== | ||
- | |||
- | < | ||
- | yum update | ||
- | </ | ||
- | |||
- | ====== PBX Management ====== | ||
- | |||
- | :!: If you're ' | ||
- | |||
- | ===== Asterisk GUI ===== | ||
- | |||
- | * Asterisk GUI is a lightweight tool appropriate for appliances. | ||
- | * For safety and security, make a backup of the (default) Asterisk configuration | ||
- | * The first time you use the GUI, much of the configuration is modified. | ||
- | * If something goes wrong, just copy the original folder back and re-run the GUI login. | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | < | ||
- | yum install asterisk-gui | ||
- | |||
- | reboot | ||
- | </ | ||
- | |||
- | ==== Configuration Backup ==== | ||
- | |||
- | < | ||
- | cp -avr / | ||
- | </ | ||
- | |||
- | ==== Configure ==== | ||
- | |||
- | Be sure the firewall is open on port 8088. | ||
- | |||
- | Replace xxx.xxx.xxx.xxx with the IP of your PBX. | ||
- | |||
- | < | ||
- | http:// | ||
- | </ | ||
- | |||
- | :!: The default username and password are **admin / password**. | ||
- | |||
- | :!: After logging in and changing the password, reboot. | ||
- | |||
- | < | ||
- | reboot | ||
- | </ | ||
- | |||
- | See **[[voice: | ||
- | |||
- | ===== FreePBX ===== | ||
- | |||
- | ==== Install ==== | ||
- | |||
- | < | ||
- | yum install asterisk-addons freepbx* | ||
- | |||
- | reboot | ||
- | </ | ||
- | |||
- | ==== Configure ==== | ||
- | |||
- | Be sure the firewall is open on ports 80 and 443. | ||
- | |||
- | Replace xxx.xxx.xxx.xxx with the IP of your PBX. | ||
- | |||
- | < | ||
- | http:// | ||
- | </ | ||
- | |||
- | :!: The default username and password are **admin / admin**. | ||
- | |||
- | :!: See **[[voice: |