Это проект с открытым исходным кодом компании Digium, первоначально начатый Марком Спенсером.
Asterisk обладает всеми возможностями классической АТС, поддерживает множество VoIP протоколов и предоставляет функции голосовой почты,
конференций, интерактивного голосового меню (IVR), центра обработки вызовов (постановка звонков в очередь и распределение их по агентам
используя различные алгоритмы), запись CDR и прочие функции. Для создания собственной функциональности можно воспользоваться собственным
языком Asterisk для написания диалплана, написав модуль на языке C, либо воспользовавшись AGI, который является гибким и универсальным
интерфейсом для интеграции с внешними системами обработки данных. Выполняемое через AGI может быть написано на любом языке программирования.
Процесс установки:
1) включить возможность доступа к NAS через Telnet/SSH
2) Зайти на NAS через Telet/SSH. Я рекомендую через SSH с помощью программы PUTTY. В ней нужно указать IP адрес NAS, выбрать тип соединения SSH.
3) Логин: root, пароль: пароль администратора.
Установка Asterisk IP-PBX
Устанавливаем
ipkg update
ipkg install asterisk14
ipkg install asterisk-gui
ipkg install asterisk-sounds
Делаем архивную копию (на всякий случай ) , можно и не делать
cp -r /opt/etc/asterisk /opt/etc/asterisk.backup
Правим вручную конфигурационные файлы
Я делал это в Midnight Commander
По адресу правим /opt/etc/asterisk/manager.conf
enabled = yes
webenabled = yes
httptimeout = 60
[admin] (login ваш)
secret = admin ( password ваш для доступа к настройкам Астериск)
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
Сохраняем внесенные изменения.
В РЕЗУЛЬТАТЕ ВЫГЛЯДИТЬ ДОЛЖНО ТАК , ОБРАТИТЕ ВНИМАНИЕ НА ЗНАКИ " ; " ВНАЧАЛЕ СТРОКИ!!!!!!!
;
; AMI - The Asterisk Manager Interface
;
; Third party application call management support and PBX event supervision
;
; This configuration file is read every time someone logs in
;
; Use the "manager list commands" at the CLI to list available manager commands
; and their authorization levels.
;
; "manager show command <command>" will show a help text.
;
; ---------------------------- SECURITY NOTE -------------------------------
; Note that you should not enable the AMI on a public IP address. If needed,
; block this TCP port with iptables (or another FW software) and reach it
; with IPsec, SSH, or SSL vpn tunnel. You can also make the manager
; interface available over http if Asterisk's http server is enabled in
; http.conf and if both "enabled" and "webenabled" are set to yes in
; this file. Both default to no. httptimeout provides the maximum
; timeout in seconds before a web based session is discarded. The
; default is 60 seconds.
;
[general]
displaysystemname = yes
enabled = yes
webenabled = yes
port = 5038
httptimeout = 60
; a) httptimeout sets the Max-Age of the http cookie
;
; on a action=waitevent request (actually its httptimeout-10)
; c) httptimeout is also the amount of time the webserver keeps
; a http session alive after completing a successful action
bindaddr = 0.0.0.0
;displayconnects = yes
;
; Add a Unix epoch timestamp to events (not action responses)
;
;timestampevents = yes
[admin]
secret = admin
;deny=0.0.0.0/0.0.0.0
;permit=209.16.236.73/255.255.255.0
;
; If the device connected via this user accepts input slowly,
; the timeout for writes to it can be increased to keep it
; from being disconnected (value is in milliseconds)
;
; writetimeout = 100
;
; Authorization for various classes
read = system,call,log,verbose,command,agent,user,config
write = system,call,log,verbose,command,agent,user,config
По адресу правим /opt/etc/asterisk/http.conf
enabled=yes
enablestatic=yes
bindaddr=0.0.0.0 (здесь IP вашей DS )
Сохраняем внесенные изменения
В РЕЗУЛЬТАТЕ ВЫГЛЯДИТЬ ДОЛЖНО ТАК , ОБАРТИТЕ ВНИМАНИЕ НА ЗНАКИ " ; " ВНАЧАЛЕ СТРОКИ!!!!!!!
; Asterisk Builtin mini-HTTP server
;
;
[general]
;
; Whether HTTP interface is enabled or not. Default is no.
;
enabled=yes
;
; Whether Asterisk should serve static content from http-static
; Default is no.
;
enablestatic=yes
;
; Address to bind to. Default is 0.0.0.0
;
bindaddr=192.168.1.200
;
; Port to bind to (default is 8088)
;
bindport=8088
;
; Prefix allows you to specify a prefix for all requests
; to the server. The default is "asterisk" so that all
; requests must begin with /asterisk
;
;prefix=asterisk
; The post_mappings section maps URLs to real paths on the filesystem. If a
; POST is done from within an authenticated manager session to one of the
; configured POST mappings, then any files in the POST will be placed in the
; configured directory.
;
;[post_mappings]
;
; In this example, if the prefix option is set to "asterisk", then using the
; POST URL: /asterisk/uploads will put files in /opt/var/lib/asterisk/uploads/.
;uploads = /opt/var/lib/asterisk/uploads/
;
Запускаем Астериск командой
/opt/sbin/asterisk –vvvgc
Должен появится громадный листинг.
Ошибок быть не должно.
Если есть ошибки что то не так установили.
Удалить и заново все переустановить.
Вебморда находится по адресу
http: //DS Synology:8088/asterisk/static/config/cfgbasic.html
Вместо "DS Synology" набрать имя станции или её IP адрес.
Для входа в настройку Астериска пара логин- пароль admin, admin, выше мы это указали в конфиге.
Как настроить сам Астериск для работы читайте тут и смотрите скриншоты.
http://habrahabr.ru/blogs/asterisk/54816/