[sr-dev] git:master:9c336764: core: cast to variable type action_u_t*

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 9c336764f567c873e25792efd813be1806d215d3
URL: 
https://github.com/kamailio/kamailio/commit/9c336764f567c873e25792efd813be1806d215d3

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T13:01:18+01:00

core: cast to variable type action_u_t*

---

Modified: src/core/sr_module.c

---

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

---

diff --git a/src/core/sr_module.c b/src/core/sr_module.c
index 9660afce320..d67e7e44af3 100644
--- a/src/core/sr_module.c
+++ b/src/core/sr_module.c
@@ -1092,7 +1092,7 @@ action_u_t *fixup_get_param(
 {
action_u_t *a;
/* cur_param points to a->u.string, get pointer to a */
-   a = (void *)((char *)cur_param - offsetof(action_u_t, u.string));
+   a = (action_u_t *)((char *)cur_param - offsetof(action_u_t, u.string));
return a + required_param_no - cur_param_no;
 }
 
@@ -1114,7 +1114,7 @@ int fixup_get_param_count(void **cur_param, int 
cur_param_no)
 action_param_type *fixup_get_param_ptype(void **param)
 {
action_u_t *a;
-   a = (void *)((char *)param - offsetof(action_u_t, u.string));
+   a = (action_u_t *)((char *)param - offsetof(action_u_t, u.string));
return &a->type;
 }
 

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


[sr-dev] git:master:1b81cbc9: tm: use helper macro to get structure address from member

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 1b81cbc9f79354aae604e33ac978dece95c0326c
URL: 
https://github.com/kamailio/kamailio/commit/1b81cbc9f79354aae604e33ac978dece95c0326c

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T12:25:56+01:00

tm: use helper macro to get structure address from member

---

Modified: src/modules/tm/timer.c

---

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

---

diff --git a/src/modules/tm/timer.c b/src/modules/tm/timer.c
index a2ebb434ccb..c0cbade59d6 100644
--- a/src/modules/tm/timer.c
+++ b/src/modules/tm/timer.c
@@ -486,8 +486,8 @@ ticks_t retr_buf_handler(ticks_t ticks, struct timer_ln 
*tl, void *p)
unsigned long crt_retr_interval_ms;
struct cell *t;
 
-   rbuf = (struct retr_buf *)((void *)tl
-  - (void *)(&((struct 
retr_buf *)0)->timer));
+   rbuf = ksr_container_of(tl, struct retr_buf, timer);
+
membar_depends(); /* to be on the safe side */
t = rbuf->my_T;
 

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


[sr-dev] git:master:9db18bc4: dialog: check first the size

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 9db18bc48bff0d230e66973a45c8e72e1b7744e8
URL: 
https://github.com/kamailio/kamailio/commit/9db18bc48bff0d230e66973a45c8e72e1b7744e8

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T10:07:39+01:00

dialog: check first the size

---

Modified: src/modules/dialog/dlg_var.c

---

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

---

diff --git a/src/modules/dialog/dlg_var.c b/src/modules/dialog/dlg_var.c
index 10df9e90c3e..db5f61c4e05 100644
--- a/src/modules/dialog/dlg_var.c
+++ b/src/modules/dialog/dlg_var.c
@@ -667,8 +667,8 @@ int pv_set_dlg_ctx(
break;
case 4:
if(val && val->flags & PV_VAL_STR) {
-   if(val->rs.s[val->rs.len] == '\0'
-   && val->rs.len < 
DLG_TOROUTE_SIZE) {
+   if(val->rs.len < DLG_TOROUTE_SIZE
+   && val->rs.s[val->rs.len] == 
'\0') {
_dlg_ctx.to_route = 
route_lookup(&main_rt, val->rs.s);
strcpy(_dlg_ctx.to_route_name, 
val->rs.s);
} else {

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


[sr-dev] git:master:e614575d: sca: check return for snprintf()

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: e614575d53f5e3b7d3a4796a445728f862e60916
URL: 
https://github.com/kamailio/kamailio/commit/e614575d53f5e3b7d3a4796a445728f862e60916

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T09:53:48+01:00

sca: check return for snprintf()

---

Modified: src/modules/sca/sca_call_info.c

---

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

---

diff --git a/src/modules/sca/sca_call_info.c b/src/modules/sca/sca_call_info.c
index a1af143c017..2694239cb9f 100644
--- a/src/modules/sca/sca_call_info.c
+++ b/src/modules/sca/sca_call_info.c
@@ -112,6 +112,7 @@ static int sca_call_info_header_append_appearances(
str state_str;
int slot_idx;
int len = -1;
+   int l1 = -1;
int usedlen = -1;
 
slot_idx =
@@ -153,9 +154,14 @@ static int sca_call_info_header_append_appearances(
sca_appearance_state_to_str(app->state, &state_str);
 
// state_str.s is a nul-terminated string literal
-   len += snprintf(hdrbuf + len, maxlen - len,
+   l1 = snprintf(hdrbuf + len, maxlen - len,
">;appearance-index=%d;appearance-state=%s", 
app->index,
state_str.s);
+   if(l1 < 0 || l1 >= maxlen - len) {
+   LM_ERR("failed to print the header\n");
+   return -1;
+   }
+   len += l1;
 
if(!SCA_STR_EMPTY(&app->uri)) {
hdrbuf[len] = ';';

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


[sr-dev] git:master:6aa967eb: debugger: updated dbg_fixup_get_action() to use helper macro for structure address

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 6aa967eb82fa9092f0a32101e44798e4d66fc708
URL: 
https://github.com/kamailio/kamailio/commit/6aa967eb82fa9092f0a32101e44798e4d66fc708

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T12:54:25+01:00

debugger: updated dbg_fixup_get_action() to use helper macro for structure 
address

---

Modified: src/modules/debugger/debugger_mod.c

---

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

---

diff --git a/src/modules/debugger/debugger_mod.c 
b/src/modules/debugger/debugger_mod.c
index 3b3b7922dd2..b6248644d65 100644
--- a/src/modules/debugger/debugger_mod.c
+++ b/src/modules/debugger/debugger_mod.c
@@ -320,12 +320,13 @@ static int w_dbg_dump(struct sip_msg *msg, char *mask, 
char *level)
  */
 static struct action *dbg_fixup_get_action(void **param, int param_no)
 {
-   struct action *ac, ac2;
-   action_u_t *au, au2;
+   cfg_action_t *ac;
+   action_u_t *au;
/* param points to au->u.string, get pointer to au */
-   au = (void *)((char *)param - ((char *)&au2.u.string - (char *)&au2));
+   au = ksr_container_of(param, action_u_t, u.string);
au = au - 1 - param_no;
-   ac = (void *)((char *)au - ((char *)&ac2.val - (char *)&ac2));
+   /* au points to ac->val, get pointer to ac */
+   ac = ksr_container_of(au, cfg_action_t, val);
return ac;
 }
 

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


[sr-dev] git:master:ad2e976d: core: helper macro to get enclosing struture from a member address

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: ad2e976d9200bd68c88e4a78edc0d250ba4045ba
URL: 
https://github.com/kamailio/kamailio/commit/ad2e976d9200bd68c88e4a78edc0d250ba4045ba

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T11:31:56+01:00

core: helper macro to get enclosing struture from a member address

---

Modified: src/core/ut.h

---

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

---

diff --git a/src/core/ut.h b/src/core/ut.h
index 8e2e4f0d8f0..ff8d964e559 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -33,6 +33,7 @@
 #include 
 #include 
 #include 
+#include 
 #include 
 #include 
 #include 
@@ -143,6 +144,8 @@
 
 #define is_in_str(p, in) (p < in->s + in->len && *p)
 
+#define ksr_container_of(ptr, type, member) \
+   ((type *)((char *)(ptr)-offsetof(type, member)))
 
 /* links a value to a msgid */
 struct msgid_var

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


[sr-dev] git:master:75a7d0d8: core: route struct - use helper macro to get action address

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 75a7d0d8b1340d292aba9b589263619f5a6e11c1
URL: 
https://github.com/kamailio/kamailio/commit/75a7d0d8b1340d292aba9b589263619f5a6e11c1

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T14:19:04+01:00

core: route struct - use helper macro to get action address

---

Modified: src/core/route_struct.c

---

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

---

diff --git a/src/core/route_struct.c b/src/core/route_struct.c
index 654e588beb3..fa43b498e75 100644
--- a/src/core/route_struct.c
+++ b/src/core/route_struct.c
@@ -561,11 +561,12 @@ void print_actions(struct action *a)
  */
 struct action *get_action_from_param(void **param, int param_no)
 {
-   struct action *ac, ac2;
-   action_u_t *au, au2;
+   cfg_action_t *ac;
+   action_u_t *au;
/* param points to au->u.string, get pointer to au */
-   au = (void *)((char *)param - ((char *)&au2.u.string - (char *)&au2));
+   au = ksr_container_of(param, action_u_t, u.string);
au = au - 1 - param_no;
-   ac = (void *)((char *)au - ((char *)&ac2.val - (char *)&ac2));
+   /* au points to ac->val, get pointer to ac */
+   ac = ksr_container_of(au, cfg_action_t, val);
return ac;
 }

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


[sr-dev] Re: [kamailio/kamailio] Dialog DMQ sync: Timer needs fixing, firing on wrong node! (Issue #3656)

2023-12-11 Thread Benoît Panizzon via sr-dev
Just a short warning to anyone considering using my work-around. I experienced 
dialog data corruption which could be due to this or maybe the duplicate key. I 
reverted this change to my config.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3656#issuecomment-1850241337
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] Dialogs loaded from the DB are no longer saved. (Issue #3669)

2023-12-11 Thread carstenbock via sr-dev
The question is, why do you expect them to be saved again into the DB, if the 
dialogs were not modified? In your scenario the content from loading seems to 
be the same as what you want to save afterwards.
This does not look like a bug to me

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3669#issuecomment-1850297403
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] utils: Prefer `printf` over `echo -e`. (PR #3671)

2023-12-11 Thread Sean Bright via sr-dev
On Ubuntu, `/bin/sh` defaults to `dash` whose built-in `echo` command does not 
support the `-e` flag. `printf`, on the other hand, supports backslash escapes 
by default so we use that instead.

In passing, also clean up some messy ANSI escape codes.

You can view, comment on, or merge this pull request online at:

  https://github.com/kamailio/kamailio/pull/3671

-- Commit Summary --

  * utils: Prefer `printf` over `echo -e`.

-- File Changes --

M pkg/kamailio/obs/kamailio.init (2)
M utils/kamctl/kamctl (2)
M utils/kamctl/kamctl.base (10)
M utils/kamctl/kamdbctl (6)
M utils/kamctl/kamdbctl.base (10)

-- Patch Links --

https://github.com/kamailio/kamailio/pull/3671.patch
https://github.com/kamailio/kamailio/pull/3671.diff

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3671
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] utils: Prefer `printf` over `echo -e`. (PR #3671)

2023-12-11 Thread Sean Bright via sr-dev
Here's a before-and-after. This is on a default install of Ubuntu 22.04:

![image](https://github.com/kamailio/kamailio/assets/114601/df0d2ad0-b342-4b26-8ef9-53e90bb70544)



-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3671#issuecomment-1850326039
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:7eb96925: siptrace: check sscan() return value

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 7eb96925c4bb4664cce589050dff3e1c8b98b6f0
URL: 
https://github.com/kamailio/kamailio/commit/7eb96925c4bb4664cce589050dff3e1c8b98b6f0

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T15:51:01+01:00

siptrace: check sscan() return value

---

Modified: src/modules/siptrace/siptrace_send.c

---

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

---

diff --git a/src/modules/siptrace/siptrace_send.c 
b/src/modules/siptrace/siptrace_send.c
index bac4ad04779..d8a5f974bb3 100644
--- a/src/modules/siptrace/siptrace_send.c
+++ b/src/modules/siptrace/siptrace_send.c
@@ -158,7 +158,8 @@ int sip_trace_xheaders_read(struct _siptrace_data *sto)
char *searchend = NULL;
char *eoh = NULL;
char *xheaders = NULL;
-   long long unsigned int tv_sec, tv_usec;
+   long long unsigned int tv_sec = 0, tv_usec = 0;
+   int rv = 0;
 
if(trace_xheaders_read == 0) {
return 0;
@@ -202,16 +203,17 @@ int sip_trace_xheaders_read(struct _siptrace_data *sto)
}
 
// Parse the x-headers: scanf()
-   if(sscanf(xheaders,
-  "\r\n"
-  "X-Siptrace-Fromip: %50s\r\n"
-  "X-Siptrace-Toip: %50s\r\n"
-  "X-Siptrace-Time: %llu %llu\r\n"
-  "X-Siptrace-Method: %50s\r\n"
-  "X-Siptrace-Dir: %3s",
-  sto->fromip.s, sto->toip.s, &tv_sec, &tv_usec, 
sto->method.s,
-  sto->dir)
-   == EOF) {
+   rv = sscanf(xheaders,
+   "\r\n"
+   "X-Siptrace-Fromip: %50s\r\n"
+   "X-Siptrace-Toip: %50s\r\n"
+   "X-Siptrace-Time: %llu %llu\r\n"
+   "X-Siptrace-Method: %50s\r\n"
+   "X-Siptrace-Dir: %3s",
+   sto->fromip.s, sto->toip.s, &tv_sec, &tv_usec, 
sto->method.s,
+   sto->dir);
+
+   if(rv == EOF || rv < 6) {
LM_ERR("malformed x-headers\n");
goto erroraftermalloc;
}

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


[sr-dev] git:master:af49deac: jsonrpcs: doc - fix example for tcp_socket parameter

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: af49deacad22b9f2d6502649002d51ad2423f005
URL: 
https://github.com/kamailio/kamailio/commit/af49deacad22b9f2d6502649002d51ad2423f005

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T17:08:08+01:00

jsonrpcs: doc - fix example for tcp_socket parameter

---

Modified: src/modules/jsonrpcs/doc/jsonrpcs_admin.xml

---

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

---

diff --git a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml 
b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
index 0e39676edd7..ab8aee4fcd0 100644
--- a/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
+++ b/src/modules/jsonrpcs/doc/jsonrpcs_admin.xml
@@ -413,7 +413,7 @@ modparam("jsonrpcs", "dgram_timeout", 2000)
Set tcp_socket parameter

 ...
-modparam("jsonrpcs", "tcp_socket", "udp:1.2.3.4:5042")
+modparam("jsonrpcs", "tcp_socket", "tcp:1.2.3.4:5042")
 ...
 

@@ -638,4 +638,3 @@ rm /tmp/kamailio_jsonrpc_reply_fifo

 
 
-

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


[sr-dev] git:master:1b7ea63d: core: main - check limit for values of -m and -M

2023-12-11 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: 1b7ea63df655246b5b6ca123d9ed25d1764d9402
URL: 
https://github.com/kamailio/kamailio/commit/1b7ea63df655246b5b6ca123d9ed25d1764d9402

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2023-12-11T15:37:26+01:00

core: main - check limit for values of -m and -M

---

Modified: src/main.c

---

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

---

diff --git a/src/main.c b/src/main.c
index db694381421..3aa79b73d91 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2094,6 +2094,7 @@ int main(int argc, char **argv)
struct name_lst *n_lst;
char *p;
struct stat st = {0};
+   long l1 = 0;
 
 #define KSR_TBUF_SIZE 512
char tbuf[KSR_TBUF_SIZE];
@@ -2181,12 +2182,20 @@ int main(int argc, char **argv)
fprintf(stderr, "bad private mem 
size\n");
goto error;
}
-   pkg_mem_size = strtol(optarg, &tmp, 10) * 1024 
* 1024;
+   l1 = strtol(optarg, &tmp, 10);
if(tmp && (*tmp)) {
fprintf(stderr, "bad private mem size 
number: -M %s\n",
optarg);
goto error;
-   };
+   }
+   /* safety check for upper limit of 1TB */
+   if(l1 <= 0 || l1 > 1024L * 1024) {
+   fprintf(stderr,
+   "our of limits private 
mem size number: -M %s\n",
+   optarg);
+   goto error;
+   }
+   pkg_mem_size = 1024UL * 1024 * l1;
break;
case 'x':
sr_memmng_shm = optarg;
@@ -2315,11 +2324,18 @@ int main(int argc, char **argv)
fprintf(stderr, "bad shared mem 
size\n");
goto error;
}
-   shm_mem_size = strtol(optarg, &tmp, 10) * 1024 
* 1024;
+   l1 = strtol(optarg, &tmp, 10);
if(tmp && (*tmp)) {
fprintf(stderr, "bad shmem size number: 
-m %s\n", optarg);
goto error;
-   };
+   }
+   /* safety check for upper limit of 16TB */
+   if(l1 <= 0 || l1 > 16L * 1024 * 1024) {
+   fprintf(stderr, "our of limits shmem 
size number: -m %s\n",
+   optarg);
+   goto error;
+   }
+   shm_mem_size = 1024UL * 1024 * l1;
LM_INFO("shared memory: %ld bytes\n", 
shm_mem_size);
break;
case 'd':

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


[sr-dev] git:master:ee2ad77a: modules: readme files regenerated - jsonrpcs ... [skip ci]

2023-12-11 Thread Kamailio Dev via sr-dev
Module: kamailio
Branch: master
Commit: ee2ad77aa71326d355e299625ebbd31f67f8ed20
URL: 
https://github.com/kamailio/kamailio/commit/ee2ad77aa71326d355e299625ebbd31f67f8ed20

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2023-12-11T17:17:05+01:00

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

---

Modified: src/modules/jsonrpcs/README

---

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

---

diff --git a/src/modules/jsonrpcs/README b/src/modules/jsonrpcs/README
index b1be2506b26..d4aa520a5ea 100644
--- a/src/modules/jsonrpcs/README
+++ b/src/modules/jsonrpcs/README
@@ -354,7 +354,7 @@ modparam("jsonrpcs", "dgram_timeout", 2000)
 
Example 1.14. Set tcp_socket parameter
 ...
-modparam("jsonrpcs", "tcp_socket", "udp:1.2.3.4:5042")
+modparam("jsonrpcs", "tcp_socket", "tcp:1.2.3.4:5042")
 ...
 
 5. Functions

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


[sr-dev] Re: [kamailio/kamailio] Dialogs loaded from the DB are no longer saved. (Issue #3669)

2023-12-11 Thread Dennis via sr-dev
Hi !

Yes, you are right, not modified, but as i said above - "when in some resonable 
short time kamailio shutdowned again with active dialogs loaded at startup", 
this can happend for example if i whant to modify scenario when do some 
mistake, or pod in cloud is migrated for some reason (stop in one location snd 
start in enother), all this can happend during long life dialog sessios.


-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3669#issuecomment-1850654380
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] github: [skip ci]: bump actions/stale from 8 to 9 (PR #3672)

2023-12-11 Thread dependabot[bot] via sr-dev
Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
Release notes

Sourced from actions/stale's releases.

v9.0.0

Breaking Changes

  1. Action is now stateful: If the action ends because of operations-per-run; then the next run will start from the first unprocessed issue skipping the issues processed during the previous run(s). The state is reset when all the issues are processed. This should be considered for scheduling workflow runs.
  2. Version 9 of this action updated the runtime to Node.js 20. All scripts are now run with Node.js 20 instead of Node.js 16 and are affected by any breaking changes between Node.js 16 and 20.

What Else Changed

  1. Performance optimization that removes unnecessary API calls by @​dsame; #1033; fixes #792
  2. ;
  3. Logs displaying current github API rate limit by @​dsame; #1032; addresses #1029
  4. ;

For more information, please read the action documentation and its section about statefulness

New Contributors

Full Changelog: https://github.com/actions/stale/compare/v8...v9.0.0

;
Changelog

Sourced from actions/stale's changelog.

Changelog

[7.0.0]

:warning: Breaking change :warning:

[6.0.1]

Update @​actions/core to v1.10.0 (#839;)

[6.0.0]

:warning: Breaking change :warning:

Issues/PRs default close-issue-reason is now not_planned(#789;)

[5.1.0]

Don't process stale issues right after they're marked stale [Add close-issue-reason option]#764#772; Various dependabot/dependency updates

4.1.0; (2021-07-14)

Features

  • [sr-dev] git:master:14e763fd: github: [skip ci]: bump actions/stale from 8 to 9
    Module: kamailio
    Branch: master
    Commit: 14e763fd15a846d4377214521cac06113ba6888d
    URL: 
    https://github.com/kamailio/kamailio/commit/14e763fd15a846d4377214521cac06113ba6888d
    
    Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Committer: Victor Seva 
    Date: 2023-12-12T00:24:42+01:00
    
    github: [skip ci]: bump actions/stale from 8 to 9
    
    Bumps [actions/stale](https://github.com/actions/stale) from 8 to 9.
    - [Release notes](https://github.com/actions/stale/releases)
    - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md)
    - [Commits](https://github.com/actions/stale/compare/v8...v9)
    
    ---
    updated-dependencies:
    - dependency-name: actions/stale
      dependency-type: direct:production
      update-type: version-update:semver-major
    ...
    
    Signed-off-by: dependabot[bot] 
    
    ---
    
    Modified: .github/workflows/issue_management.yml
    
    ---
    
    Diff:  
    https://github.com/kamailio/kamailio/commit/14e763fd15a846d4377214521cac06113ba6888d.diff
    Patch: 
    https://github.com/kamailio/kamailio/commit/14e763fd15a846d4377214521cac06113ba6888d.patch
    
    ---
    
    diff --git a/.github/workflows/issue_management.yml 
    b/.github/workflows/issue_management.yml
    index 0d0b2ef9aa5..ce4d061d033 100644
    --- a/.github/workflows/issue_management.yml
    +++ b/.github/workflows/issue_management.yml
    @@ -11,7 +11,7 @@ jobs:
       stale:
     runs-on: ubuntu-latest
     steps:
    -  - uses: actions/stale@v8
    +  - uses: actions/stale@v9
     with:
       stale-issue-message: 'This issue is stale because it has been open 6 
    weeks with no activity. Remove stale label or comment or this will be closed in 
    2 weeks.'
       stale-pr-message: 'This PR is stale because it has been open 6 weeks 
    with no activity. Remove stale label or comment or this will be closed in 2 
    weeks.'
    
    ___
    Kamailio (SER) - Development Mailing List
    To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
    
    

    [sr-dev] Re: [kamailio/kamailio] github: [skip ci]: bump actions/stale from 8 to 9 (PR #3672)

    Merged #3672 into master.
    
    -- 
    Reply to this email directly or view it on GitHub:
    https://github.com/kamailio/kamailio/pull/3672#event-11216917910
    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] Jenkins build is still unstable: kamailiodev-nightly-binaries » amd64,stretch #2549

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