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 […]
Category: Без рубрики
Register here to leave comments or asks something
Hey, colleagues, glad to say i am open registration here so you can leave comments. Всем, привет, на открыл регистрацию здесь – можете оставлять комменты к постам.
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
opensips 3.1 TLS
Чтобы поднять рабочий сервер TLS-SIP На базе opensips 3.1 нужно учесть несколько моментов: Установить certbot (https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-debian-10) Установить базу данных: apt install mariadb-server apache Установить opensips И opensips control panel https://apt.opensips.org/packages.php?v=3.1 apt install opensips opensips-cli apt install opensips* (для ленивых конечно) установить сертификаты для своего домена Установить opensips control panel поправить файлик /var/www/html/opensips-cp/config/tools/system/tls_mgm/local.inc.php закомментировав validation для […]
To deploy some Voip service
What server you want to use: Standalone (physically server) Dedicated Server Virtual Machine (AWS,GCP,DO and so on) Do you have requirements for OS and related software: Debian\Centos\Ubuntu Mysql/PostgreSQL What Voip trunk you have or how you have connected to voice services: I have two trunks with a-z routes and cheap prices. What amount of calls […]
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
Protected: Pavel Eremin
There is no excerpt because this is a protected post.
сервера со скидками и промокадами.
digitalocean.com: Если вам нужно, проверить что-то в течении 60 дней, то можно воспользоваться ссылкой на digital-ocean. дают 100$ на тестирование их услуг. firstvds.ru: скидка 25% на первый месяц по ссылке либо используйте промокод: 648139326
run cron every N seconds
Для современных систем есть systemd который прекрасно решает эту задачу оригинальная статься здесь Цитата: Here is a simple example that logs “Hello World” every 10 seconds:/etc/systemd/system/helloworld.service:[Unit] Description=Say Hello [Service] ExecStart=/usr/bin/logger -i Hello World /etc/systemd/system/helloworld.timer:[Unit] Description=Say Hello every 10 seconds [Timer] OnBootSec=10 OnUnitActiveSec=10 AccuracySec=1ms [Install]WantedBy=timers.target After setting up these units (in /etc/systemd/system, as described above, for a […]
AMI FREEPBX NAMI SYSLOG NODEJS
В этом проекте нам нужно сохранять различные события в очередях Астериска через nodejs библиотеку NAMI. Сложности тут на первый взгляд только одна, это создания таблиц для сохранения событий. На самом деле нет, есть еще задача сохранения неудачного запроса, есть задача выполнения асинхронного запроса, чтобы не скрипт не тормозил. В проект включены файлы:tables.sql – который создает […]