23 августа 2012 г.

FOP2 - Система мониторинга звонков

Для начала устанавливаем пакет:
tar -zxvf fop2-2.11-debian-i386.tgz
cd fop2-2.11-debian-i386
make install

Все, установили, далее только правим конфиги:

/etc/asterisk/manager.conf:

[general]
enabled = yes
port = 5038
bindaddr = 127.0.0.1

[admin]
secret = amp111
deny = 0.0.0.0/0.0.0.0
permit = 127.0.0.1/255.255.255.0
read = system,call,command,agent,user,originate
write = system,call,command,agent,user,originate

/usr/local/fop2/fop2.cfg:

[general]
; AMI definitions
manager_host = 127.0.0.1
manager_port = 5038
manager_user = admin
manager_secret = amp111

/etc/asterisk/sip.conf:

callevents=yes

/etc/asterisk/queues.conf

[testqueue]
eventwhencalled=yes


Добавляем юзверя /usr/local/fop2/fop2.cfg:

user=pavel:xxxxxx:all
buttonfile=buttons.cfg

/usr/local/fop2/buttons.cfg:

[SIP/404]
type=extension
extension=404
context=office
label=Diza
mailbox=404@office
extenvoicemail=*404@office

[DAHDI/1]
type=trunk
label=DAHDI 1
channel=DAHDI/1
server=1

все, пользуемся...