Difference between revisions of "Asterisk on centos (deprecated)"
Line 19: | Line 19: | ||
again upgrade | again upgrade | ||
yum update | yum update | ||
+ | |||
+ | Basic configure | ||
+ | add ser accounts into the /etc/asterisk/sip.conf | ||
+ | |||
+ | |||
+ | [user1] | ||
+ | type=friend | ||
+ | host=dynamic | ||
+ | secret=verysecretpassword ; put a strong, unique password here instead | ||
+ | context=users | ||
+ | deny=0.0.0.0/0 | ||
+ | permit=192.168.5.0/255.255.255.0 ; replace with your network settings | ||
+ | |||
+ | [user3] | ||
+ | type=friend | ||
+ | host=dynamic | ||
+ | secret=othersecretpassword ; put a strong, unique password here instead | ||
+ | context=users | ||
+ | deny=0.0.0.0/0 | ||
+ | permit=192.168.5.0/255.255.255.0 ; replace with your network settings | ||
+ | |||
+ | you can comment deny/permit lines with ";" character if you would like to able user access server from anywhere |
Revision as of 15:51, 6 June 2013
this guide was gathered from official asteriks wiki (https://wiki.asterisk.org/wiki/display/AST/Asterisk+Packages#AsteriskPackages-YUM(CentOS6/RedHatEnterpriseLinux6))
first of all install libsrtp and libsrtp-devel
yum install libsrtp libsrtp-devel
Adding the repository
rpm -Uvh http://packages.asterisk.org/centos/6/current/i386/RPMS/asterisknow-version-3.0.0-1_centos6.noarch.rpm yum update
install
yum install asterisk asterisk-configs --enablerepo=asterisk-11
install dahdi
yum install dahdi-linux dahdi-tools libpri
again upgrade
yum update
Basic configure add ser accounts into the /etc/asterisk/sip.conf
[user1] type=friend host=dynamic secret=verysecretpassword ; put a strong, unique password here instead context=users deny=0.0.0.0/0 permit=192.168.5.0/255.255.255.0 ; replace with your network settings [user3] type=friend host=dynamic secret=othersecretpassword ; put a strong, unique password here instead context=users deny=0.0.0.0/0 permit=192.168.5.0/255.255.255.0 ; replace with your network settings
you can comment deny/permit lines with ";" character if you would like to able user access server from anywhere