Asterisk: installation and instructions

Asterisk, , IP- (. Private Branch eXchange, PBX). , . Asterisk Linux, BSD, OS X Windows .

Asterisk VoIP ( ) . Asterisk (voicemail), , -, .

Asterisk Linux, CentOS Debian, .

asterisk installation




Asterisk

IP-, Linux, . Asterisk .





IP- . Asterisk , 2.6, , . Asterisk C, gcc , termcap openssl. Asterisk mysql, .

, Download :

  1. asterisk.



  2. asterisk-sounds.



  3. asterisk-addons.



  4. zaptel.



  5. libpri.



, . /usr/src/.

. :

tar-xzf<_>tar.gz



, . :

cd<_>



.

1. :

./configure



2. :

make



3. :

make install



, Asterisk .

Linux, . , , .





, Asterisk : CentOS Debian GNU/Linux.

Asterisk CentOS

Asterisk 13. Asterisk CentOS 7.

, (root).

installing asterisk centos




. , , . :

asterisk server setup




, Asterisk.

SELinux. Security-Enhanced Linux CentOS Asterisk. .

SELinux :

sestatus



, SELinux , . /etc/selinux, .

sed -i 's/\(^SELINUX=\).*/\SELINUX=DISABLED/' config



, , . , :

tzselect



timedatectl set-timezone <_>



(, America/Los_Angeles



)

, , , :

​timedatectl status



, . reboot



.

Asterisk.

installing asterisk centos 7




, Asterisk CentOS , . Linux, CentOS 7.

IP-.

Downloads Asterisk 13 /usr/src. :

tar zxvf <_>



, .

make distclean



./configure --libdir=/usr/lib64 --with-pjproject-bundled



.

:

make menuselect.makeopts



:

1. IP-.

adduser asterisk -s /sbin/nologin -c "Asterisk User"



2. .

make && make install



3. Asterisk .

chown -R asterisk. /var/lib/asterisk



Asterisk .

Asterisk, CentOS . .

FreePBX

FreePBX – Web-, . Asterisk FreePBX .

:

systemctl start mariadb



GitHub /usr/src FreePBX:

git clone -b release/13.0 https://github.com/FreePBX/framework.git freepbx



:

./start_asterisk start



./install -n



FreePBX:

installing asterisk freepbx




DAHDI

DAHDI – , Asterisk . , , Asterisk. DAHDI .

/usr/src , . :

asterisk installation from scratch




PJSIP

PJSIP – , , IP-. Asterisk 13.8 PJSIP . , Asterisk --with-pjproject-bundled ( ), PJSIP .

, PJSIP , .

pjsip.org /usr/src , . :

asterisk server: installation




-

Asterisk . .

1. :

mysql_secure_installation



Y .

2. -:

asterisk office installation




3. , Asterisk:

firewall-cmd --permanent --zone=public --add-service={http,https}



--add-port=5060-5061/tcp



--add-port=5060-5061/udp



--add-port=10000-20000/udp



4. :

systemctl enable mariadb



5. - :

systemctl enable httpd



6. FreePBX :

nano /etc/systemd/system/freepbx.service



asterisk installation: files




systemctl enable freepbx



7. ODBC. cdr_mysql.so, , :

nano /etc/odbc.ini



asterisk install yourself




, ODBC, :

isql -v asteriskcdrdb <username> <password>



8. , :

reboot



Asterisk 13 Debian

– Debian. : , , . Asterisk Debian 8.

(root). , , .

installing asterisk debian 8




Asterisk 13 . .

. – gcc – Debian . :

asterisk system installation




, , Asterisk :

./configure



. , .

Asterisk :

make menuselect



. , . . apt-get.

Asterisk. :

1. :

make



2. :

make install



, :

make samples



. Asterisk . Asterisk:

asterisk -vvvvvvgc



Asterisk

Asterisk. Linux.

sip.conf:

telephony asterisk installation




, SIP (Cisco SIP Phone, xlite, ATA ). Asterisk. , .

() . , . , Asterisk , .

extension.conf /etc/asterisk :

exten=> _XXXX,1,Dial(SIP/${EXTEN})



SIP . , Asterisk IP-. , .

SIP

Asterisk . , , IP-.

SIP- – . Asterisk, SIP

sip.conf:

asterisk software installation




After that, you will need to add another line to extension.conf :

exten => _XXXXXXX.,1,Dial(SIP/trunk1/${EXTEN})



This will allow you to establish communication with the provider for outgoing calls.

Conclusion

Setting up a full-fledged office exchange based on Asterisk, the installation of which was discussed in this article, includes much more procedures than described above. Detailed information on the telephony server and its capabilities is presented in the official documentation for Asterisk.




All Articles