[sr-dev] [kamailio/kamailio] Segfault in pua_dialoginfo.c when starting up with a dialog in the database (Issue #3743)

2024-02-06 Thread Gianluca Nitti via sr-dev
### Description Kamailio segfaults on startup. After a bit of digging, it looks like the issue is caused by trying to publish something related to an expired dalog which is present in the database: ``` kamailio=# select * from dialog; id | hash_entry | hash_id | callid |

[sr-dev] Re: git:master:ba921b21: core/rthread.h: add prototype for db queries

2024-02-06 Thread Richard Chan via sr-dev
Hi Daniel / Henning, I would like to propose a global config to restore the non-threaded default: enable_tls = no|yes #(EXISTING) boolean enable_tls_threads = 0 | 1 | 2 #(NEW) int 0: disable thread-wrappers (restores kamailio behaviour) - default when enable_tls = no 1: thread-wrapper only for

[sr-dev] [kamailio/kamailio] [DRAFT]: restrict thread execution to process_no = 0 (PR #3744)

2024-02-06 Thread space88man via sr-dev
Pre-Submission Checklist - [X] Commit message has the format required by CONTRIBUTING guide - [X] Commits are split per component (core, individual modules, libs, utils, ...) - [X] Each component has a single commit (if not, squash them into one commit) - [X] No commits to README files for mo

[sr-dev] Re: git:master:ba921b21: core/rthread.h: add prototype for db queries

2024-02-06 Thread Richard Chan via sr-dev
For 5.7 stable I have a draft PR https://github.com/kamailio/kamailio/pull/3744 that minimises thread execution: it will run functions in a thread only if process_no = 0. This restores unchanged behaviour to all workers. FYC. On Tue, 6 Feb 2024 at 16:02, Henning Westerholt via sr-dev < sr-dev@list

[sr-dev] Re: [kamailio/kamailio] [DRAFT]: restrict thread execution to process_no = 0 (PR #3744)

2024-02-06 Thread Henning Sprang via sr-dev
no idea what this is? Henning On Tue 6. Feb 2024 at 12:34, space88man ***@***.***> wrote: > Pre-Submission Checklist > >- Commit message has the format required by CONTRIBUTING guide >- Commits are split per component (core, individual modules, libs, >utils, ...) >- Each componen

[sr-dev] Re: [kamailio/kamailio] [DRAFT]: restrict thread execution to process_no = 0 (PR #3744)

2024-02-06 Thread space88man via sr-dev
> no idea what this is? Henning This is related to your comment on the 5,7 stable branch: this PR restricts thread wrapping to process_no=0, i.e., from workers POV - no change in behaviour so the same as 5.7.4, 5.7.3 ... For process_no=0 it will run libssl calls in a thread to prevent thread l

[sr-dev] Re: Working with arrays in MongoDB documents

2024-02-06 Thread Mario Pereira via sr-dev
Hi Henning, Thank you very much for your reply. I have a question: what do you mean when you talk about using ndb_mongodb module? Do you mean to use it from the configuration file or inside a module code? Our use case is to save all contacts related to an AOR in the same MongoDB document as an

[sr-dev] Re: [kamailio/kamailio] [DRAFT]: restrict thread execution to process_no = 0 (PR #3744)

2024-02-06 Thread Daniel-Constantin Mierla via sr-dev
@space88man: regarding the above comment, you tagged the wrong Henning in the PR description, the one involved in Kamailio development is @henningw. The patch in PR seems ok, just wait a bit till merging just in case someone else wants to take a look. -- Reply to this email directly or view it

[sr-dev] git:master:4d6e37fa: core: added tls_threads_mode global parameter

2024-02-06 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio Branch: master Commit: 4d6e37fa048a1aaa2d2fc6655985b4bcb9754258 URL: https://github.com/kamailio/kamailio/commit/4d6e37fa048a1aaa2d2fc6655985b4bcb9754258 Author: Daniel-Constantin Mierla Committer: Daniel-Constantin Mierla Date: 2024-02-06T14:24:08+01:00 core: added tls_thread

[sr-dev] [kamailio/kamailio] DRAFT: new global config var to constrain thread wrapping (PR #3745)

2024-02-06 Thread space88man via sr-dev