[sr-dev] Re: [kamailio/kamailio] Kamailio 5.6 (and 5.7) core dumps with uac_req_send() from uac module (Issue #3725)

2024-04-08 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/3725#issuecomment-2044049654
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] tcpops module event_route[tcp:closed] route block $conid is null (Issue #3767)

2024-04-08 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/3767#issuecomment-2044049677
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:a7e02a40: modules: readme files regenerated - http_client ... [skip ci]

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

Author: Kamailio Dev 
Committer: Kamailio Dev 
Date: 2024-04-08T21:31:24+02:00

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

---

Modified: src/modules/http_client/README

---

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

---

diff --git a/src/modules/http_client/README b/src/modules/http_client/README
index 844a6cf3107..57ae0972735 100644
--- a/src/modules/http_client/README
+++ b/src/modules/http_client/README
@@ -78,6 +78,7 @@ Hugh Waite
   4.6. http_client_request(met, url, body, hdrs, respv)
   4.7. http_client_request_v2pk(met, url, body, hdrs, respv)
   4.8. http_client_response_headers_set(mode)
+  4.9. http_client_response_headers_clear()
 
 5. Pseudo-Variables
 
@@ -141,6 +142,7 @@ Hugh Waite
1.29. http_client_request() usage
1.30. http_client_request_v2pk() usage
1.31. http_client_response_headers_set() usage
+   1.32. http_client_response_headers_clear() usage
 
 Chapter 1. Admin Guide
 
@@ -188,6 +190,7 @@ Chapter 1. Admin Guide
 4.6. http_client_request(met, url, body, hdrs, respv)
 4.7. http_client_request_v2pk(met, url, body, hdrs, respv)
 4.8. http_client_response_headers_set(mode)
+4.9. http_client_response_headers_clear()
 
5. Pseudo-Variables
 
@@ -732,6 +735,7 @@ modparam("http_client", "response_headers", 1)
4.6. http_client_request(met, url, body, hdrs, respv)
4.7. http_client_request_v2pk(met, url, body, hdrs, respv)
4.8. http_client_response_headers_set(mode)
+   4.9. http_client_response_headers_clear()
 
 4.1.  http_connect(connection, url, [content_type, data,] result)
 
@@ -951,6 +955,20 @@ ram})&f_uri=$(fu{s.escape.param})",
 xinfo("response header: $httprhdr(X-Header)\n");
 ...
 
+4.9.  http_client_response_headers_clear()
+
+   Clear stored response headers, if not explicitely done, it happens when
+   the next HTTP request is performed.
+
+   Example 1.32. http_client_response_headers_clear() usage
+...
+http_client_request_v2pk("GET", 
"http://api.com/index.php?r_uri=$(ru{s.escape.pa
+ram})&f_uri=$(fu{s.escape.param})",
+   "", "X-Token: abc", "$var(result)");
+xinfo("response header: $httprhdr(X-Header)\n");
+http_client_response_headers_clear();
+...
+
 5. Pseudo-Variables
 
5.1. $curlerror(error)

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


[sr-dev] git:master:d55cd7e6: http_client: docs for http_client_response_headers_clear()

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

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-04-08T17:03:19+02:00

http_client: docs for http_client_response_headers_clear()

---

Modified: src/modules/http_client/doc/http_client_admin.xml

---

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

---

diff --git a/src/modules/http_client/doc/http_client_admin.xml 
b/src/modules/http_client/doc/http_client_admin.xml
index 0a8f147eb0e..e81d912c11e 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -1047,6 +1047,26 @@ http_client_response_headers_set("1");
 http_client_request_v2pk("GET", 
"http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escape.param})",
   "", "X-Token: abc", "$var(result)");
 xinfo("response header: $httprhdr(X-Header)\n");
+...
+   
+   
+   
+   
+   
+   http_client_response_headers_clear()
+   
+   
+   Clear stored response headers, if not 
explicitely done, it happens
+   when the next HTTP request is performed.
+   
+   
+   
http_client_response_headers_clear() usage
+   
+...
+http_client_request_v2pk("GET", 
"http://api.com/index.php?r_uri=$(ru{s.escape.param})&f_uri=$(fu{s.escape.param})",
+  "", "X-Token: abc", "$var(result)");
+xinfo("response header: $httprhdr(X-Header)\n");
+http_client_response_headers_clear();
 ...



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


[sr-dev] git:master:cdf0633b: http_client: added http_client_response_headers_clear()

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

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-04-08T14:14:58+02:00

http_client: added http_client_response_headers_clear()

- clear response headers
- if not explicitely done, it happens when next http request is
  performed

---

Modified: src/modules/http_client/http_client.c

---

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

---

diff --git a/src/modules/http_client/http_client.c 
b/src/modules/http_client/http_client.c
index c8af2f64901..27310829d0e 100644
--- a/src/modules/http_client/http_client.c
+++ b/src/modules/http_client/http_client.c
@@ -160,6 +160,8 @@ static int w_http_query_request_v2pk(struct sip_msg *_m, 
char *_met, char *_url,
char *_body, char *_hdrs, char *_result);
 static int w_http_client_response_headers_set(
sip_msg_t *_m, char *_pval, char *_p2);
+static int w_http_client_response_headers_clear(
+   sip_msg_t *_m, char *_p1, char *_p2);
 
 /* forward function */
 static int curl_con_param(modparam_t type, void *val);
@@ -205,6 +207,9 @@ static cmd_export_t cmds[] = {
{"http_client_response_headers_set",
(cmd_function)w_http_client_response_headers_set, 1, 
fixup_igp_null,
fixup_free_igp_null, ANY_ROUTE},
+   {"http_client_response_headers_clear",
+   (cmd_function)w_http_client_response_headers_clear, 1, 0,
+   0, ANY_ROUTE},
{"bind_http_client",  (cmd_function)bind_httpc_api,  0, 0, 0, 0},
{0,0,0,0,0,0}
 };
@@ -1184,6 +1189,16 @@ static int w_http_client_response_headers_set(
return ki_http_client_response_headers_set(_m, ival);
 }
 
+/*!
+ *
+ */
+static int w_http_client_response_headers_clear(
+   sip_msg_t *_m, char *_pval, char *_p2)
+{
+   http_client_response_headers_reset();
+   return 1;
+}
+
 /*!
  * Parse arguments to  pv $curlerror
  */

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


[sr-dev] git:master:5ba76f65: nghttp2: new module for supporting direct http2 connections

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

Author: Daniel-Constantin Mierla 
Committer: Daniel-Constantin Mierla 
Date: 2024-04-08T21:25:11+02:00

nghttp2: new module for supporting direct http2 connections

- initial import version

---

Added: src/modules/nghttp2/Makefile
Added: src/modules/nghttp2/README
Added: src/modules/nghttp2/doc/Makefile
Added: src/modules/nghttp2/doc/nghttp2.xml
Added: src/modules/nghttp2/doc/nghttp2_admin.xml
Added: src/modules/nghttp2/nghttp2_mod.c
Added: src/modules/nghttp2/nghttp2_server.c
Added: src/modules/nghttp2/nghttp2_server.h

---

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

___
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)

2024-04-08 Thread BenoƮt Panizzon via sr-dev
Hmm, would modparam("dialog", "dlg_filter_mode", 1) fix the issue by not arming 
the timer?

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3656#issuecomment-2042863292
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] ipops: Add PTR query support (PR #3802)

2024-04-08 Thread Olle E. Johansson via sr-dev
I'm good. Good work!

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3802#issuecomment-2042552775
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] pike: fix documentation for reqs_density_per_unit (PR #3806)

2024-04-08 Thread Daniel-Constantin Mierla via sr-dev
Probably the code has to be checked, it used to be some warming up based on ip 
address prefix (no longer sure, but something in the direction of: for x.y.z.w, 
first keep x, then x.y, then x.y.z and then block the traffic), but the it was 
the merge with SER modules and not sure what ended up to be. Also, maybe it 
block immediately if it is in the same subnetwork, source code should be 
authoritative here and should be checked before merging.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3806#issuecomment-2042548893
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] ipops: Add PTR query support (PR #3802)

2024-04-08 Thread Xenofon Karamanos via sr-dev
So i've rebased to master and squashed some commits to make it more manageable. 
I have also add some more in-code comments/doc.

If there are no other suggestions/review, I will merge it soon.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3802#issuecomment-2042546971
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] ipops: Add PTR query support (PR #3802)

2024-04-08 Thread Xenofon Karamanos via sr-dev
@xkaraman pushed 5 commits.

8fa52eaa74ddb2a1fecb0fbc6cebf0cb7adb8ea3  ipops: Move structures to header
c830d0ddd9bcf053f5ed570d7ce92a5eabf68310  ipops: Add PTR query support
e987f151ad87c0a611b8a3320cecbb7379b09767  ipops: Add ptr_query docs
624b3c4f2dff29d038d929197690d6c223e9c531  ipops: Add brief comment for ptr_query
45f84873d03f87bff0c8d0cfe8385c5c6c2520d0  ipops: Add KEMI wrapper for ptr_query 
function

-- 
View it on GitHub:
https://github.com/kamailio/kamailio/pull/3802/files/3027862b16052a8f08275fcc1f929c05c08aa98c..45f84873d03f87bff0c8d0cfe8385c5c6c2520d0
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:5.8:215af598: pdb server: allow carrier id 0

2024-04-08 Thread Stefan-Cristian Mititelu via sr-dev
Module: kamailio
Branch: 5.8
Commit: 215af59832efc6e485563b55e3af9d209121d0c5
URL: 
https://github.com/kamailio/kamailio/commit/215af59832efc6e485563b55e3af9d209121d0c5

Author: Stefan-Cristian Mititelu 
Committer: Stefan-Cristian Mititelu 
Date: 2024-04-08T12:47:20+03:00

pdb server: allow carrier id 0

(cherry-picked from commit 60ded00a3b574a08457a696334d11d668595cc0b)

---

Modified: utils/pdbt/common.h

---

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

---

diff --git a/utils/pdbt/common.h b/utils/pdbt/common.h
index 2146109a29d..a014e7d97e4 100644
--- a/utils/pdbt/common.h
+++ b/utils/pdbt/common.h
@@ -36,7 +36,7 @@
  -1000..-1 used in dtm to indicate a carrier id and that no more nodes will 
follow (leaf node compression).
  -1001 used in dtm to mark a pointer to a child node as NULL.
 */
-#define MIN_PDB_CARRIERID 1
+#define MIN_PDB_CARRIERID 0
 #define MAX_PDB_CARRIERID 999
 #define OTHER_CARRIERID 1000
 #define MAX_CARRIERID 1000

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


[sr-dev] git:5.7:46cf3559: pdb server: allow carrier id 0

2024-04-08 Thread Stefan-Cristian Mititelu via sr-dev
Module: kamailio
Branch: 5.7
Commit: 46cf3559f4847b00790c043de41699b6c16f4920
URL: 
https://github.com/kamailio/kamailio/commit/46cf3559f4847b00790c043de41699b6c16f4920

Author: Stefan-Cristian Mititelu 
Committer: Stefan-Cristian Mititelu 
Date: 2024-04-08T12:46:54+03:00

pdb server: allow carrier id 0

(cherry-picked from commit 60ded00a3b574a08457a696334d11d668595cc0b)

---

Modified: utils/pdbt/common.h

---

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

---

diff --git a/utils/pdbt/common.h b/utils/pdbt/common.h
index 7d121430f1b..e10e2d11658 100644
--- a/utils/pdbt/common.h
+++ b/utils/pdbt/common.h
@@ -32,7 +32,7 @@
  -1000..-1 used in dtm to indicate a carrier id and that no more nodes will 
follow (leaf node compression).
  -1001 used in dtm to mark a pointer to a child node as NULL.
 */
-#define MIN_PDB_CARRIERID 1
+#define MIN_PDB_CARRIERID 0
 #define MAX_PDB_CARRIERID 999
 #define OTHER_CARRIERID 1000
 #define MAX_CARRIERID 1000

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


[sr-dev] git:5.6:2a6f18aa: pdb server: allow carrier id 0

2024-04-08 Thread Stefan-Cristian Mititelu via sr-dev
Module: kamailio
Branch: 5.6
Commit: 2a6f18aaf08d87c71c530a14ebae17d211ae8a25
URL: 
https://github.com/kamailio/kamailio/commit/2a6f18aaf08d87c71c530a14ebae17d211ae8a25

Author: Stefan-Cristian Mititelu 
Committer: Stefan-Cristian Mititelu 
Date: 2024-04-08T12:46:21+03:00

pdb server: allow carrier id 0

(cherry-picked from commit 60ded00a3b574a08457a696334d11d668595cc0b)

---

Modified: utils/pdbt/common.h

---

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

---

diff --git a/utils/pdbt/common.h b/utils/pdbt/common.h
index 7d121430f1b..e10e2d11658 100644
--- a/utils/pdbt/common.h
+++ b/utils/pdbt/common.h
@@ -32,7 +32,7 @@
  -1000..-1 used in dtm to indicate a carrier id and that no more nodes will 
follow (leaf node compression).
  -1001 used in dtm to mark a pointer to a child node as NULL.
 */
-#define MIN_PDB_CARRIERID 1
+#define MIN_PDB_CARRIERID 0
 #define MAX_PDB_CARRIERID 999
 #define OTHER_CARRIERID 1000
 #define MAX_CARRIERID 1000

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


[sr-dev] git:master:60ded00a: pdb server: allow carrier id 0

2024-04-08 Thread Stefan-Cristian Mititelu via sr-dev
Module: kamailio
Branch: master
Commit: 60ded00a3b574a08457a696334d11d668595cc0b
URL: 
https://github.com/kamailio/kamailio/commit/60ded00a3b574a08457a696334d11d668595cc0b

Author: Stefan-Cristian Mititelu 
Committer: Stefan-Cristian Mititelu 
Date: 2024-04-08T11:35:38+03:00

pdb server: allow carrier id 0

---

Modified: utils/pdbt/common.h

---

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

---

diff --git a/utils/pdbt/common.h b/utils/pdbt/common.h
index 2146109a29d..a014e7d97e4 100644
--- a/utils/pdbt/common.h
+++ b/utils/pdbt/common.h
@@ -36,7 +36,7 @@
  -1000..-1 used in dtm to indicate a carrier id and that no more nodes will 
follow (leaf node compression).
  -1001 used in dtm to mark a pointer to a child node as NULL.
 */
-#define MIN_PDB_CARRIERID 1
+#define MIN_PDB_CARRIERID 0
 #define MAX_PDB_CARRIERID 999
 #define OTHER_CARRIERID 1000
 #define MAX_CARRIERID 1000

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