Re: [SR-Users] event_route when all modules have been loaded?

2021-03-01 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I think it does not matter the type of transport for the worker, likely > the docs had udp because that's usually the first worker. Also, IIRC, > sip specs mandate UDP support, but kamailio can start without. Yes, SIP specs mandate UDP support, but if a sip

Re: [SR-Users] No ACK from MS Teams

2021-02-23 Thread Juha Heinanen
For sure there can be R-R headers in 200 OK to Teams Microsoft.PSTNHub.SIPProxy. -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

[SR-Users] event_route when all modules have been loaded?

2021-02-26 Thread Juha Heinanen
Is there a way to execute event_route when all modules have been loaded and Kamalio is ready to process requests? I found this in core cookbook, but what if there is no udp sip worker processes? event_route[core:worker-one-init] - executed by core after the first udp sip worker process

[SR-Users] update max_while_loops in config

2021-04-12 Thread Juha Heinanen
It is possible to update value of max_while_loops dynamically in config file? For example, there could be a need to increase the max in some while loop, but after the loop is done, decrease it again for other loops. There exists an rpc command to do that, but I haven't found how to do it in

Re: [SR-Users] potential PRACK related topos bug

2021-04-19 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you reproduce with debug=3 in kamailio.cfg, send me all the logs > messages (from the initial invite to ack) along with the pcap and the > records in the database from the topos_d and topos_t table? Syslog and pcap are in files

Re: [SR-Users] potential PRACK related topos bug

2021-04-19 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > It seems to be the problem of matching the R-URI of ACK to be myself > (address of the server), because it is the Contact of the callee, which > was replaced by 2nd topos processing. > > The solution should be to do only loose routing on the edge proxy doing >

[SR-Users] lots of syslog messages if sqlops fails to connect

2021-04-19 Thread Juha Heinanen
I noticed that Kamailio produces huge (3400+) number qm_free() syslog messages if sqlops fails to connect to database. Don't know if it is intentional. -- Juha ... Apr 19 18:02:40 edge /usr/bin/edge-proxy[1467]: CRITICAL: [main.c:1716]: main_loop(): Cannot fork Apr 19 18:02:40 edge

Re: [SR-Users] potential PRACK related topos bug

2021-04-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > In case of topology: > > > > A - P1 - P2 - P1 - B > > > > is the idea to use in P1 context "in" when initial request comes to P1 > > from A or B and context "out" when initial request comes to P1 from P2? > > > > Does context need to be set in replies too?

Re: [SR-Users] potential PRACK related topos bug

2021-04-14 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > If you need to do two different topology striping, one for each Porxy1 > steps, you have to try the development version and set different context > for initial requests on Proxy1 steps. I didn't really test it for this > use case, I needed context for some

[SR-Users] potential PRACK related topos bug

2021-04-14 Thread Juha Heinanen
In case of topology: A - P1 - P2 - P1 - B is the idea to use in P1 context "in" when initial request comes to P1 from A or B and context "out" when initial request comes to P1 from P2? Does context need to be set in replies too? If so, is reply context the same as the corresponding request

Re: [SR-Users] potential PRACK related topos bug

2021-04-13 Thread Juha Heinanen
Henning Westerholt writes: > as there have been different changes to topology hiding modules in the > last months, can you specify the exact minor version? 5.4.4 -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] potential PRACK related topos bug

2021-04-13 Thread Juha Heinanen
Test topology using K 5.4 where topos module is loaded in Proxy1: A - Proxy1 - Proxy2 - Proxy1 - B A sends INVITE, B responds with 183 Session Progress, and A sends PRACK. The result is that PRACK starts to loop in second Proxy1 instance instead of being forwarded to B. If topos module is

Re: [SR-Users] potential PRACK related topos bug

2021-04-20 Thread Juha Heinanen
Sorry, but it turned out that in calls where B replies first with "183 Session Progress" and which A acknowledges with PRACK request, P1 is not able to forward the PRACK, but responds with "404 Not found". I cannot reproduce this in my test environment, because I don't have a SIP UA that uses

Re: [SR-Users] lots of syslog messages if sqlops fails to connect

2021-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > What is the value for connect_mode modparam? > > https://www.kamailio.org/docs/modules/stable/modules/sqlops.html#sqlops.p.connect_mode It is not set, i.e., has default value 0. -- Juha ___ Kamailio (SER) - Users

Re: [SR-Users] potential PRACK related topos bug

2021-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you try with latest master branch? I pushed a commit to topos > module. Tried with latest master and the following in-dialog code: if (!loose_route_mode("1")) { if (is_method("ACK")) { if (t_check_trans()) {

Re: [SR-Users] potential PRACK related topos bug

2021-04-20 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The 404 is not sent from the C code of the topos module, can you > identify what are the cases in your config when a 404 is replied? PRACK > should have To-tag, so it should via requests within dialog branch. Yes, 404 is sent from the script: if

[SR-Users] loose_route() does not find socket by name

2021-02-12 Thread Juha Heinanen
I did more tests and found that loose_route() does not find socket by name given in ;sn param: Feb 12 10:40:59 lab /usr/bin/sip-proxy[16975]: WARNING: rr [loose.c:799]: rr_do_force_send_socket(): no socket found to match second RR

Re: [SR-Users] loose_route() does not find socket by name

2021-02-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Do you have the rr modparam related socket name mode set? Yes, sorry, forgot to mention it: modparam("rr", "sockname_mode", 1) I have added some debug to loose.c and some converted DBGs to INFOs in rr_do_force_send_socket() function:

Re: [SR-Users] loose_route() does not find socket by name

2021-02-12 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > > Also, there is no "=". So instead of ";sn=", the code should look for > > "sn". > > Indeed, I will push a fix for it. I also did one, but yours is cleaner than mine. Thanks. Tested and it works, no more warnings to syslog. Looks like no-one had ever

Re: [SR-Users] loose_route() does not find socket by name

2021-02-12 Thread Juha Heinanen
Juha Heinanen writes: > I think I found the bug: > > ./src/core/config.h:#define SOCKNAME_PARAM ";sn=" > > but in parse_params() result params are without ";". Also, there is no "=". So instead of &q

Re: [SR-Users] loose_route() does not find socket by name

2021-02-12 Thread Juha Heinanen
I think I found the bug: ./src/core/config.h:#define SOCKNAME_PARAM ";sn=" but in parse_params() result params are without ";". -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org

[SR-Users] Advice on handling SIP trunk to a Perimeta SBC

2021-02-16 Thread Juha Heinanen
Björn Bylander writes: > My problem is this: When the Perimeta SBC sends its first INVITE (I > can't say anything about any succeeding INVITEs yet) it's added a > Record-Route header with the "lr" parameter included which, as far as > I can see makes Kamailio think it should use loose routing

[SR-Users] loose_route() does not find socket by name

2021-02-20 Thread Juha Heinanen
I'm returning to this thread, since after some more testing, I found that loose_route() does not (at least always) detect that a pair of route headers denotes itself. In config I have defined: listen=tls:192.x.x.x:8005 name "ext_tls" modparam("rr", "sockname_mode", 1) and Route header looks

[SR-Users] loose_route() does not find socket by name

2021-02-21 Thread Juha Heinanen
How about this? https://github.com/kamailio/kamailio/pull/2643 -- Juha ___ Kamailio (SER) - Users Mailing List sr-users@lists.kamailio.org https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users

Re: [SR-Users] loose_route() fails on domain name

2021-02-11 Thread Juha Heinanen
Seems to be OK not to include ;sn param in IP address R-R URIs. At least I didn't get any errors or warning to syslog when I called loose_route() on in-dialog requests that had such Route headers. -- Juha ___ Kamailio (SER) - Users Mailing List

Re: [SR-Users] R-R to MS Teams Proxy

2021-02-11 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > The record_route_preset() is supposed to offer the flexibility of > setting the address part in RR headers via variables. I do not see how > the record_route() can be better variant, because it will end up in the > same kind functionality: for which to use the

Re: [SR-Users] loose_route() fails on domain name

2021-02-11 Thread Juha Heinanen
Alex Balashov writes: > That is the main reason I had previously thought it wasn’t possible! Have you changed your mind? The document https://skalatan.de/de/blog/kamailio-sbc-teams tells Change in your configuration the existing record_route() function call to this one:

Re: [SR-Users] loose_route() fails on domain name

2021-02-11 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Set names to the sockets > (https://www.kamailio.org/wiki/cookbooks/devel/core#listen): > > listen= . name "s1" > > And then add parameter "sn=s1" to the specific Record-Route header. If sockname_mode param has value 1: modparam("rr", "sockname_mode",

Re: [SR-Users] potential PRACK related topos bug

2021-04-22 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > This has nothing to do with the dialog, the fact here is that topos was > not designed for spirals, as I said in one of the previous emails. I am > trying to fix the missing parts to make it work, if you can provide > pcap/logs. Can I email them to you

Re: [SR-Users] potential PRACK related topos bug

2021-04-23 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > update: last evening I pushed a commit to topos_redis, I hope now it > behaves like when using db backend related to provisional replies. We tried this morning with latest master and unfortunately P1 still rejects PRACK with 404 when topos is using redis. --

Re: [SR-Users] record_route() from websocket UA to tls UA

2021-08-20 Thread Juha Heinanen
> Daniel-Constantin Mierla writes: > > Have you tested the usual cases as well? e.g., tls-to-tls, udp-to-udp, > ... I don't expect problems, just double-checking. If all ok, then it > will be backported. I tested all tcp, tls, and ws combinations and record routing worked fine. My sip proxy does

[SR-Users] record_route() from websocket UA to tls UA

2021-08-13 Thread Juha Heinanen
I noticed that when jsSIP UA that has registered over wss calls another SIP UA that has registered over tls, record_route() adds only one Route URI to outgoing INVITE (example below). This causes BYE to fail. This issue may be caused by the fact that both UAs register over the same Kamailio tls

Re: [SR-Users] record_route() from websocket UA to tls UA

2021-08-13 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > this should be fixed indeed, can you try and see if setting next > modparam helps for the moment? > > modparam("rr", "enable_double_rr", 2) That caused two r-r headers to be inserted: INVITE sip:foo-0x793ee87a90@10.158.141.103:38378;transport=tls SIP/2.0

Re: [SR-Users] dns_srv_lb on or yes

2021-09-01 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > for the records, I just looked in cfg.lex and the following tokens are > defined to have the same meaning: > >  YES "yes"|"true"|"on"|"enable" > >  NO  "no"|"false"|"off"|"disable" > > By matching the token YES the parser returns 1 and NO

Re: [SR-Users] record_route() from websocket UA to tls UA

2021-08-19 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Probably the code that needs to be changed is in the core, where the > message is built (msg_translator.c). rr module adds second conditional > lump for record route, but at that stage is not aware what is going to > be the final target address. OK. > One more

[SR-Users] record_route() from websocket UA to tls UA

2021-08-19 Thread Juha Heinanen
Should I create a bug issue to GitHub about this? I looked at rr/record.c, but could not figure out, what needs to be changed. -- Juha - > I noticed that when jsSIP UA that has registered over wss calls another > SIP UA

Re: [SR-Users] record_route() from websocket UA to tls UA

2021-08-19 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Can you try the latest master (or the last commit backported to your > local branch)? Maybe I nailed down with one more condition in the > core. Now two r-r headers are added without modparam("rr", "enable_double_rr", 2) and bye work fine. Can the change be

Re: [SR-Users] install latest sems-server on debian 10 buster

2021-08-09 Thread Juha Heinanen
Mojtaba writes: > ./core/AmDtmfDetector.cpp:768: undefined reference to `dtmf_rx' That is defined in libspandsp. The control file below works for me in Debian Buster. -- Juha Source: opensipg-sems Section: net Priority: optional Maintainer: Juha Heinanen Build-Depends: debhelper (&

Re: [SR-Users] install latest sems-server on debian 10 buster

2021-08-10 Thread Juha Heinanen
Mojtaba writes: > Would you please let me know about what version of sems you use? > Please tell me more about it. Master branch of https://github.com/sems-server/sems. -- Juha __ Kamailio - Users Mailing List - Non Commercial Discussions

[SR-Users] no debug trace of incoming request

2021-08-04 Thread Juha Heinanen
Is it somehow possible that ngrep shows incoming INVITE arriving over TCP to Kamailio's listening address and port, but there is no debug trace of the request (e.g. receive_msg(): --- received sip message ...) in syslog? -- Juha __

Re: [SR-Users] no debug trace of incoming request

2021-08-04 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Now, for TCP, I expect that the connection is not established if the > lower layers forbid it, so there should be no real data traffic on it. > If you list tcp connections with rpc command, do you see the one you > noticed traffic for using ngrep but Kamailio

[SR-Users] rtpengine module dependencies

2021-10-10 Thread Juha Heinanen
rtpengine module README tells this about module dependencies: 3.1. Kamailio Modules The following modules must be loaded before this module: tm module - (optional) if you want to have rtpengine_manage() fully functional Looks like this is not correct. If Kamailio connects to

[SR-Users] dns_srv_lb on or yes

2021-08-28 Thread Juha Heinanen
Wiki tells: dns_srv_lb = yes | no (default no) and doc/tutorials/dns.txt tells: dns_srv_lb = on | off Which one is correct or does it matter? -- Juha __ Kamailio - Users Mailing List - Non Commercial Discussions *

[SR-Users] Experiences with Kamailio on Debian 11 Bullseye

2021-10-26 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > has anyone experienced issues with Kamailio running on Debian 11 > Bullseye? I have been running K on Debian 11 without issues, but not in high volume production environment. -- Juha __ Kamailio - Users

[SR-Users] Re: pkg memory leak when acc module cdr_enabled

2023-01-05 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > is it the latest stable point version 5.6.2, or the latest version from > branch 5.6? Latest from 5.6. I just built new Debian package like this: MEMDBG=1 $(MAKE) FLAVOUR=kamailio cfg prefix=/usr cfg_prefix=$(BASEDIR) ... -I does not show DBG_QM_MALLOC.

[SR-Users] pkg memory leak when acc module cdr_enabled

2023-01-04 Thread Juha Heinanen
In latest stable K release, we noticed pkg memory leak (pgk memory usage increases by each processed call). It turned out that the leak goes away if acc module cdr_enable is not enabled. Could be a bug in dialog or acc module. Any debug instructions if the bug is not obvious? -- Juha

[SR-Users] Re: pkg memory leak when acc module cdr_enabled

2023-01-09 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > I found a related patch that was not backported -- I just pushed to 5.6 > branch a bunch of commits, including that one. Try again with latest 5.6 > branch and report if there is still some issue. Daniel, Thanks, in lab tests the leak was gone. Will try in

Re: [SR-Users] lcr related crash

2022-11-18 Thread Juha Heinanen
Daniel-Constantin Mierla writes: > Grab the gdb output for: > > list > > p *rule > > p *pl Here: (gdb) list 2325    in lcr_mod.c (gdb) p *rule Cannot access memory at address 0x383734313030 (gdb) p *pl $1 = {rule_id = 0, prefix = '\000' , prefix_len = 5, from_uri = '\000' , from_uri_len

[SR-Users] Loading the LCR Module Tables at startup/reload

2023-04-28 Thread Juha Heinanen
harneet singh writes: > Can someone point to a sample as to how we can *load the LCR Module tables* > namely the following at startup from a csv file or any other > mechanism. You could import cvs files to those tables before starting Kamailio. DuckDuckGo gave this example:

[SR-Users] Re: Loading the LCR Module Tables at startup/reload

2023-04-30 Thread Juha Heinanen
In my opinion is not a good idea that you need to restart Kamailio each time there is a change in LCR configuration. Better to make the changes directly to the DB tables after initial load from cvs. -- Juha __ Kamailio - Users Mailing List

[SR-Users] Matching the From Username in LCR rule table

2023-06-09 Thread Juha Heinanen
harneet singh writes: > "A gateway matches a request if user part of Request-URI matches "prefix", > caller URI matches "from_uri" pattern,* caller URI userpart matches mtree > with "mt_value"*, and callee URI matches "request_uri" pattern in a tuple > that is associated with the gateway." > >

[SR-Users] Connect to a remote ENUM(E.164 Number Mapping) server

2023-12-25 Thread Juha Heinanen via sr-users
elhar.mohamed--- via sr-users writes: > I'm using the Kamailio version 5.7.x, I didn't find in the module > "enum.so" any option that allow to connect to a remote ENUM server. ENUM lookup is normal DNS lookup. -- Juha __ Kamailio - Users

[SR-Users] Re: Connect to a remote ENUM(E.164 Number Mapping) server

2023-12-25 Thread Juha Heinanen via sr-users
elhar.mohamed--- via sr-users writes: > Can you please give more explanation ? I'm not sure I understand what > you want to tell ! Read, for example, this article: https://nickvsnetworking.com/enum-dns-based-call-routing/ -- Juha __

[SR-Users] LCR logic

2024-01-26 Thread Juha Heinanen via sr-users
Social Boh via sr-users writes: > so I have 3 lcr_rule_target use the same > lcr_rule entry but 3 different Gateways and priority. So the order of > rules would be longest Request-URI (same) and the priority but the > result is: > > added matched_gws[0]=[3, 5, 200, 2193562] > added

[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
Daniel-Constantin Mierla writes: > what are the operating system and the compiler used? Sorry, Debian 12 using gcc version 12.2.0. -- Juha __ Kamailio - Users Mailing List - Non Commercial Discussions To unsubscribe send an email to

[SR-Users] 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
My SIP proxy didn't start with Kamailio 5.8 using the same config that starts OK with 5.7. The error is: 2024-03-11T06:56:06.457107+02:00 lohi /usr/bin/sip-proxy[2358954]: DEBUG: acc [acc_mod.c:362]: parse_failed_filter(): failed_filter 0 = 407 2024-03-11T06:56:06.457265+02:00 lohi

[SR-Users] 5.8 compiler warning

2024-03-10 Thread Juha Heinanen via sr-users
Kamailio 5.8 build generates on my Debian 12 the following warning: core/mem/q_malloc.c:996:14: warning: 'qm_strnstr' defined but not used [-Wunused-function] 996 | static void *qm_strnstr(const void *b1, int l1, const void *b2, int l2) | ^~ Perhaps the definition

[SR-Users] Re: 5.8 acc module failed_filter error

2024-03-11 Thread Juha Heinanen via sr-users
Daniel-Constantin Mierla writes: > It might be a regression by commit 675f6c02248, can you try with latest > master or with the patch of the commit: > >   - > https://github.com/kamailio/kamailio/commit/4dc37aee853bbcf9d7fdb96245b76aaa8dfa2930 I tried with latest master and it started OK.

[SR-Users] dynamic selection of authentication algorithm

2024-04-20 Thread Juha Heinanen via sr-users
Juha Heinanen via sr-users writes: > Currently digest authentication hash algorithm (MD5 or SHA-256) is > selected when auth module is loaded. How about allowing to select it > also dynamically using the function flags? Can't be done, since auth_db functions don't have flags parameter.

[SR-Users] dynamic selection of authentication algorithm

2024-04-20 Thread Juha Heinanen via sr-users
Currently digest authentication hash algorithm (MD5 or SHA-256) is selected when auth module is loaded. How about allowing to select it also dynamically using the function flags? -- Juha __ Kamailio - Users Mailing List - Non Commercial

[SR-Users] dynamic selection of authentication algorithm

2024-04-20 Thread Juha Heinanen via sr-users
How about this new function that sets the algorithm? -- Juha iff --git a/src/modules/auth/auth_mod.c b/src/modules/auth/auth_mod.c index 534ad9e20f..4e3a584d22 100644 --- a/src/modules/auth/auth_mod.c +++ b/src/modules/auth/auth_mod.c @@ -74,6 +74,10 @@ int w_consume_credentials(struct sip_msg

<    1   2   3   4