процедура такая получилась:1. удаляем новую Libmicrohttpd2. обновляем Opensips и ставим http и prometheus модули со старой либой2.1 копируем модули от нового в tmp3. Удаляем старую либу(она удаляется с модулями http и prometheus)4. ставим новую либу Libmicrohttpd5. копируем модули httpd и prometheus из tmp в папку с Opensips lib6. делаем копию файла libmicrohttpd.12 -> libmicrohttpd.107. после […]
Tag: centos 7
Ansible Part II. Install opensips,opensips-cli,opensips control panel.
You can use this Ansible roles to install full Opensips + Control Panel with one command. For some reason roles to install Opensips from ansible galaxy not working as expected. I have modified some roles to make it works. This will good only for Debian 10 and Centos 7. Most popular systems. Roles will install […]
opensips as SBC
Example of opensips SBC with 2 interfaces with full RTP proxy and g729 transcoding. Software: opensips 3.1, rtpengine, bcg729. example settings for rtpengine: OPTIONS=”-i external/172.18.254.50!EXTERNAL_IP -i internal/172.25.150.242 -n 127.0.0.1:2223 -m 35000 -M 65000 -L 4 –log-facility=local1 –table=0 –delete-delay=0 –timeout=60 –silent-timeout=600 –final-timeout=7200 –offer-timeout=60 –num-threads=4 –tos=184 –no-fallback” example opensips config: git clone https://bitbucket.org/yooxy/opensips-sbc-local-external-transcode.git
sox asterisk wav mp3
Хорошая статья по теме конвертации в mp3 для centos7. у меня лично возникла проблема со входящими файлами wav почему-то – sox не видел данных в них, пришлось явно указывать. скрипт для конвертации всех файлов в каталоге в mp3
firewalld asterisk fail2ban
На centos 7 по умолчанию используется firewalld и возникла проблема с тем что fail2ban не банит после неуспешных попыток авторизации и звонков проблемы тут 2: Первая это сами правила которыми пользуется fail2ban чтобы банить, я их заменил на actionban = firewall-cmd –direct –add-rule ipv4 raw PREROUTING 0 -s -j DROP && firewall-cmd –change-source= –zone=block && […]