[SR-Users] Re: TLS module crashes with FIPS OpenSSL

2024-05-15 Thread Marat Gareev via sr-users
causing a crash at stopping time, this is of course less > critical, nevertheless it should be fixed. > > > > Maybe you can provide more details on how this problem can be reproduced, > or create an github issue with a small cfg to reproduce it. > > > > Cheers, >

[SR-Users] Re: TLS module crashes with FIPS OpenSSL

2024-05-14 Thread Marat Gareev via sr-users
ing symbols for libssl and libcrypto, > there could be useful details shown in the backtraces. > > Cheers, > Daniel > > > On 14.05.24 19:38, Marat Gareev via sr-users wrote: > > Henning, > I can't find anything else. But I caught one more segfault in the same > scenario

[SR-Users] Re: TLS module crashes with FIPS OpenSSL

2024-05-14 Thread Marat Gareev via sr-users
=no -m 256 -P /var/run/ser/kamailio.pid -u ser -g ser -f /usr/local/etc/kamailio/kamailio.cfg -w /usr/local вт, 14 мая 2024 г. в 18:57, Richard Chan via sr-users < sr-users@lists.kamailio.org>: > Can you try with > > kamailio ... --atexit=no > > > > On Tue, 14 May 2

[SR-Users] Re: TLS module crashes with FIPS OpenSSL

2024-05-14 Thread Marat Gareev via sr-users
lem is definitely related to FIPS, because I did not see any errors with regular OpenSSL 3.x. пн, 13 мая 2024 г. в 13:39, Marat Gareev : > Hello Henning, > > yes, I use this major version > > $ openssl version > OpenSSL 3.0.7 1 Nov 2022 (Library: OpenSSL 3.0.7 1 Nov 2022) > &

[SR-Users] Re: TLS module crashes with FIPS OpenSSL

2024-05-13 Thread Marat Gareev via sr-users
something related to the FIPS mode. > > > > Cheers, > > > > Henning > > > > *From:* Marat Gareev via sr-users > *Sent:* Montag, 13. Mai 2024 09:19 > *To:* Kamailio (SER) - Users Mailing List > *Cc:* Marat Gareev > *Subject:* [SR-Users] TLS module cra

[SR-Users] TLS module crashes with FIPS OpenSSL

2024-05-13 Thread Marat Gareev via sr-users
Hello, I encountered a problem stopping Kamailio with FIPS OpenSSL: Program terminated with signal SIGSEGV, Segmentation fault. #0 0x7ff7292380ac in OPENSSL_sk_pop () from /lib64/libcrypto.so.3 Missing separate debuginfos, use: dnf debuginfo-install kamailio-5.7.3-4816.x86_64 (gdb) bt #0

[SR-Users] Re: Dispatcher ping: "binding to source address X.X.X.X:XXXX failed: Address already in use" for TCP and TLS destinations

2024-02-17 Thread Marat Gareev via sr-users
Hello, +1 Kamailio 5.7.3 logs warnings on every call to *t_relay()*, not just dispatcher OPTIONS. When *tcp_reuse_port=yes* there are no warnings, but in this case the client sends requests from the server port. Is there another W/A? пт, 16 февр. 2024 г. в 15:52, Henning Westerholt via

Re: [SR-Users] Kill child process created by app_python module

2022-11-11 Thread Marat Gareev
to the several modules that starts their own children worker > processes to get an idea how to do it. > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > >

Re: [SR-Users] Kill child process created by app_python module

2022-10-26 Thread Marat Gareev
Hello again, Any advice will be appreciated. Thanks чт, 15 сент. 2022 г. в 18:10, Marat Gareev : > Hello Daniel, > > Probably, the process is not killed, because the child processes of the > python module are not included in the kamailio children list. > > How can I regis

Re: [SR-Users] Kill child process created by app_python module

2022-09-15 Thread Marat Gareev
14 сент. 2022 г. в 16:21, Daniel-Constantin Mierla : > Hello, > > not sure I got right what is the issue and what would be a solution for > it, but maybe you can leverage evrexec to create a child process and by > that keep it in kamailio children list. > > Cheers, > Danie

[SR-Users] Kill child process created by app_python module

2022-09-13 Thread Marat Gareev
Hello! I'm trying to use app_python module to perform periodic actions. This is a simple python code def _update(): while True: _action() time.sleep(60) class noop_handler: def child_init(self, rank): return 0 def ksr_request_route(self, msg): return 1 def mod_init(): #

Re: [SR-Users] How to call RPC functions from script

2022-07-04 Thread Marat Gareev
Thanks! Seems that jsonrpc_exec is what I need. пн, 4 июл. 2022 г. в 17:09, Barry Flanagan : > 4 Jul 2022 12:30:41 Marat Gareev : > > > Hello! > > > > Is it possible to call RPC functions from script? > > In particular, I'm interested in the ability to add

[SR-Users] How to call RPC functions from script

2022-07-04 Thread Marat Gareev
Hello! Is it possible to call RPC functions from script? In particular, I'm interested in the ability to add new groups to the dispatcher. https://kamailio.org/docs/modules/devel/modules/dispatcher.html#dispatcher.r.add __ Kamailio - Users

Re: [SR-Users] Manage blacklisting on network errors

2021-10-12 Thread Marat Gareev
Thank you, Bastian. It solved the problem. пн, 11 окт. 2021 г. в 21:55, Bastian Triller : > configure xavp_dst like > modparam("dispatcher", "xavp_dst", "_dsdst_") > and use $xavp(_dsdst_=>uri) in failure/reply route > > On Mon, Oct 11, 2021

Re: [SR-Users] Manage blacklisting on network errors

2021-10-11 Thread Marat Gareev
s. > > > > If you have another question, please elaborate.  > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* Marat Gareev

Re: [SR-Users] Manage blacklisting on network errors

2021-09-14 Thread Marat Gareev
ning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* sr-users *On Behalf Of *Marat > Gareev > *Sent:* Thursday, September 9, 2021 8:02 PM > *To:* Kamailio (SER) - Users Mailing List > *Subject:* [SR-Users] Manage blacklist

[SR-Users] Manage blacklisting on network errors

2021-09-09 Thread Marat Gareev
Hello! I have a simple config for routing requests with failover and blacklisting on 408, 480 and 503 codes from servers. This is a part of config: # Wrapper for relaying requests route[RELAY] { # the base event routes t_on_branch("MANAGE_BRANCH"); t_on_reply("MANAGE_REPLY");

Re: [SR-Users] SNMP counter doesn't increase in stateful proxy

2021-04-06 Thread Marat Gareev
gt; On 30.03.21 13:55, Marat Gareev wrote: > > Thanks, Daniel. > > In this case I'll define a custom counter. > > Marat > > вт, 30 мар. 2021 г. в 14:06, Daniel-Constantin Mierla : > >> Hello, >> >> the statistics from the core are only for stateless forwa

Re: [SR-Users] SNMP counter doesn't increase in stateful proxy

2021-03-30 Thread Marat Gareev
can use > onsend_route for requests. > > On the other hand, I do not use snmp module to see if there is any option > to export config-defined stats to snmp. > > Firthermore, maybe you can switch to statsd module for pushing out the > stats or pull them via rpc. > > Cheers, >

[SR-Users] SNMP counter doesn't increase in stateful proxy

2021-03-25 Thread Marat Gareev
Hello, I'm trying to get the total number of SIP request messages sent out by the proxy with *kamailioSIPSummaryOutRequest* scalar. But the value doesn't increase if I use t_relay() (with forward() counter works). Related thread .

[SR-Users] Server requirements estimation

2021-03-09 Thread Marat Gareev
Hello! I'm configuring Kamailio proxy and trying to find instructions or advises for choosing the following options: *Host specific* - Number of cores - RAM size *Kamailio specific* - Number of children to fork for the UDP interfaces - Shared memory size The proxy will not connect

Re: [SR-Users] Retransmission of 407

2021-02-08 Thread Marat Gareev
tefully? > > > > Check also if you not deactivated it on the module level, e.g. > https://www.kamailio.org/docs/modules/5.2.x/modules/auth.html#auth.p.force_stateless_reply > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt

Re: [SR-Users] Retransmission of 407

2021-02-07 Thread Marat Gareev
a retransmit, but it doesn't. вс, 7 февр. 2021 г. в 19:31, Alex Balashov : > That sounds like the client does not receive the 407. > > — > Sent from mobile, with due apologies for brevity and errors. > > > On Feb 7, 2021, at 11:12 AM, Marat Gareev wrote: > > > >  &g

[SR-Users] Retransmission of 407

2021-02-07 Thread Marat Gareev
Hello, UAC sends INVITE to UAS, authorization procedure is required, therefore UAS responds with an 407 error code. At this point, the client does not respond with ACK, but the server does not send retransmits. Is this the expected behavior? * UAC -- SIPp, UAS -- Kamailio. Can the Kamailio be

Re: [SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
s/stable/modules/textops.html#textops.f.cmp_str > > Cheers, > Daniel > On 13.10.20 15:22, Marat Gareev wrote: > > Henning, Daniel, > thanks for your replies. > > 1. I don't want to use a Regex module because it might have a performance > impact. > >> Matches the given str

Re: [SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
t wrote: > > Hello, > > > > just an idea, have you already tried this module: > https://www.kamailio.org/docs/modules/stable/modules/regex.html > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ >

[SR-Users] Caseless regex

2020-10-13 Thread Marat Gareev
Hello, Is it possible write more readable regular expression if ($tU =~ "(?i)^test$") { ... } instead of "^[tT][eE][sS][tT]$"? On the first option, I get the error: 0(47250) ERROR: [core/rvalue.c:3038]: fix_match_rve(): Bad regular expression Regards, Marat

Re: [SR-Users] Deletion of Prometheus metrics

2020-08-07 Thread Marat Gareev
Hello Vicente, Unfortunately, increasing the timeout does not solve the problem. I can set the parameter to 30 days, but the metric can be triggered after 30 days and 1 minute, for example. Disabling the parameter would be a good solution. I'll think about it too. Regards, Marat

[SR-Users] Deletion of Prometheus metrics

2020-08-06 Thread Marat Gareev
Hello, I have confuse about this timeout: https://www.kamailio.org/docs/modules/devel/modules/xhttp_prom.html#xhttp_prom.p.xhttp_prom_timeout Is there reason for forced deletion of unused metrics? Let's imagine a situation: Zabbix reads metrics at a certain interval, unused metrics are deleted

Re: [SR-Users] Reset Prometheus counter once

2020-07-16 Thread Marat Gareev
Hi, guys, many thanks for your interesting solutions. I have implemented Vicente's suggestion, it works as expected. loadmodule "xhttp_prom.so" > modparam("xhttp_prom", "prom_counter", "name=mycounter;") > modparam("pv", "shvset", "is_prometheus_init=i:0") > route { > if

[SR-Users] Reset Prometheus counter once

2020-07-15 Thread Marat Gareev
Hello. Are there any ways to reset the Prometheus counter once? I can do something like this, but counter will be reset on each request loadmodule "xhttp_prom.so" > modparam("xhttp_prom", "prom_counter", "name=mycounter;") > route { > prom_counter_reset("mycounter"); > } Otherwise, I will

Re: [SR-Users] xHTTP_PROM with older Kamailio

2020-07-13 Thread Marat Gareev
Hello, Karsten, Thanks for the link. I will definitely examine it. ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] xHTTP_PROM with older Kamailio

2020-07-13 Thread Marat Gareev
I found that the export module interface was changed ( https://www.kamailio.org/w/2018/09/new-module-exports-interface/). I downgraded to old-style version this structure > struct module_exports exports = { > "xhttp_prom", > DEFAULT_DLFLAGS, /* dlopen flags */ > cmds, > params, >

Re: [SR-Users] xHTTP_PROM with older Kamailio

2020-07-12 Thread Marat Gareev
I'm sorry. I mean *xhttp_prom.c* file instead of *xhttp_mod.c*. > ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] xHTTP_PROM with older Kamailio

2020-07-12 Thread Marat Gareev
pen, we are always > welcome to pull-requests.  > > > > Cheers, > > > > Henning > > > > -- > > Henning Westerholt – https://skalatan.de/blog/ > > Kamailio services – https://gilawa.com > > > > *From:* sr-users *On Behalf Of *Marat >

[SR-Users] xHTTP_PROM with older Kamailio

2020-07-10 Thread Marat Gareev
Hello, I have a customized Kamailio (kamailio 5.1.1 (x86_64/linux)), xHTTP_PROM was released in the 5.3.0 version. I'm trying to import the latest version of

[SR-Users] Expired transaction

2020-06-21 Thread Marat Gareev
Hello! I'm trying to manually reproduce expired transactions which couldn't be cleared. I had one idea, but it was unsuccessful. I tried to send SIGSTOP to a group of Kamailio processes while the transaction is live. The idea is to freeze processes for a while, then continue to work, so that by

Re: [SR-Users] RPC Command tm.clean

2020-06-12 Thread Marat Gareev
Hi, Thanks for your reply! What do you mean by "freezing operation system"? Can I manually reproduce stalled transactions? I tried to send SIGSTOP to a group of Kamailio processes while the transaction is live. The idea is to freeze processes for a while, then continue to work, so that by

[SR-Users] Re%3A RPC Command tm.clean=<9c051ed0-20b5-cf64-3e9a-cc60111a7e7c%40gmail.com>

2020-06-07 Thread Marat Gareev
Hi, Thanks for your reply! What do you mean by "freezing operation system"? Can I manually reproduce stalled transactions? I tried to send SIGSTOP to a group of Kamailio processes while the transaction is live. The idea is to freeze processes for a while, then continue to work, so that by this

[SR-Users] RPC Command tm.clean

2020-05-15 Thread Marat Gareev
Hello. I have a philosophical question about tm.clean command. Unfortunately, I don’t understand what this command is for, because in my view, expired transactions are automatically deleted. This is all I could find: pc