[sr-dev] Re: [kamailio/kamailio] main: Add support for naming socket in cli (PR #3954)

2024-08-23 Thread Henning Westerholt via sr-dev
Resolved with the referenced commit, closing

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3954#issuecomment-2306692541
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] main: Add support for naming socket in cli (PR #3954)

2024-08-23 Thread Henning Westerholt via sr-dev
Closed #3954.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3954#event-13990730442
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:d44b13cd: core: main - add support for socket names as command line parameters

2024-08-23 Thread Henning Westerholt via sr-dev
Module: kamailio
Branch: master
Commit: d44b13cd91183e12aed1a3c5ee41f9d22ddac074
URL: 
https://github.com/kamailio/kamailio/commit/d44b13cd91183e12aed1a3c5ee41f9d22ddac074

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2024-08-23T09:28:24Z

core: main - add support for socket names as command line parameters

- format: [proto:]addr_lst[:port][/advaddr][/socket_name]
- example: -l udp:127.0.0.1:5060/1.1.1.1:5060/local
- Listening on: udp: 127.0.0.1:5060 name local advertise udp:1.1.1.1:5060
- based on a pull-request from Xenofon Karamanos (GH #3954)

---

Modified: src/main.c

---

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

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


[sr-dev] git:master:57144a26: core: add new function pkg_char_dup, similar as shm_char_dup but for PKG memory

2024-08-23 Thread Henning Westerholt via sr-dev
Module: kamailio
Branch: master
Commit: 57144a263680e86616dea49e9f2ca9f84a48d777
URL: 
https://github.com/kamailio/kamailio/commit/57144a263680e86616dea49e9f2ca9f84a48d777

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2024-08-23T09:26:06Z

core: add new function pkg_char_dup, similar as shm_char_dup but for PKG memory

---

Modified: src/core/ut.h

---

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

---

diff --git a/src/core/ut.h b/src/core/ut.h
index aa51108229b..31b45fe5b4d 100644
--- a/src/core/ut.h
+++ b/src/core/ut.h
@@ -1017,6 +1017,34 @@ static inline int pkg_str_dup(str *dst, const str *src)
return 0;
 }
 
+/**
+ * \brief Make a copy of a char pointer to a char pointer using pkg_malloc
+ * \param src source
+ * \return a pointer to the new allocated char on success, 0 on failure
+ */
+static inline char *pkg_char_dup(const char *src)
+{
+   char *rval;
+   int len;
+
+   if(!src) {
+   LM_ERR("NULL src or dst\n");
+   return NULL;
+   }
+
+   len = strlen(src) + 1;
+   rval = (char *)pkg_malloc(len);
+   if(!rval) {
+   PKG_MEM_ERROR;
+   return NULL;
+   }
+
+   memcpy(rval, src, len);
+
+   return rval;
+}
+
+
 /**
  * \brief Compare two str's case sensitive
  * \param str1 first str

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


[sr-dev] git:master:f2c31f59: tm: docs for headers_mode parameter

2024-08-23 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: f2c31f5948cc8f6df652d193372973b1da748d51
URL: 
https://github.com/kamailio/kamailio/commit/f2c31f5948cc8f6df652d193372973b1da748d51

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-08-23T12:18:13+02:00

tm: docs for headers_mode parameter

---

Modified: src/modules/tm/doc/params.xml

---

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

---

diff --git a/src/modules/tm/doc/params.xml b/src/modules/tm/doc/params.xml
index 2c42e2cea5e..ffef9a4eec3 100644
--- a/src/modules/tm/doc/params.xml
+++ b/src/modules/tm/doc/params.xml
@@ -1355,13 +1355,14 @@ modparam("tm", "e2e_cancel_reason", 0)



+

e2e_cancel_hop_by_hop (int)

Enable/disable sending CANCEL in hop-by-hop mode.


-   Default value: 1 ( hop-by-hop mode).
+   Default value: 1 (hop-by-hop mode).


Set e2e_cancel_hop_by_hop 
parameter
@@ -1373,6 +1374,25 @@ modparam("tm", "e2e_cancel_hop_by_hop", 0)


 
+   
+   headers_mode (int)
+   
+   Control if headers from incoming CANCEL should be 
propagated to
+   hop-by-hop generated CANCEL.
+   
+   
+   Default value: 0 (do not propagate).
+   
+   
+   Set headers_mode 
parameter
+   
+...
+modparam("tm", "headers_mode", 1)
+...
+   
+   
+   
+

remap_503_500 (boolean)


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


[sr-dev] git:master:e84ef549: tm: new parameter headers_mode

2024-08-23 Thread Daniel-Constantin Mierla via sr-dev
Module: kamailio
Branch: master
Commit: e84ef54979dd05e92c65f96c7b1336aefd28faa2
URL: 
https://github.com/kamailio/kamailio/commit/e84ef54979dd05e92c65f96c7b1336aefd28faa2

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-08-23T12:18:13+02:00

tm: new parameter headers_mode

- control if headers from incoming CANCEL should be propagated to
  hop-by-hop generated CANCEL
- default 0, do not propagate (exiting behaviour)

---

Modified: src/modules/tm/t_cancel.c
Modified: src/modules/tm/t_cancel.h
Modified: src/modules/tm/t_fwd.c
Modified: src/modules/tm/t_msgbuilder.c
Modified: src/modules/tm/t_msgbuilder.h
Modified: src/modules/tm/t_reply.c
Modified: src/modules/tm/timer.c
Modified: src/modules/tm/tm.c

---

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

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


[sr-dev] git:master:9783c270: core: main - safety check for invalid syntax in listen parameter

2024-08-23 Thread Henning Westerholt via sr-dev
Module: kamailio
Branch: master
Commit: 9783c270eae580b22e73349ac72afd864b1de592
URL: 
https://github.com/kamailio/kamailio/commit/9783c270eae580b22e73349ac72afd864b1de592

Author: Henning Westerholt 
Committer: Henning Westerholt 
Date: 2024-08-23T10:17:02Z

core: main - safety check for invalid syntax in listen parameter

---

Modified: src/main.c

---

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

---

diff --git a/src/main.c b/src/main.c
index cbe67350004..993181c7326 100644
--- a/src/main.c
+++ b/src/main.c
@@ -2765,7 +2765,7 @@ int main(int argc, char **argv)
fprintf(stderr, "error during 
processing -l parameter\n");
}
tbuf_tmp = tbuf;
-   while ((p = strsep(&tbuf, "/")) != NULL) {
+   while ((p = strsep(&tbuf, "/")) != NULL && 
listen_field_count < 3) {
listen_fields[listen_field_count++] = p;
}
/* empty advertise only allowed with a name 
field */

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


[sr-dev] Re: [kamailio/kamailio] core: main - safety check for invalid syntax in listen parameter (9783c27)

2024-08-23 Thread Daniel-Constantin Mierla via sr-dev
Maybe a check should be added that there is no `/` is in the last field 
now/socket name, so in the future `/` can be used as separator for new fields.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/9783c270eae580b22e73349ac72afd864b1de592#r145744612
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:fad4fbc3: modules: readme files regenerated - tm ... [skip ci]

2024-08-23 Thread Kamailio Dev via sr-dev
Module: kamailio
Branch: master
Commit: fad4fbc3131ec261cd552d821eaf5a20157cfc65
URL: 
https://github.com/kamailio/kamailio/commit/fad4fbc3131ec261cd552d821eaf5a20157cfc65

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2024-08-23T12:31:10+02:00

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

---

Modified: src/modules/tm/README

---

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

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


[sr-dev] Re: [kamailio/kamailio] core: main - safety check for invalid syntax in listen parameter (9783c27)

2024-08-23 Thread Henning Westerholt via sr-dev
Right now it will just ignore the additional slash and cut the string there:

henning@app01:~/repositories/kamailio/src$ killall kamailio; ./kamailio -l 
udp:127.0.0.1:5060//te/st  -f ../etc/test.cfg -Y /tmp/ -E -L modules
Listening on
 udp: 127.0.0.1:5060 name te
Aliases:
 udp: localhost:5060

I think the logic could be extended easily to allow e.g. a fourth field for the 
listen, when we need it.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/commit/9783c270eae580b22e73349ac72afd864b1de592#r145744930
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] Kemi app_python3 throws a TypeError (Issue #3915)

2024-08-23 Thread github-actions[bot] via sr-dev
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.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3915#issuecomment-2308007517
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] ims_registrar_pcscf: support for handling contact * value (Issue #3848)

2024-08-23 Thread github-actions[bot] via sr-dev
Closed #3848 as not planned.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3848#event-13999306460
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