Установка asterisk

Other Packages Related to asterisk

  • dep:
    adduser

    add and remove users and groups
  • dep:
    asterisk-config
    (= 1:13.14.1~dfsg-2+deb9u4)
    Configuration files for Asterisk
    or
    asterisk-config-custom

    Package not available
  • dep:
    asterisk-core-sounds-en

    asterisk PBX sound files — US English
  • dep:
    asterisk-modules
    (= 1:13.14.1~dfsg-2+deb9u4)
    loadable modules for the Asterisk PBX
  • dep:
    init-system-helpers
    (>= 1.18~)
    helper tools for all init systems
  • dep:
    libbsd0
    (>= 0.0)
    utility functions from BSD systems — shared library
  • dep:
    libc6
    (>= 2.16)
    GNU C Library: Shared libraries also a virtual package provided by

    libc6-udeb

    dep:
    libc6
    (>= 2.17)
    dep:
    libc6
    (>= 2.19)
  • dep:
    libcap2
    (>= 1:2.10)
    POSIX 1003.1e capabilities (library)
  • dep:
    libedit2
    (>= 2.11-20080614)
    BSD editline and history libraries
  • dep:
    libgcc1
    (>= 1:3.0)
    GCC support library
    dep:
    libgcc1
    (>= 1:3.4.4)
    dep:
    libgcc1
    (>= 1:3.5)
  • dep:
    libjansson4
    (>= 2.3)
    C library for encoding, decoding and manipulating JSON data
  • dep:
    libncurses5
    (>= 6)
    shared libraries for terminal handling
  • dep:
    libpopt0
    (>= 1.14)
    lib for parsing cmdline parameters
  • dep:
    libsqlite3-0
    (>= 3.5.9)
    SQLite 3 shared library
  • dep:
    libssl1.1
    (>= 1.1.0)
    Secure Sockets Layer toolkit — shared libraries
  • dep:
    libstdc++6
    (>= 4.1.1)
    GNU Standard C++ Library v3
  • dep:
    libsystemd0

    systemd utility library
  • dep:
    libtinfo5
    (>= 6)
    shared low-level terminfo library for terminal handling
  • dep:
    liburiparser1
    (>= 0.6.0)
    URI parsing library compliant with RFC 3986
  • dep:
    libuuid1
    (>= 2.16)
    Universally Unique ID library
  • dep:
    libxml2
    (>= 2.7.4)
    GNOME XML library
  • dep:
    libxslt1.1
    (>= 1.1.25)
    XSLT 1.0 processing library — runtime library
  • dep:
    lsb-base
    (>= 3.0-6)
    Linux Standard Base init script functionality
  • rec:
    asterisk-moh-opsound-gsm

    asterisk extra sound files — English/gsm
  • rec:
    asterisk-voicemail

    simple voicemail support for the Asterisk PBX
    or
    asterisk-voicemail-storage

    virtual package provided by

    asterisk-voicemail, asterisk-voicemail-imapstorage, asterisk-voicemail-odbcstorage

  • rec:
    sox

    Swiss army knife of sound processing

Post-install tasks

Lock down the database server.

mysql_secure_installation

Answer  to everything.

Log File Rotation

If this is not done the log files will keep growing indefinitely.

nano /etc/logrotate.d/asterisk
/var/spool/mail/asterisk
/var/log/asterisk/full
/var/log/asterisk/dtmf
/var/log/asterisk/fail2ban
/var/log/asterisk/freepbx.log
/var/log/asterisk/freepbx_security.log 
/var/log/asterisk/freepbx_debug {
        weekly
        missingok
        rotate 4
        #compress
        notifempty
        sharedscripts
        create 0640 asterisk asterisk
        postrotate
        /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null || true
        endscript
        su root root
}

Test ODBC

odbcinst -s -q

Use username & password in  to test connectivity to the DB via ODBC. 

isql -v MySQL-asteriskcdrdb someusername somepassword

Test asterisk ODBC access

asterisk -vvvr
CLI> odbc show

TFTP

If you plan to use hardware SIP phones you will probably want to enable the tftp server.

Create tftp configuration file.

nano /etc/xinetd.d/tftp
service tftp
{
protocol        = udp
port            = 69
socket_type     = dgram
wait            = yes
user            = nobody
server          = /usr/sbin/in.tftpd
server_args     = /tftpboot
disable         = no
}

Make the directory and restart the daemon to start tftp.

mkdir /tftpboot
chmod 777 /tftpboot
systemctl restart xinetd

Misc. settings

Set php  to allow larger music on hold files.

sed -i 's/upload_max_filesize = .*/upload_max_filesize = 20M/g' /etc/php/5.6/apache2/php.ini

Start Asterisk

Now that you have Asterisk installed on your Debian 9 VPS you can to start the Asterisk service with the following command:

systemctl start asterisk

You can check if the Asterisk service is started by using ther command:

systemctl status asterisk

If the service is running you will see the following message:

● asterisk.service - LSB: Asterisk PBX
   Loaded: loaded (/etc/init.d/asterisk; generated; vendor preset: enabled)
   Active: active (running) since Thu 2018-08-09 01:26:50 CDT; 29s ago
     Docs: man:systemd-sysv-generator(8)
  Process: 4996 ExecStart=/etc/init.d/asterisk start (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/asterisk.service
           └─5008 /usr/sbin/asterisk

Finally enable the Asterisk service to start on system boot with the following command:

systemctl enable asterisk

That is it. The Asterisk installation on your Debian 9 based server has been completed.

PBX Web Hosting

PS. If you liked this on how to install Asterisk on Debian 9, post please share it with your friends on the social networks using the buttons on the left or simply leave a reply below. Thanks.

Другие пакеты, относящиеся к asterisk

  • dep:
    adduser

    add and remove users and groups
  • dep:
    asterisk-config
    (= 1:16.2.1~dfsg-2build2)
    Configuration files for Asterisk
    или
    asterisk-config-custom

    Пакет недоступен
  • dep:
    asterisk-core-sounds-en

    asterisk PBX sound files — US English
  • dep:
    asterisk-modules
    (= 1:16.2.1~dfsg-2build2)
    loadable modules for the Asterisk PBX
  • dep:
    libc6
    (>= 2.27)
    GNU C Library: Shared libraries также виртуальный пакет, предоставляемый

    libc6-udeb

    dep:
    libc6
    (>= 2.28)
    dep:
    libc6
    (>= 2.29)
  • dep:
    libcap2
    (>= 1:2.10)
    POSIX 1003.1e capabilities (library)
  • dep:
    libedit2
    (>= 2.11-20080614-0)
    BSD editline and history libraries
  • dep:
    libgcc1
    (>= 1:3.0)
    GCC support library
    dep:
    libgcc1
    (>= 1:3.4.4)
    dep:
    libgcc1
    (>= 1:3.5)
  • dep:
    libjansson4
    (>= 2.11)
    C library for encoding, decoding and manipulating JSON data
  • dep:
    libpopt0
    (>= 1.14)
    lib for parsing cmdline parameters
  • dep:
    libsqlite3-0
    (>= 3.5.9)
    SQLite 3 shared library
  • dep:
    libssl1.1
    (>= 1.1.0)
    Secure Sockets Layer toolkit — shared libraries
  • dep:
    libsystemd0

    systemd utility library
  • dep:
    liburiparser1
    (>= 0.6.0)
    URI parsing library compliant with RFC 3986
  • dep:
    libuuid1
    (>= 2.16)
    Universally Unique ID library
  • dep:
    libxml2
    (>= 2.7.4)
    GNOME XML library
  • dep:
    libxslt1.1
    (>= 1.1.25)
    XSLT 1.0 processing library — runtime library
  • dep:
    lsb-base
    (>= 3.0-6)
    Linux Standard Base init script functionality
  • rec:
    asterisk-moh-opsound-gsm

    asterisk extra sound files — English/gsm
  • rec:
    asterisk-voicemail

    simple voicemail support for the Asterisk PBX
    или
    asterisk-voicemail-storage

    виртуальный пакет, предоставляемый

    asterisk-voicemail, asterisk-voicemail-imapstorage, asterisk-voicemail-odbcstorage

  • rec:
    sox

    Swiss army knife of sound processing

Предисловие к статье

В сети достаточно много статей по настройке Asterisk Realtime, но учитывая что конфиги меняются у него достаточно часто, чтобы что-то настроить на более свежей версии нужно перелопатить очень много старого материала. Так получилось и со мной. Здесь я опишу как настраивал Астериск для работы с базой данных пользователей и статистики звонков.

Если вы каким-то образом не в курсе о чем идет речь, википедия отвечает:Asterisk — свободное решение компьютерной телефонии (в том числе, VoIP) с открытым исходным кодом от компании Digium, первоначально разработанное Марком Спенсером. Приложение работает на операционных системах Linux, FreeBSD, OpenBSD и Solaris. Имя проекта произошло от названия символа «*» (англ. asterisk — «звездочка»).
Asterisk в комплексе с необходимым оборудованием обладает всеми возможностями классической АТС, поддерживает множество VoIP-протоколов и предоставляет богатые функции управления звонками, среди них:

  • Голосовая почта.
  • Конференции.
  • Интерактивное голосовое меню (IVR).
  • Центр обработки вызовов (постановка звонков в очередь и распределение их по агентам используя различные алгоритмы).
  • Запись (Call Detail Record).
Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *

Adblock
detector