I know Asterisk 11 is near its EOL (or maybe passed it by few weeks!), but it's still stable and usable, specially for home server with 5 to 6 expansions like in my case!
I chose version 11 in particular because it's that last version to support Asterisk GUI. I know the gui has been abandoned by Digium, but again it's very stable and usable for small installations like mine.
Here is a tutorial on how to install Asterisk 11 and its GUI on the latest clearOS 7.3.
First, yum update then reboot the server.
Install dependencies:
Download asterisk code and compile:
In Asterisk Module and Build Option Selection, disable: Channel Drivers -> [ ] chan_mgcp for better performance especially in loaded server.
Start asterisk 11 and make sure it's lisning to port 5060 (asterisk 1.8 did not!):
install Asterisk GUI:
Edit /etc/asterisk/http.conf and make the following modifications:
Edit /etc/asterisk/manager.conf and make the following modifications:
Edit /etc/asterisk/asterisk.conf and make the following modifications:
Compile the GUI and load it:
Now, you can visit the GUI and start configuraing your new PBX:
Goto: http://192.168.0.1:8088/asterisk/static/config/index.html then:
1. Add VOIP SIP Truck: spa, 192.168.1.12 (SPA3102 IP in my case)
2. Add Outgoing Calling Rule: viaSPA, _[098]., Use Trunk: spa, Strip: 0
3. Add new Dial Plan: choose all options
4. Add users
5. Add Incoming Calling Rule: _xxxxx (your phone number as entered in SPA page), any Destination
Finally, allow incoming SIP in clearOS firewall.
I chose version 11 in particular because it's that last version to support Asterisk GUI. I know the gui has been abandoned by Digium, but again it's very stable and usable for small installations like mine.
Here is a tutorial on how to install Asterisk 11 and its GUI on the latest clearOS 7.3.
First, yum update then reboot the server.
Install dependencies:
yum --enablerepo=clearos-centos groupinstall 'Development Tools'
yum install ncurses-devel libxml2-devel sqlite-devel
Download asterisk code and compile:
cd /usr/src
adduser asterisk -m -c "Asterisk User"
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-11-current.tar.gz
tar zxvf asterisk-11-current.tar.gz
cd asterisk-11.25.2/
contrib/scripts/get_mp3_source.sh
./configure --libdir=/usr/lib64 && make menuselect && make && make install && make samples && make config
In Asterisk Module and Build Option Selection, disable: Channel Drivers -> [ ] chan_mgcp for better performance especially in loaded server.
Start asterisk 11 and make sure it's lisning to port 5060 (asterisk 1.8 did not!):
service asterisk start
netstat -plntu | grep asterisk #see port 5060
install Asterisk GUI:
cd /usr/src
svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
cd asterisk-gui
./configure
make
make install
Edit /etc/asterisk/http.conf and make the following modifications:
[general]
enabled=yes
bindaddr=0.0.0.0
bindport=8088
prefix=asterisk
enablestatic=yes
redirect=/ /asterisk/static/config/index.html
Edit /etc/asterisk/manager.conf and make the following modifications:
[general]
enabled=yes
webenabled=yes
port=5038
bindaddr=0.0.0.0
[admin] ;<- GUI username instead of [mark]
secret=admin
read=system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan
write=system,call,agent,user,config,command,reporting,originate
Edit /etc/asterisk/asterisk.conf and make the following modifications:
[options]
stdexten = macro ; <- add this line
Compile the GUI and load it:
make checkconfig #make sure no error
asterisk -rvvvvvvvvv
reload
Now, you can visit the GUI and start configuraing your new PBX:
Goto: http://192.168.0.1:8088/asterisk/static/config/index.html then:
1. Add VOIP SIP Truck: spa, 192.168.1.12 (SPA3102 IP in my case)
2. Add Outgoing Calling Rule: viaSPA, _[098]., Use Trunk: spa, Strip: 0
3. Add new Dial Plan: choose all options
4. Add users
5. Add Incoming Calling Rule: _xxxxx (your phone number as entered in SPA page), any Destination
Finally, allow incoming SIP in clearOS firewall.
In VoIP and PBX
Share this post:
Responses (3)
-
Accepted Answer
I don't know your answer, but this guy appears to maintain Centos 7 rpm builds of asterisk - https://www.tucny.com/telephony/asterisk-rpms and https://itgala.xyz/asterisk-packages-installation-on-centos-7/. -
Accepted Answer
![Login Image](https://www1.clearos.com/components/com_easydiscuss/themes/simplistic/images/icon-locked.png)
Please login to post a reply
You will need to be logged in to be able to post a reply. Login using the form on the right or register an account if you are new here.
Register Here »