[sr-dev] git:master:3120d1df: ldap: option to start even when connecting to server fails

2024-02-09 Thread Henning Westerholt via sr-dev
Module: kamailio
Branch: master
Commit: 3120d1dfcfa393b90272526e6fe2efb3aa32a19d
URL: 
https://github.com/kamailio/kamailio/commit/3120d1dfcfa393b90272526e6fe2efb3aa32a19d

Author: Xenofon Karamanos 
Committer: Henning Westerholt 
Date: 2024-02-09T09:46:25+01:00

ldap: option to start even when connecting to server fails

---

Modified: src/modules/ldap/ldap_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/3120d1dfcfa393b90272526e6fe2efb3aa32a19d.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3120d1dfcfa393b90272526e6fe2efb3aa32a19d.patch

---

diff --git a/src/modules/ldap/ldap_mod.c b/src/modules/ldap/ldap_mod.c
index fada29a3023..de0e25b1545 100644
--- a/src/modules/ldap/ldap_mod.c
+++ b/src/modules/ldap/ldap_mod.c
@@ -80,6 +80,7 @@ static int w_ldap_result_check_2(
 * Default module parameter values
 */
 #define DEF_LDAP_CONFIG "/usr/local/etc/kamailio/ldap.cfg"
+static int ldap_connect_mode = 0;
 
 /*
 * Module parameter variables
@@ -125,6 +126,7 @@ static cmd_export_t cmds[] = {
 static param_export_t params[] = {
 
{"config_file",  PARAM_STR, &ldap_config},
+   {"connect_mode",PARAM_INT, &ldap_connect_mode},
{0, 0, 0}
 };
 
@@ -151,6 +153,7 @@ static int child_init(int rank)
 {
int i = 0, ld_count = 0;
char *ld_name;
+   int ret = 0;
 
/* don't do anything for non-worker processes */
if(rank == PROC_INIT || rank == PROC_MAIN || rank == PROC_TCP_MAIN)
@@ -168,9 +171,15 @@ static int child_init(int rank)
}
 
if(oldap_connect(ld_name) != 0) {
-   LM_ERR("[%s]: failed to connect to LDAP host(s)\n", 
ld_name);
-   ldap_disconnect(ld_name);
-   return -1;
+   if(ldap_connect_mode == 1) {
+   LM_INFO("[%s]: Failed to connect to LDAP 
host(s) but start "
+   "without connection enabled - 
proceed",
+   ld_name);
+   } else {
+   LM_ERR("[%s]: failed to connect to LDAP 
host(s)\n", ld_name);
+   ldap_disconnect(ld_name);
+   return -1;
+   }
}
}
 

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:e7397acb: ldap/docs: Add connect_mode docs

2024-02-09 Thread Henning Westerholt via sr-dev
Module: kamailio
Branch: master
Commit: e7397acb86db5cf0a214fe7f2812e21130e7b2f6
URL: 
https://github.com/kamailio/kamailio/commit/e7397acb86db5cf0a214fe7f2812e21130e7b2f6

Author: Xenofon Karamanos 
Committer: Henning Westerholt 
Date: 2024-02-09T09:46:25+01:00

ldap/docs: Add connect_mode docs

---

Modified: src/modules/ldap/doc/ldap_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/e7397acb86db5cf0a214fe7f2812e21130e7b2f6.diff
Patch: 
https://github.com/kamailio/kamailio/commit/e7397acb86db5cf0a214fe7f2812e21130e7b2f6.patch

---

diff --git a/src/modules/ldap/doc/ldap_admin.xml 
b/src/modules/ldap/doc/ldap_admin.xml
index 3337dd2be0c..2bb2c3a5ef4 100644
--- a/src/modules/ldap/doc/ldap_admin.xml
+++ b/src/modules/ldap/doc/ldap_admin.xml
@@ -455,6 +455,23 @@ modparam("ldap", "config_file", 
"/usr/local/etc/&kamailiobinary;/ldap.ini")
  
 
   
+
+  
+connect_mode (int)
+
+Control if the module must stop loading when connecting to 
server fails during start up. Values: 0 - stop loading; 1 - continue even if 
connecting to database server fails..
+Default value:
+0
+
+
+  Set connect_mode parameter
+
+  
+modparam("ldap", "connect_mode", 1)
+ 
+
+  
+
 
 
 
@@ -1079,4 +1096,3 @@ if (ldap_search(
   
 
   
-

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] ldap: option to start even when connecting to ldap server fails (PR #3747)

2024-02-09 Thread Henning Westerholt via sr-dev
Merged #3747 into master.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3747#event-11755284442
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] ldap: option to start even when connecting to ldap server fails (PR #3747)

2024-02-09 Thread Henning Westerholt via sr-dev
Thanks for the feedback, merged

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3747#issuecomment-1935535310
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:6918c9e3: modules: readme files regenerated - ldap ... [skip ci]

2024-02-09 Thread Kamailio Dev via sr-dev
Module: kamailio
Branch: master
Commit: 6918c9e34b826f8d8c7fb1746851055fa35f8ece
URL: 
https://github.com/kamailio/kamailio/commit/6918c9e34b826f8d8c7fb1746851055fa35f8ece

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2024-02-09T10:01:34+01:00

modules: readme files regenerated - ldap ... [skip ci]

---

Modified: src/modules/ldap/README

---

Diff:  
https://github.com/kamailio/kamailio/commit/6918c9e34b826f8d8c7fb1746851055fa35f8ece.diff
Patch: 
https://github.com/kamailio/kamailio/commit/6918c9e34b826f8d8c7fb1746851055fa35f8ece.patch

---

diff --git a/src/modules/ldap/README b/src/modules/ldap/README
index 921f45822f1..d69005f864e 100644
--- a/src/modules/ldap/README
+++ b/src/modules/ldap/README
@@ -31,6 +31,7 @@ Christian Schlatter
 4. Parameters
 
   4.1. config_file (string)
+  4.2. connect_mode (int)
 
 5. Functions
 
@@ -82,12 +83,13 @@ Christian Schlatter
1.6. ldap_client_bind_timeout example
1.7. Example LDAP Configuration File
1.8. config_file parameter usage
-   1.9. Example Usage of ldap_url
-   1.10. Example Usage
+   1.9. Set connect_mode parameter
+   1.10. Example Usage of ldap_url
1.11. Example Usage
1.12. Example Usage
1.13. Example Usage
1.14. Example Usage
+   1.15. Example Usage
2.1. Example code fragment to load LDAP module API
2.2. Example LDAP module API function call
 
@@ -114,6 +116,7 @@ Chapter 1. Admin Guide
4. Parameters
 
 4.1. config_file (string)
+4.2. connect_mode (int)
 
5. Functions
 
@@ -418,6 +421,7 @@ ldap_client_bind_timeout = 500
 4. Parameters
 
4.1. config_file (string)
+   4.2. connect_mode (int)
 
 4.1. config_file (string)
 
@@ -428,6 +432,17 @@ ldap_client_bind_timeout = 500
Example 1.8. config_file parameter usage
 modparam("ldap", "config_file", "/usr/local/etc/kamailio/ldap.ini")
 
+4.2. connect_mode (int)
+
+   Control if the module must stop loading when connecting to server fails
+   during start up. Values: 0 - stop loading; 1 - continue even if
+   connecting to database server fails..
+
+   Default value: 0
+
+   Example 1.9. Set connect_mode parameter
+modparam("ldap", "connect_mode", 1)
+
 5. Functions
 
5.1. ldap_search(ldap_url)
@@ -458,7 +473,7 @@ modparam("ldap", "config_file", 
"/usr/local/etc/kamailio/ldap.ini")
   Kamailio pseudo variables and AVPs included in ldap_url do get
   substituted with their value.
 
-  Example 1.9. Example Usage of ldap_url
+  Example 1.10. Example Usage of ldap_url
 
   Search with LDAP session named sipaccounts, base
   ou=sip,dc=example,dc=com, one level deep using search filter
@@ -492,7 +507,7 @@ ldap://ldap_1/dc=example,dc=com?
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, and ONREPLY_ROUTE.
 
-   Example 1.10. Example Usage
+   Example 1.11. Example Usage
 ...
 # ldap search
 if (!ldap_search("ldap://sipaccounts/ou=sip,dc=example,dc=com??one?(cn=$rU)"))
@@ -570,7 +585,7 @@ ldap_result("telephoneNumber/$avp(s:tel_number)");
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, and ONREPLY_ROUTE.
 
-   Example 1.11. Example Usage
+   Example 1.12. Example Usage
 ...
 
 # ldap_search call
@@ -639,7 +654,7 @@ ldap_result("SIPIdentitySIPURI/$avp(i:10)", 
"/^[^@]+@(.+)$/\1/");
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, and ONREPLY_ROUTE.
 
-   Example 1.12. Example Usage
+   Example 1.13. Example Usage
 ...
 # ldap_search call
 ...
@@ -688,7 +703,7 @@ if (!ldap_result_check("sn/$ru", "/^sip:([^@]).*$/\1/"))
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, and ONREPLY_ROUTE.
 
-   Example 1.13. Example Usage
+   Example 1.14. Example Usage
 ...
 # ldap_search call
 ...
@@ -745,7 +760,7 @@ if (ldap_result_next())
This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
BRANCH_ROUTE, and ONREPLY_ROUTE.
 
-   Example 1.14. Example Usage
+   Example 1.15. Example Usage
 ...
 if (!ldap_filter_url_encode("cn=$avp(s:name)", "$avp(s:name_esc)"))
 {

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] tools/kemi: update kemi_mock for python (PR #3751)

2024-02-09 Thread tsearle via sr-dev
Merged #3751 into master.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3751#event-11755578156
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:3e1a7bb5: tools/kemi: update kemi_mock for python (#3751)

2024-02-09 Thread GitHub via sr-dev
Module: kamailio
Branch: master
Commit: 3e1a7bb5f6143383b1f486b8c67c3bf97cb32a3f
URL: 
https://github.com/kamailio/kamailio/commit/3e1a7bb5f6143383b1f486b8c67c3bf97cb32a3f

Author: tsearle 
Committer: GitHub 
Date: 2024-02-09T10:17:58+01:00

tools/kemi: update kemi_mock for python (#3751)

fixes code generation when python keywords are uses
fixes formating issues of generated code
fixes crash from pv.setl reporting parameters as null instead of 'none'

---

Modified: misc/tools/kemi/python_mock/kemi_mock.py
Modified: misc/tools/kemi/python_mock/test.py

---

Diff:  
https://github.com/kamailio/kamailio/commit/3e1a7bb5f6143383b1f486b8c67c3bf97cb32a3f.diff
Patch: 
https://github.com/kamailio/kamailio/commit/3e1a7bb5f6143383b1f486b8c67c3bf97cb32a3f.patch

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


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

2024-02-09 Thread Henning Westerholt via sr-dev
@space88man thanks for the work on this topic. It is great that there is then a 
way from version 5.7.4 and forward to restore the previous behaviour, 
especially in the stable branch.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3745#issuecomment-1935946213
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


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

2024-02-09 Thread Henning Westerholt via sr-dev
Hello Richard,

thanks for working on this topic and providing a way to control this new 
protection mechanism depending on the requirements and age of systems etc..

Cheers,

Henning

From: Richard Chan via sr-dev 
Sent: Dienstag, 6. Februar 2024 12:20
To: mico...@gmail.com
Cc: Kamailio (SER) - Development Mailing List ; 
Richard Chan 
Subject: [sr-dev] Re: git:master:ba921b21: core/rthread.h: add prototype for db 
queries

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 process_no = 0 (main process)
 - default when enable_tls = yes

2: thread-wrapper on for all processes

Now the behaviour for the thread wrappers can be

/* pseudo-code
*  fn is the wrapped function */
run_thread (fn, ...)
{
int flag = cfg_get_tls_threads();
if (likely(flag == 0 || (flag == 1 && process_no != 0))) {
   return fn(...) ; // execute wrapped function directly - no thread
} else { /* flag == 2 ||( flag == 1 && process_no == 0) */
/*
 ** run fn in thread
*/
   }

I am not familiar with the bison grammar or parsing of the global config file — 
I would need your help (or another developer familiar with the core parsing) to 
set this up. When this cfg flag is available I can change all the 
thread-runners to check the global config.
With respect to 5.7 - stable branch - unfortunately due to the changes to 
OpenSSL 3 it is broken - #3635 - with more load there will be double-free 
errors; #3727 - cannot load tls and db module (even if the db module does not 
use TLS it may initialize OpenSSL).

The changes while more intrusive than usual are the minimal viable set of 
changes. With the commits on 5.7 you can have a TLS-enabled /etc/kamailio.cfg 
using OpenSSL 3 and load a db module (with or without TLS). To reiterate - even 
a  pure in-memory TLS proxy without database is subject to double free 
corruption.

To make the changes less intrusive: backport the global enable_tls_threads 
config to 5.7.5+ or make the thread wrappers check for process_no = 0. The 
latter (and more minimal) change would mean that all Kamailio workers will have 
the existing behaviour and only process_no = 0 tries to run thread wrappers.

Options:
A 5.8-pre:. add a global config enable_tls_threads to 5.8-pre (need help on 
this part - the thread wrappers I would be able to fix)
B. 5.7.5+: backport A to 5.7 OR check for process_no = 0 in thread 
wrappers(only change in parent process, no change to worker processes)

Let me know what you think - thanks for the comments.

Cheers
Richard











___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] file_out: Add support for extensions and interval per file. (PR #3750)

2024-02-09 Thread Xenofon Karamanos via sr-dev
Merged #3750 into master.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3750#event-11758565776
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] file_out: Add support for extensions and interval per file. (PR #3750)

2024-02-09 Thread Xenofon Karamanos via sr-dev
Thanks for the feedback! Merged!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3750#issuecomment-1936023818
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] [pua] reginfo_increase_version does nothing (Issue #3234)

2024-02-09 Thread Matteo via sr-dev
Sorry for the late reply, but seems good to me!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3234#issuecomment-1936214221
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] [pua] reginfo_increase_version does nothing (Issue #3234)

2024-02-09 Thread Henning Westerholt via sr-dev
Thanks for the feedback, close it then.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3234#issuecomment-1936227046
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Re: [kamailio/kamailio] [pua] reginfo_increase_version does nothing (Issue #3234)

2024-02-09 Thread Henning Westerholt via sr-dev
Closed #3234 as completed.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3234#event-11760099761
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] [kamailio/kamailio] User id conflict between kamctl et. al. and Linux OS installations (Issue #3752)

2024-02-09 Thread Mark Warren via sr-dev


### Description


After installing kamailio on Ubuntu (20.04 and 22.04) using normal kamailio.org 
instructions, things work fine.  However, a developer is working on a large 
project  as root, and occasionally restarts kamailio with the command "kamctl 
", rather than the OS command "systemctl 
 kamailio".  After that, any attempt to restart or check 
status using systmectl fails, and rebooting the server occasionally fails to 
restart kamailio.

### Troubleshooting

 Reproduction

Install ubuntu 22.04 or 20.04.  When up and running, try this:
`systemctl status kamailio` (everything looks good)
`ps -C kamailio -o comm,uid,euid,pid,ppid` (all happy, Kamailio running as user 
kamailio)
`kamctl restart`
`ps -C kamailio -o comm,uid,euid,pid,ppid` (Yes it's running, but as root, not 
kamailio)
`systemctl status kamailio` (FAILS, 20.04 reports "Failed to start", 22.04 
reports "kamailio.service: Deactivated successfully")
`systemctl restart kamailio` (FAILS - same reports as preceding "status" 
command)

 Debugging Data





 Log Messages


After command systemctl restart kamailio:
```
Feb  9 18:30:02 usdc2-lab-drproxy02 kamailio: INFO:  
[core/sctp_core.c:74]: sctp_core_check_support(): SCTP API not enabled - if you 
want to use it, load sctp module
Feb  9 18:30:02 usdc2-lab-drproxy02 kamailio: INFO:  
[core/tcp_main.c:5042]: init_tcp(): using epoll_lt as the io watch method (auto 
detected)
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO: rr 
[../outbound/api.h:52]: ob_load_api(): unable to import bind_ob - maybe module 
is not loaded
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO: rr 
[rr_mod.c:177]: mod_init(): outbound module not available
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO: auth 
[auth_mod.c:345]: mod_init(): qop set, but nonce-count (nc_enabled) support 
disabled
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[main.c:2779]: main(): processes (at least): 32 - shm size: 67108864 - pkg 
size: 8388608
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 
212992
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[core/udp_server.c:154]: probe_max_receive_buffer(): SO_RCVBUF is initially 
212992
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[core/udp_server.c:206]: probe_max_receive_buffer(): SO_RCVBUF is finally 425984
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: ERROR:  
[core/tcp_main.c:3162]: tcp_init(): bind(c, 0x7f49b0475c74, 16) on 
127.0.0.1:5060 : Address already in use
Feb  9 18:30:02 usdc2-lab-drproxy02 /usr/sbin/kamailio[2388]: INFO:  
[core/sctp_core.c:53]: sctp_core_destroy(): SCTP API not initialized
```

 SIP Traffic



```
(paste your sip traffic here)
```

### Possible Solutions

Modify kamctl et. al. to call systemctl for start, stop, restart commands.  
Alternatively have kamctl call setuid() before start, restart, stop commands.

### Additional Information

  * **Kamailio Version** - output of `kamailio -v`
On ubuntu 20.04:
```
version: kamailio 5.3.2 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, 
DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, 
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, 
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, 
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 9.2.1 
```
For ubuntu 22.04:
```
version: kamailio 5.6.5 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, 
USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, 
DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, 
USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLOCKLIST, HAVE_RESOLV_RES, 
TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, 
BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 11.4.0
```

* **Operating System**:

For ubuntu 22.04:
```
root@my_22.04_ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:Ubuntu 22.04.3 LTS
Release:22.04
Codename:   jammy
root@my_22.04_ubuntu:~# uname -a
Linux my_22.04_ubuntu 5.15.0-94-generic #104-Ubuntu SMP Tue Jan 9 15:25:40 UTC 
2024 x86_64 x86_64 x86_64 GNU/Linux
root@my_22.04_ubuntu:~#
```
For ubuntu 20.04
```
root@my_20.04_ubuntu:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description

[sr-dev] [kamailio/kamailio] registrar: adding contact and UA to xavp_cfg (Issue #3753)

2024-02-09 Thread nirvanr-nextiva via sr-dev
### Description

We are using Kamailio as a 'mid-registrar', and saving the location record (i.e 
calling registrar.save()) in the reply-route depending on received status code 
from other registrar.  

We noticed the saved location record had the contact URI (incl. instance id) 
and UA from response message; instead we would like to use the contact and UA 
from the original request.  

This feature change is similar to what was added for `tcpconn_id` in PR: 
https://github.com/kamailio/kamailio/pull/3430.  i.e. we would set the 
request's contact URI and UA in `xavp_cfg` variable.  Then `registrar.save.c` 
would use the contact and UA from `xavp_cfg`.

Thanks.




-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3753
You are receiving this because you are subscribed to this thread.

Message ID: ___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:44fcca35: file_out: Update docs

2024-02-09 Thread Xenofon Karamanos via sr-dev
Module: kamailio
Branch: master
Commit: 44fcca3596438841c0752d39dedfbe7de07a30c5
URL: 
https://github.com/kamailio/kamailio/commit/44fcca3596438841c0752d39dedfbe7de07a30c5

Author: Xenofon Karamanos 
Committer: Xenofon Karamanos 
Date: 2024-02-09T16:20:08+02:00

file_out: Update docs

---

Modified: src/modules/file_out/doc/file_out_admin.xml

---

Diff:  
https://github.com/kamailio/kamailio/commit/44fcca3596438841c0752d39dedfbe7de07a30c5.diff
Patch: 
https://github.com/kamailio/kamailio/commit/44fcca3596438841c0752d39dedfbe7de07a30c5.patch

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] git:master:62e3069f: file_out: Add support for multiple files, extensions and interval

2024-02-09 Thread Xenofon Karamanos via sr-dev
Module: kamailio
Branch: master
Commit: 62e3069f484ea28745bce93dd5e1e7634c336f6b
URL: 
https://github.com/kamailio/kamailio/commit/62e3069f484ea28745bce93dd5e1e7634c336f6b

Author: Xenofon Karamanos 
Committer: Xenofon Karamanos 
Date: 2024-02-09T16:20:08+02:00

file_out: Add support for multiple files, extensions and interval

---

Modified: src/modules/file_out/file_out.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/62e3069f484ea28745bce93dd5e1e7634c336f6b.diff
Patch: 
https://github.com/kamailio/kamailio/commit/62e3069f484ea28745bce93dd5e1e7634c336f6b.patch

___
Kamailio (SER) - Development Mailing List
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org


[sr-dev] Build failed in Jenkins: kamailiodev-nightly-binaries » amd64,jammy #2597

2024-02-09 Thread kamailio--- via sr-dev
See 


Changes:


--
[...truncated 150.85 KB...]
rm -f TAGS tags *.dbg .*.swp
rm -f rtp_media_server.d rtp_media_server.d rtp_media_server.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f rtpengine.d rtpengine.d rtpengine.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f rtpproxy.d rtpproxy.d rtpproxy.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f ruxc.d ruxc.d ruxc.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sanity.d sanity.d sanity.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sca.d sca.d sca.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sctp.d sctp.d sctp.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sdpops.d sdpops.d sdpops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f seas.d seas.d seas.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f secfilter.d secfilter.d secfilter.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f secsipid.d secsipid.d secsipid.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f secsipid_proc.d secsipid_proc.d secsipid_proc.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sipcapture.d sipcapture.d sipcapture.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sipdump.d sipdump.d sipdump.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sipjson.d sipjson.d sipjson.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f siprepo.d siprepo.d siprepo.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sipt.d sipt.d sipt.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f siptrace.d siptrace.d siptrace.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f siputils.d siputils.d siputils.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sl.d sl.d sl.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f slack.d slack.d slack.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sms.d sms.d sms.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f smsops.d smsops.d smsops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f snmpstats.d snmpstats.d snmpstats.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f speeddial.d speeddial.d speeddial.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sqlops.d sqlops.d sqlops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f ss7ops.d ss7ops.d ss7ops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sst.d sst.d sst.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f statistics.d statistics.d statistics.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f statsc.d statsc.d statsc.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f statsd.d statsd.d statsd.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f stirshaken.d stirshaken.d stirshaken.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f stun.d stun.d stun.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f sworker.d sworker.d sworker.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f systemdops.d systemdops.d systemdops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tcpops.d tcpops.d tcpops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f textops.d textops.d textops.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f textopsx.d textopsx.d textopsx.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f timer.d timer.d timer.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tls.d tls.d tls.d *~
Makefile:65: sources = tls_cfg.c tls_config.c tls_ct_wrq.c tls_domain.c 
tls_init.c tls_rpc.c tls_select.c tls_server.c tls_util.c tls_verify.c 
tls_wolfssl_mod.c , auto_gen = , objs = tls_cfg.o tls_config.o tls_ct_wrq.o 
tls_domain.o tls_init.o tls_rpc.o tls_select.o tls_server.o tls_util.o 
tls_verify.o tls_wolfssl_mod.o
rm -f TAGS tags *.dbg .*.swp
rm -f tls_wolfssl.d tls_wolfssl.d tls_wolfssl.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tlsa.d tlsa.d tlsa.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tm.d tm.d tm.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tmrec.d tmrec.d tmrec.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tmx.d tmx.d tmx.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f topoh.d topoh.d topoh.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f topos.d topos.d topos.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f topos_redis.d topos_redis.d topos_redis.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f tsilo.d tsilo.d tsilo.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uac.d uac.d uac.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uac_redirect.d uac_redirect.d uac_redirect.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uid_auth_db.d uid_auth_db.d uid_auth_db.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uid_avp_db.d uid_avp_db.d uid_avp_db.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uid_domain.d uid_domain.d uid_domain.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uid_gflags.d uid_gflags.d uid_gflags.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uid_uri_db.d uid_uri_db.d uid_uri_db.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uri_db.d uri_db.d uri_db.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f userblocklist.d userblocklist.d userblocklist.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f usrloc.d usrloc.d usrloc.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f utils.d utils.d utils.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f uuid.d uuid.d uuid.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f websocket.d websocket.d websocket.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f xcap_client.d xcap_client.d xcap_client.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f xcap_server.d xcap_server.d xcap_server.d *~
rm -f TAGS tags *.dbg .*.swp
rm -f xhttp.d xhttp.d xhttp.d *~
rm -f TAGS tags *.dbg .*.s