I am using ilbc to make calls with mobile applications. As we know ilbc is old codec, all tests,table and pictures all over the net make us feel as ilbc most worse then opus. because opus is faster, more quality e.t.c. Seems… my opinion is different, if you want good quality and minimum bandwidth out […]
Category: opensips
Auth SIP manual
How to md5 auth SIP client manually if you have access to DB with passwords:in short words: # How to calculate manual response to send into Authorization header # HA1=MD5(username:realm:password) # HA2=MD5(method:digestURI) # response=MD5(HA1:nonce:HA2) route[auth] { if (!is_present_hf(“Authorization”)) return; # < converts string with ‘,’ to string with ‘;’ $var(raw_auth) = $hdr(Authorization); $var(reg_input)=$var(raw_auth); xlog(“$var(reg_input) [$ci]”); […]
Update opensips 3.2.2 -> 3.2.6 centos 7
процедура такая получилась:1. удаляем новую Libmicrohttpd2. обновляем Opensips и ставим http и prometheus модули со старой либой2.1 копируем модули от нового в tmp3. Удаляем старую либу(она удаляется с модулями http и prometheus)4. ставим новую либу Libmicrohttpd5. копируем модули httpd и prometheus из tmp в папку с Opensips lib6. делаем копию файла libmicrohttpd.12 -> libmicrohttpd.107. после […]
TLS
Немного о том, как настраивать tls_mgm. TLS domain это обозначение настроек, которое никак не связано с доменами в SIP заголовках. Оно используется для того, что дать opensips возможность определить какие сертификаты использовать для входящих\исходящих соединений. Какие сертификаты (читай: какой TLSdomain) использовать при входящем звонке, Opensips определяет по SIP domain в (SNI) записи в сертификате присылаемом […]
Opensips. MI. Json. Zabbix.
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 […]
Opensips-cli. Json. jq.
You know that opensips -x mi dlg_list will produce a lot of JSON output, what if i want to get only dialogs with state = 4 ? There are beautiful tool like “jq” present in unix. (documentation) For example output from command “opensips-cli -x mi profile_get_size profile=calls”: { “Profile”: { “name”: “calls”, “value”: null, “count”: […]
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 […]
OPENSIPS 3.2 modules HTTPD and MI_HTTP
There is problem when you try to using httpd and mi_http modules with opensips 3.2 and centos 7.9.2009 even you have installed opensips from repository. To avoid it: remove libhttpd system, install new version, download opensips from git, compile appropriated modules. CRITICAL:httpd:mod_init: the version of libmicrohttpd you have does not support EPOLL feature, you need […]