Asterisk, , IP- (. Private Branch eXchange, PBX). , . Asterisk Linux, BSD, OS X Windows .
Asterisk VoIP ( ) . Asterisk (voicemail), , -, .
Asterisk Linux, CentOS Debian, .
Asterisk
IP-, Linux, . Asterisk .
IP- . Asterisk , 2.6, , . Asterisk C, gcc , termcap openssl. Asterisk mysql, .
, Download :
asterisk.
asterisk-sounds.
asterisk-addons.
zaptel.
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).
. , , . :
, 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.
, 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:
DAHDI
DAHDI – , Asterisk . , , Asterisk. DAHDI .
/usr/src , . :
PJSIP
PJSIP – , , IP-. Asterisk 13.8 PJSIP . , Asterisk --with-pjproject-bundled ( ), PJSIP .
, PJSIP , .
pjsip.org /usr/src , . :
-
Asterisk . .
1. :
mysql_secure_installation
Y .
2. -:
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
systemctl enable freepbx
7. ODBC. cdr_mysql.so, , :
nano /etc/odbc.ini
, ODBC, :
isql -v asteriskcdrdb <username> <password>
8. , :
reboot
Asterisk 13 Debian
– Debian. : , , . Asterisk Debian 8.
(root). , , .
Asterisk 13 . .
. – gcc – Debian . :
, , Asterisk :
./configure
. , .
Asterisk :
make menuselect
. , . . apt-get.
Asterisk. :
1. :
make
2. :
make install
, :
make samples
. Asterisk . Asterisk:
asterisk -vvvvvvgc
Asterisk
Asterisk. Linux.
sip.conf:
, 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:
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.