Opensips 3.2 have beautiful statistics module. For example you may get Data about average count of incoming sip messages directly from MI interface. Also you can output it on Zabbix graph. Enable mi_http module, add into opensips.conf:loadmodule “httpd.so”loadmodule “mi_http.so”modparam(“mi_http”, “root”, “mi”) Load statistics module and define statistics profiles and add update_stat_series() functions to script, check […]
Tag: opensips
Opensips 3.2, Homer 7
Advantages of using Opensips + Homer is possibility to see webrtc\tls traffic There is how to set simplest configuration on opensips side and Homer side. Homer 7 instruction for Debian 10. OPENSIPS: socket=hep_udp:ens5:9000 socket=hep_tcp:ens5:9000 … loadmodule “proto_hep.so” loadmodule “tracer.so” modparam(“proto_hep”, “hep_capture_id”, 5002) modparam(“proto_hep”, “hep_id”, “[hid]homer_ip:9060; transport=tcp; version=3”) modparam(“tracer”, “trace_id”, “[tid]uri=hep:hid”) ####### Routing Logic ######## # […]
Permission denied interface 80, 443
If you get permission denied for interface when start opensips. Like 44 interface for TLS, solution is here (https://superuser.com/questions/710253/allow-non-root-process-to-bind-to-port-80-and-443) in short words:setcap CAP_NET_BIND_SERVICE=+eip /usr/sbin/opensips
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 […]
183 ringback. OPensips + Rtpproxy.
Задача подменить КПВ идущее от провайдера на 10 секунд, далее прокидывать КПВ от провайдера. Задача решается при помощи opensips 3.1 + rtpproxy 2.1 и минимальной конфигурацией. rtpproxy прекрасно компилируется на базу Ubuntu 20opensips 3.1 устанавливается из репозиториев с конфигурацией по умолчанию для проигрывания своего приветсвия необходимо сделать 2 вещи: а) подключить rtpproxy и использовать rtpproxy_stream2uac […]
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
opensips 3.1 centos 7
Установка Opensips 3.1\opensips-cli\database на centos 7 отключаем в epel пакеты с opensips 1.10 (add to epel.repo: exclude=opensips*) устанавливаем репозиторий для centos 7: yum install epel-release yum install https://yum.opensips.org/3.1/releases/el/7/x86_64/opensips-yum-releases-3.1-5.el7.noarch.rpm устанавливаем все пакеты в репозитории opensips yum repo-pkgs opensips install далее установим opensips-cli, делать это лучше с git-hub: yum install git -y git clone https://github.com/OpenSIPS/opensips-cli.git yum install python36 […]
TCP\TLS NAT Zoiper
Столкнулся с проблемой, когда через sip прокси (opensips) не проходили пакеты (OPTIONS, NOTIFY, INVITE) в сторону uac при использовании TCP и TLS протоколов. при TLS opensips ругался 477/Send Error, при использовании TCP – 408 timeout. И действительно пакеты с opensips уходили, но не доходили до UAC. Причина была в использовании STUN, если его отключить на […]
systemd. opensips 1.7. centos7
Чтобы использовать автозагрузку на centos7 без понимания как работает systemd можно взять файл из новых версий opensips для systemd доработать его и добавить к себе в систему разместить файл opensips.service в /etc/systemd/multi-user.target.wants отредактировать файл: [Unit] Description=OpenSIPS is a very fast and flexible SIP (RFC3261) server Documentation=man:opensips After=network.target mariadb.service postgresql.service rtpproxy.service Requires=mariadb.service [Service] Type=forking User=root Group=root […]
Черный список ip адресов для voip
sh скрипт который !/bin/bash BADIPSFILE=”badips.list” BADIPSFILETEMP=”$BADIPSFILE”.temp ADDLISTFILE=”$BADIPSFILE”.load# get new list wget https://www.badips.com/get/list/voip/0 -O $BADIPSFILETEMP# sort new list sort $BADIPSFILETEMP -o $BADIPSFILETEMP# touch to be sure that file exist touch $BADIPSFILE# diff old ans new file diff $BADIPSFILE $BADIPSFILETEMP | grep -Po ‘\d+.\d+.\d+.\d+’ > $ADDLISTFILE# copy new file to old for next ips going fast cp […]