среда, 15 июля 2015 г.

zabbix: мониторим freeswitch

Рабочая версия 2.4, под centos 6 x86_64
Считаем, что у нас уже есть сервер, поднимать будем агентов. Тут речь о настройке.
быстрая установка
идём на http://repo.zabbix.com/, выбираем нужный релиз, в моём случае zabbix-release-2.4-1.el6.noarch.rpm, ставим через rpm -Uvh, потом yum -y install zabbix-agent

Введение-предупреждение: selinux у меня выключен, поэтому если требуется его работа - или настраиваем в режиме permissive, выставляя потом права и создавая правила, или при любой проблеме первым делом проверяем, не он ли мешает работе.

2 метода получения данных:
  1. SNMP
  2. скриптами для агента

zabbix + kamailio

Как обычно, 2 варианта: SNMP и zabbix-agent

вторник, 14 июля 2015 г.

Sox

I am looking for command-line utility that monitors the microphone, and if you start to speak, writes the file. Recording period should be adjusted.

Solution is:

   sox -t alsa default recording.wav silence 1 0.1 5% 1 1.0 5%

+
http://www.thegeekstuff.com/2009/05/sound-exchange-sox-15-examples-to-manipulate-audio-files/

понедельник, 22 июня 2015 г.

Freeswitch + debian jessie (8.x)

Если apt-get install freeswitch-meta-vanilla заканчивается с ошибкой, можно поставить
freeswitch-meta-bare и затем freeswitch-init-systemd

Или наоборот, как вариант. Суть в том, что до установки freeswitch-init уже должен стоять хоть какой-то инит пакет.

Ошибка выглядит примерно так
# apt-get install -f
Reading package lists... Done
Building dependency tree    
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up freeswitch-sysvinit (1.4.20~34-1~jessie+1) ...
Job for freeswitch.service failed. See 'systemctl status freeswitch.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript freeswitch, action "start" failed.
dpkg: error processing package freeswitch-sysvinit (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of freeswitch-init:
 freeswitch-init depends on freeswitch-sysvinit (= 1.4.20~34-1~jessie+1); however:
  Package freeswitch-sysvinit is not configured yet.

dpkg: error processing package freeswitch-init (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 freeswitch-sysvinit
 freeswitch-init
E: Sub-process /usr/bin/dpkg returned an error code (1)

среда, 3 июня 2015 г.

freeswitch 1.6 - основные фишки

https://freeswitch.org/confluence/display/FREESWITCH/FreeSWITCH+1.6+Video
Detailed information on how to properly build and test the new FreeSWITCH™ 1.6 with awesome video conferencing support.
Прежде всего, перерабатывают работу с видео. Правда, штука довольно редко нужна, без учета всяких порночатиков.
Плюс изменили систему сборки, но зачем ради этого менять версию?...

По ссылке - инструкция по установке. Пока версия альфа, 1.5.