The first step is to add the Asterisk yum repositories to your CentOS or RedHat system.
This is done by creating an entry in the yum configuration directory (/etc/yum.repos.d by default).
Use the text editor of your choice to create a new file named “CentOS-Asterisk.repo” in the “/etc/yum.repos.d” folder.
Add the following text to the file:
[asterisk-tested]
name=CentOS-$releasever – Asterisk – Tested
baseurl=http://packages.asterisk.org/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
[asterisk-current]
name=CentOS-$releasever – Asterisk – Current
baseurl=http://packages.asterisk.org/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.asterisk.org/RPM-GPG-KEY-Digium
Save the new file and create another named “CentOS-Digium.repo” and insert the following text:
[digium-tested]
name=CentOS-$releasever – Digium – Tested
baseurl=http://packages.digium.com/centos/$releasever/tested/$basearch/
enabled=0
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
[digium-current]
name=CentOS-$releasever – Digium – Current
baseurl=http://packages.digium.com/centos/$releasever/current/$basearch/
enabled=1
gpgcheck=0
#gpgkey=http://packages.digium.com/RPM-GPG-KEY-Digium
At this point your system has been updated to use the Asterisk and Digium repositories in addition to the base CentOS repositories. You are now ready to install Asterisk.
To start the installation, execute the following at the Linux command line:
[root@localhost~]# yum install asterisk16 asterisk16-configs asterisk16-voicemail dahdi-linux
Congratulations, you now have a CentOS or RedHat system with a complete version of Asterisk installed. Test out your new install by starting Asterisk:
[root@localhost yum.repos.d]# asterisk -vvvgci
Now Install Trixbox at http://yum.trixbox.org/centos/5/RPMS-2.6.0.7/trixbox-2.6.0.0-3.i386.rpm Install all dependencies, you can using yum install, http://rpm.pbone.net/ or http://http://yum.trixbox.org/centos/5/ After you already done, browse a Trixbox default username is maint and password is password
Make a some test.
[root@localhost ]#Vim /etc/asterisk/sip.conf [1000] type=friend username=1000 callerid=1000 secret=1000 host=dynamic context=Testing allow=all [1001] type=friend username=1001 callerid=1001 secret=1001 host=dynamic context=Testing allow=all [root@localhost ]#Vim /etc/asterisk/extensions.conf [Testing] exten => 1234,1,Dial(SIP/1000) exten => 4321,1,Dial(SIP/1001) Then configure your VoIP device with using proxy (your ip address asterisk) and fill the name and password.
You can make test with X-Lite too.
