- URL: https://github.com/kamailio/kamailio/commit/d5f13655909632a4f6e58ebb6ea2a13…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:18:49+01:00
registrar: when provided, use host part from uri parameter
- instread of the To URI, which can be different
(cherry picked from commit 1c2cb9980082a6a1a8e3986330d9b80c49ef7801)
- URL: https://github.com/kamailio/kamailio/commit/6c88ef7c6abc45f72571aaa713f1d0d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:19:12+01:00
auth_xkey: use memcpy() instead of strncpy()
(cherry picked from commit 29686758e1ce51abb8d8dd5bebb0d7fa1a019dc6)
- URL: https://github.com/kamailio/kamailio/commit/065e0514144f4e4f160ae15b515948c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:19:42+01:00
registrar: use parsed uri parameter when provided for save()
- instead of to-uri, aor being built from uri parameter
(cherry picked from commit 21e2d96672ccbe65eebdf64f839a1ce465a11b7c)
- URL: https://github.com/kamailio/kamailio/commit/32987e68f85500e2b37134c7a542ab7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:20:44+01:00
core: try to lookup connection for WSS when TCPCONN_MATCH_STRICT is set
- URIs have always transport ws, but most likely the connection is wss
- GH #3969
(cherry picked from commit aa794581ecf105b5313d2f5b8bcfe516ab337936)
- URL: https://github.com/kamailio/kamailio/commit/f6b6aeb9297b6782655199de9bcb82c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:21:00+01:00
registrar: safety check for uri and remove duplicated aor extract
- follow up of changes from previous commit
(cherry picked from commit 60165196ad3144597c24eb9f7bb7fb0cd56f8c25)
- URL: https://github.com/kamailio/kamailio/commit/4cb602385b4bb7b9df5cff9aac60ea0…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2024-11-06T09:22:01+01:00
core: parser - use sip_parser_log
Silencing messages that tend to appear when processing HEP.
(cherry picked from commit e6a3b3554af01e5141ba063df408a06b28261927)
- URL: https://github.com/kamailio/kamailio/commit/62a76d2fe3547ef6701e8b86f195396…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:22:42+01:00
core: option to skip auto-bind on ipv6 local link
- set bind_ipv6_link_local=2
(cherry picked from commit 2bcd29a7a2981670baea0b7fb2e8454b5ad9f4d7)
- URL: https://github.com/kamailio/kamailio/commit/081e17b925a019c9971bf1296bc9a70…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:22:53+01:00
core: log message about interface flags made info
- small updates to a couple of error messages
(cherry picked from commit 15823c3eda3a332d22d9132a873d755aa024892f)
- URL: https://github.com/kamailio/kamailio/commit/4647ecd9c20a79967a8beed14262ad7…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:23:05+01:00
core: check for items with emtpy address when discovering the network interfaces
- it may be returned on some OSes, preventing to start
(cherry picked from commit bd4c068ee9c8e18dc76f8154d3fa4c438972b79c)
- URL: https://github.com/kamailio/kamailio/commit/9947b5a548ff1802de70acccc1d8306…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:23:15+01:00
core: socket info - set address also for link local items
- updates to log messages
(cherry picked from commit fd95b95035a7da088a94888132326d463191da83)
- URL: https://github.com/kamailio/kamailio/commit/54c6ac01e98866905c8654a42873f02…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:23:25+01:00
core: check for incompatible modes for bind_ipv6_link_local
- a few more debug messages
(cherry picked from commit 86770d203bde6859284ec8862be66d78efd2715a)
- URL: https://github.com/kamailio/kamailio/commit/499be2dcbefe30be2ed616064a04bc0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:23:42+01:00
ldap: remove unused variable in child_init
fixes #3974
> ldap_mod.c: In function ������child_init������:
> ldap_mod.c:156:13: warning: unused variable ������ret������ [-Wunused-variable]
> 156 | int ret = 0;
(cherry picked from commit a078f14050b6d31bfbcd3562306923c0c4ad73e3)
- URL: https://github.com/kamailio/kamailio/commit/240b66b8d9ea9bf58e897bf9b35c4d9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:23:52+01:00
core: skip interfaces with index over max iface limit
(cherry picked from commit fa17af660dc754cd46c747ec8c3216ef52fd4fcc)
- URL: https://github.com/kamailio/kamailio/commit/e3969c489b24490c667eb4680ee452f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:24:09+01:00
core: use advertised port only when explicitely set
- do not fallback to socket port
(cherry picked from commit 0f423f97607416edcff8d0f1612fad7af29b6064)
- URL: https://github.com/kamailio/kamailio/commit/af0ec5445393939288c86e976eba8f5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:24:19+01:00
core: use advertised port for recv socket only when set
(cherry picked from commit c09a29369f03f6c5e621a94b5b853047490568aa)
- URL: https://github.com/kamailio/kamailio/commit/c62a1b6efd10f5c46cf87a9ea33ee4f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:24:29+01:00
core: use macro to check send_port_str value
(cherry picked from commit 15d81a0151aa46a20f95fb8c6dc2665d03e741aa)
- URL: https://github.com/kamailio/kamailio/commit/1cd3b749e699f2b83752a5b6c1b29f1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:25:26+01:00
core: proper condition for bind_ipv6_link_local modes
(cherry picked from commit 99710daa8b05a0a37ef3bb35e2ffd723908037f4)
- URL: https://github.com/kamailio/kamailio/commit/96ebad5d1a3650961ca6e3cd22d4da0…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:25:40+01:00
app_jsdt: add support for loong64
From: liuxiang <liuxiang(a)loongson.cn>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1060901
fixes #3976
(cherry picked from commit 5746db1c5a99eaeaf7f97d520232f014548c912d)
- URL: https://github.com/kamailio/kamailio/commit/24651787d54746647614be111ee5cb5…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:27:00+01:00
core: use advertise port only when set for via header
(cherry picked from commit abaf42a735b00af8cbfec90888d2ef3397e5040d)
- URL: https://github.com/kamailio/kamailio/commit/8331cb1f87b31f66f87a90e7fbaa255…
Author: Thomas <1258170+ThomasSevestre(a)users.noreply.github.com>
Date: 2024-11-06T09:27:16+01:00
topos_redis : show redis error for post mortem analysis
(cherry picked from commit 72889e945041b6475a43c371aa4e20e99f5d1240)
- URL: https://github.com/kamailio/kamailio/commit/95371808084c547e01daf3ecdc7124c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:27:47+01:00
core: reqorked check for incompatible modes of bind_ipv6_link_local
(cherry picked from commit f7045d1c08d37e91ee7e96e415c06b218aee98fd)
- URL: https://github.com/kamailio/kamailio/commit/004e0e056178dfbaa1aca6e8d736441…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:28:35+01:00
core: print errno on tcp bind failure
- log message with value of sr_bind_ipv6_link_local
(cherry picked from commit 621f3132708405939d3a40fb98ae57b793cd246e)
- URL: https://github.com/kamailio/kamailio/commit/f3d510f6f1f59bb33ff6e3df08863f6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:28:56+01:00
core: socket info - relocate check for index to get more debugging details
(cherry picked from commit b7dcbc37aceaefecf9a0f7367526a331d42269ea)
- URL: https://github.com/kamailio/kamailio/commit/1d216f8764ebb0e8f78764e3778f34a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:29:09+01:00
core: socket info - do not use interface index as internal array index
- there are cases when the interface number is high, even if there are
only a few real network interfaces, which can result in inability to
listen on them
(cherry picked from commit 7acfe7723b4772ca45ce31ae98bf3d0b6948f50a)
- URL: https://github.com/kamailio/kamailio/commit/b553882d8d87d3891f387832fe2d562…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:29:46+01:00
core/rand: fix -Wdeprecated-non-prototype
> Warning: core/rand/isaac/rand.c:28:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> void isaac(ctx) randctx *ctx;
> ^
> Warning: core/rand/isaac/rand.c:81:6: warning: a function definition without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> void randinit(ctx, flag) randctx *ctx;
(cherry picked from commit 9475837b209c91366e8bb40416552b02c13aaf3a)
- URL: https://github.com/kamailio/kamailio/commit/170d35f1f14f71f69bdfa6586997def…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:30:12+01:00
tm: fix warning uninitialized variable
> Warning: t_fwd.c:1919:46: warning: variable 'port' is uninitialized when used here [-Wuninitialized]
> ret = forward_request_uac(p_msg, &host, port, &dst);
> ^~~~
> t_fwd.c:1843:21: note: initialize the variable 'port' to silence this warning
> unsigned short port;
> ^
> = 0
> 1 warning generated.
(cherry picked from commit ce4107a6f654a4bc4462efb90f3cc5e8c73bf9ed)
- URL: https://github.com/kamailio/kamailio/commit/fa959e8cfda491612b7a13d1a187724…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:31:09+01:00
presence: fix warning conflicting prototype
> Warning: presence_dmq.c:38:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> int pres_dmq_send_all_presentities();
> ^
> presence_dmq.c:487:5: note: conflicting prototype is here
> int pres_dmq_send_all_presentities(dmq_node_t *dmq_node)
> ^
> 1 warning generated.
(cherry picked from commit 03e49d4e1d806f39ee6aadaedd183a6578108d96)
- URL: https://github.com/kamailio/kamailio/commit/6bec8ed087c308c504da7ad217b55e1…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:31:48+01:00
cdp: fix warning deprecated-non-prototype
> Warning: peerstatemachine.c:120:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:182:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:395:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:400:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:420:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:462:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> Warning: peerstatemachine.c:467:19: warning: passing arguments to 'log_peer_list' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> log_peer_list(L_INFO);
> ^
> 7 warnings generated.
(cherry picked from commit f49012d15a06b27875cf6bca211ad953968b5217)
- URL: https://github.com/kamailio/kamailio/commit/b55acf4ce764da70f7bd78e05598b68…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:32:27+01:00
ims_usrloc_pcscf: fix warnings deprecated-non-prototype
> In file included from pcontact.c:46:
> Warning: ./pcontact.h:63:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> int new_pcontact(
> ^
> pcontact.c:166:5: note: conflicting prototype is here
> int new_pcontact(struct udomain *_d, str *_contact, struct pcontact_info *_ci,
> ^
> 1 warning generated.
> Warning: udomain.c:232:17: warning: passing arguments to 'new_pcontact' without a prototype is deprecated in all versions of C and is not supported in C2x [-Wdeprecated-non-prototype]
> if(new_pcontact(_d->name, _contact, _ci, _c) < 0) {
> ^
> 1 warning generated.
(cherry picked from commit 7dcc8405ccec19132d27516426137e35e464d4ad)
- URL: https://github.com/kamailio/kamailio/commit/2ad5b019f6c2a2afee8f0d575f92a02…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:32:38+01:00
ims_usrloc_pcscf: fix warning deprecated-non-prototype
> In file included from usrloc_db.c:12:
> Warning: ./usrloc_db.h:131:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C2x, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> int use_location_pcscf_table();
> ^
> usrloc_db.c:113:5: note: conflicting prototype is here
> int use_location_pcscf_table(str *domain)
> ^
> 1 warning generated.
(cherry picked from commit 35a87c98f4e84b65f82376dfb57050f43d0f355f)
- URL: https://github.com/kamailio/kamailio/commit/02efd2aad688b2eec0bff7b743ce4b9…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:32:55+01:00
rabbitmq: remove deprecation warning
From https://github.com/alanxz/rabbitmq-c/blob/c3e4176659aac7d0e497da90a46c08c63…
> * \deprecated Since v0.13.0 this is a no-op. OpenSSL automatically manages
> * library initialization and uninitialization.
> Warning: rabbitmq.c:574:3: warning: 'amqp_set_initialize_ssl_library' is deprecated [-Wdeprecated-declarations]
> amqp_set_initialize_ssl_library(1);
> ^
> /usr/include/rabbitmq-c/ssl_socket.h:249:1: note: 'amqp_set_initialize_ssl_library' has been explicitly marked deprecated here
> AMQP_DEPRECATED_EXPORT
> ^
> /usr/include/rabbitmq-c/export.h:29:46: note: expanded from macro 'AMQP_DEPRECATED_EXPORT'
> # define AMQP_DEPRECATED_EXPORT AMQP_EXPORT AMQP_DEPRECATED
> ^
> /usr/include/rabbitmq-c/export.h:25:43: note: expanded from macro 'AMQP_DEPRECATED'
> # define AMQP_DEPRECATED __attribute__ ((__deprecated__))
> ^
> 1 warning generated.
(cherry picked from commit a2f7147dded679d025a902aa12beb048ee714c32)
- URL: https://github.com/kamailio/kamailio/commit/8db46badd40606e910350e4ea3c28f8…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:33:12+01:00
kazoo: fix deprecation warning
fixes #3466
From https://github.com/alanxz/rabbitmq-c/blob/c3e4176659aac7d0e497da90a46c08c63…
> * \deprecated Since v0.13.0 this is a no-op. OpenSSL automatically manages
> * library initialization and uninitialization.
> Warning: kz_amqp.c:857:3: warning: 'amqp_set_initialize_ssl_library' is deprecated [-Wdeprecated-declarations]
> amqp_set_initialize_ssl_library(1);
> ^
> /usr/include/rabbitmq-c/ssl_socket.h:249:1: note: 'amqp_set_initialize_ssl_library' has been explicitly marked deprecated here
> AMQP_DEPRECATED_EXPORT
> ^
> /usr/include/rabbitmq-c/export.h:29:46: note: expanded from macro 'AMQP_DEPRECATED_EXPORT'
> # define AMQP_DEPRECATED_EXPORT AMQP_EXPORT AMQP_DEPRECATED
> ^
> /usr/include/rabbitmq-c/export.h:25:43: note: expanded from macro 'AMQP_DEPRECATED'
> # define AMQP_DEPRECATED __attribute__ ((__deprecated__))
> ^
> 1 warning generated.
(cherry picked from commit eeb17678d77548073a59b54c0a08ebdb48b25fa2)
- URL: https://github.com/kamailio/kamailio/commit/844a7a072abf5fad466a20bcae33e1d…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:33:19+01:00
sms: fix warning and remove old logic
> Warning: libsms_getsms.c:107:25: warning: implicit conversion from 'int' to 'char' changes value from 183 to -73 [-Wconstant-conversion]
> 107 | ascii[charcounter] = 183;
> | ~ ^~~
> 1 warning generated.
(cherry picked from commit ee052fd0a7e7dc703a186a01926a8e64c635d636)
- URL: https://github.com/kamailio/kamailio/commit/66243e19149d3f4324089f4f54bf860…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:33:28+01:00
http_async_client: fix warning deprecated-non-prototype
> Warning: ./http_multi.h:64:5: warning: a function declaration without a prototype is deprecated in all versions of C and is treated as a zero-parameter prototype in C23, conflicting with a subsequent definition [-Wdeprecated-non-prototype]
> 64 | int init_http_multi();
> | ^
> http_multi.c:403:5: note: conflicting prototype is here
> 403 | int init_http_multi(struct event_base *evbase, struct http_m_global *wg)
> | ^
> 1 warning generated.
(cherry picked from commit 2737bb19a363be7c0d67749b75f11c7e9d2d09f3)
- URL: https://github.com/kamailio/kamailio/commit/fab08023dc425919c77dc960b0944eb…
Author: aelezovic <adnan.elezovic(a)infobip.com>
Date: 2024-11-06T09:33:39+01:00
mongodb: fix cursor error resulting empty result set
(cherry picked from commit afebe6b2e597755ae37fd37bdf011fbb2fbbf8fe)
- URL: https://github.com/kamailio/kamailio/commit/faf27cef7118a35bfab4aed5185148d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:01+01:00
siptrace: use advertise address if set for trace mode 1 callbacks
(cherry picked from commit 9fb15e2ef93a0d606fa4c6d695a2f13a4b0a8031)
- URL: https://github.com/kamailio/kamailio/commit/9a24032160de4205585a890c2195c3f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:12+01:00
siptrace: added parameter data_mode
- control if bind address of advertised address are used
(cherry picked from commit 9d8432f3ffb1f9d07874452e23140be21e75c530)
- URL: https://github.com/kamailio/kamailio/commit/a1e79755f4d2827a68f092dea1f138d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:20+01:00
siptrace: docs for data_mode param
(cherry picked from commit 337c06b6b43606536f1d37ebfd6e4240aab9cf5a)
- URL: https://github.com/kamailio/kamailio/commit/0ba1666fec15ed292e7fe1764bfa985…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:35+01:00
core: parser sdp - check for length of sendrecv attribute
(cherry picked from commit fc4817064f81ef9a82b1b1468b1b8a4ae352c1f2)
- URL: https://github.com/kamailio/kamailio/commit/eb058dba967bb772c8413356163ec6c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:44+01:00
core: parse sdp - check for body limit on mixed content
(cherry picked from commit d4bbde619bbf808edebb31e131b3783ba2a4b34d)
- URL: https://github.com/kamailio/kamailio/commit/e650ace5948c76ea2d8eb7eaeebb5c3…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:34:55+01:00
core: parser sdp - check field length when extracting the value
(cherry picked from commit e802f9187383feb7fdd96c4ded44fda403da4535)
- URL: https://github.com/kamailio/kamailio/commit/13579e6d39898afbe6064c645d5a0f8…
Author: Eik Rentzow <rentzow(a)gmx.de>
Date: 2024-11-06T09:36:32+01:00
siputils/doc: updated pcv documentation [skip ci]
- Updated documentation to reflect the changes to the $pcv pseudo-var
and the sip_p_charging_vector() function.
(cherry picked from commit 05a30ed53fc5657a2d86e1c1bdb9277571a8d17e)
- URL: https://github.com/kamailio/kamailio/commit/8c3eb992e07bbb0f0f9a123c124b23d…
Author: Eik Rentzow <rentzow(a)gmx.de>
Date: 2024-11-06T09:36:39+01:00
siputils: bug fix for sip_p_charging_vector
- Bug fix for #3929 and further improvements.
- New buffer usage for P-Charging-Vector handling.
- Added $pcv(status) pseudo-var.
- Added return values for sip_p_charging_vector().
- Much improved error case handling.
- Use send interface for icid-genearted-at:
The icid-generated-at parameter should carry the ip adress of the
egress interface and not of the interface where the message was received.
This is in accordance with other SBC solutions.
(cherry picked from commit d7c8bc5c58f672004894733d0e6d2a7cb00efe7a)
- URL: https://github.com/kamailio/kamailio/commit/98032a98eaf764140825c4a2c0eb64a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:37:02+01:00
core: socket info - skip ipv6 link local on interface discovery
(cherry picked from commit a5b1099c9061551a0b31db8ef88efb2e376b290c)
- URL: https://github.com/kamailio/kamailio/commit/ba194c482f72618a896864d5a9738de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:37:35+01:00
async: docs updates for async_sleep()
(cherry picked from commit cce29af41120cf30c4c22979e772d1ca666408c6)
- URL: https://github.com/kamailio/kamailio/commit/a688b24ac777cb93306a1a777e687de…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:37:50+01:00
core: parser sdp - check if body is enough for rtpmap
(cherry picked from commit c7f89e81504c425a83f3423bc4b4d9d1a8a48909)
- URL: https://github.com/kamailio/kamailio/commit/255db278f078c8868f28e6451d92b80…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:38:12+01:00
jwt: print decode result in error log message
(cherry picked from commit 0cbb2eb035c7d2a29ae707cde94a2c0573e0ffd5)
- URL: https://github.com/kamailio/kamailio/commit/0408c2cb412f0df0a17b70aa4d15026…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:38:24+01:00
core: parser sdp - check length for rtpmap extract
(cherry picked from commit c823f41350ab9186a323707e9be32e31922bec17)
- URL: https://github.com/kamailio/kamailio/commit/a97199e0114b9cfc0804c3d8f73471f…
Author: Dragos Vingarzan <vingarzan(a)gmail.com>
Date: 2024-11-06T09:38:49+01:00
ims_registrar_scscf: fixing em_max_expires
(cherry picked from commit 3f38206d88af0fae4c64ee3072eb78ea68f813cb)
- URL: https://github.com/kamailio/kamailio/commit/cfb143196d0b727f16add51590bc007…
Author: Xenofon Karamanos <22965395+xkaraman(a)users.noreply.github.com>
Date: 2024-11-06T09:39:02+01:00
db_schema: Add ims_icscf db schema
(cherry picked from commit e2ea727988828a9683ef112637e25ee4d58032f7)
- URL: https://github.com/kamailio/kamailio/commit/af963c81775b9c93d37428fe86264cb…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:39:46+01:00
ratelimit: use core str comparison functions
(cherry picked from commit c44a349964081d397ab9efa3504737bf369f8cf5)
- URL: https://github.com/kamailio/kamailio/commit/466c5419634a7cb9c9f3cf38b15f36d…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:40:13+01:00
pipelimit: use core str comparison functions
(cherry picked from commit 9ee189883549faffb21d3ae113dafd7ad95757af)
- URL: https://github.com/kamailio/kamailio/commit/ac908d6a4cee146c35c28210fa937aa…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2024-11-06T09:40:21+01:00
lrkproxy: use core str comparison functions and macros
(cherry picked from commit c67d8fa0b1015d73b34430f6f8a6afe22ca10cbe)
- URL: https://github.com/kamailio/kamailio/commit/61d3cc66f97f283c78bec77244bc616…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:40:32+01:00
topos: catch ACK without contact that needs no storage updates
(cherry picked from commit 824e81319b60054feb81c37b3a8be80523f8c95d)
- URL: https://github.com/kamailio/kamailio/commit/19729e29b24915b84079831a37e9ade…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:40:52+01:00
topos: extended error log message
- ensure headers are parsed for storage record
(cherry picked from commit a6b924be7fd7d4ce6a92ad5a0247077b09a29474)
- URL: https://github.com/kamailio/kamailio/commit/fa9965d33cec01fd503bb89f2076b93…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:02+01:00
dispatcher: debug messages for checking active destinations
(cherry picked from commit 3e5f8deced0cb05710e631601e9098505f1d230a)
- URL: https://github.com/kamailio/kamailio/commit/18dad74a091e693a0bf939dddf14434…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:11+01:00
core: parser sdp - check len gor extracting fmtp
(cherry picked from commit d10257fbfdbb3e3e73c0fe60a224585822bdd7b3)
- URL: https://github.com/kamailio/kamailio/commit/72f08c6fff97d3a2498498eb01ce6c1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:19+01:00
topos: deal with BYE without contact header for mode 1
(cherry picked from commit a4f0ee5da93ad64d449c7a95ecad2f3d70aeb975)
- URL: https://github.com/kamailio/kamailio/commit/08b4a6d280f851389252f4016e90325…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:32+01:00
timer: formatted exported structures
(cherry picked from commit 8e2541ec6126b5665e92cde5eaf17f5a4970cb8d)
- URL: https://github.com/kamailio/kamailio/commit/e233bc60092242e886a0336104435cd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:44+01:00
timer: export timer_enable(...) to kemi
- GH #4008
(cherry picked from commit ad919796b24d0c38af136cbad2563e6f98df4b74)
- URL: https://github.com/kamailio/kamailio/commit/351157cad257986a014dc659231ae0e…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:41:53+01:00
core: parser sdp - check body end for extract_ice_option()
(cherry picked from commit 79d7fae0f26f577356f017cfff5e00c348cf259c)
- URL: https://github.com/kamailio/kamailio/commit/a52fe973b064e288d9f150a6c36cb35…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-11-06T09:42:09+01:00
timer: docs - updates to examples
(cherry picked from commit 21c7066842a034d8674e5fac2b7c6fd38b0073e8)
- URL: https://github.com/kamailio/kamailio/commit/b292837507dd60f45ebc1cca8317b6c…
Author: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-11-06T09:42:37+01:00
snmpstats: use proper name for ims module in docs
(cherry picked from commit 6c408ff8c7b558a725d67898d5f1a8dc3d717c61)
- URL: https://github.com/kamailio/kamailio/commit/bf038a0a84bdecd69d749464880826f…
Author: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-11-06T09:42:48+01:00
sst: use proper name for ims dialog module in docs
(cherry picked from commit 3b3c60f94dd93e460d5bda40c73b2052a4f1bf33)
Hello,
about 8 months since the last major release v5.8.x, therefore it is the
time to plan a bit the next steps for getting v6.0.0 out.
The Kamailio Developers Meeting is schedule in Dusseldorf, Germany
during November 19-20, 2024, where we expect to push out a consistent
number of updates. Then maybe we can wait for another 2 weeks or so to
settle down/finish those updates. After that, if no other new features
are planned by developers in short term, we can enter the testing phase,
so the new major version can be released during the second part of
January 2025 or first part of February 2025.
Therefore, if you have new features under development that might require
more than 1-1.5 months from now, and you want to get them in v6.0.0, let
us know to plan properly.
Other time lines suggestions to get to v6.0.0 are also welcome!
Cheers,
Daniel
--
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Hello,
Kamailio SIP Server project is organizing another meeting of its
developers and community members during November 19-20, 2024 (Tue-Wed),
hosted again by sipgate.de in Dusseldorf, Germany.
The event is intended to facilitate the interaction between Kamailio
developers and contributors in order to offer a convenient environment
for working together on several topics of high interest for the project,
including writing code for Kamailio and its tools, improving
documentation, or discuss about future development.
Everyone from the community is welcome to join, developer or user
interested in helping the project. Please note we have a limited
capacity of seats in the meeting room, the main policy for accepting
participants being first come first server. Also, very important to be
aware that this is not an event to learn how to use Kamailio.
More details about the event, the venue, how to register, are available at:
 * https://www.kamailio.org/w/developers-meeting/
Looking forward to those two intensive hacking Kamailio days in Dusseldorf!
Cheers,
Daniel
--
Daniel-Constantin Mierla (@ asipto.com)
twitter.com/miconda -- linkedin.com/in/miconda
Kamailio Consultancy, Training and Development Services -- asipto.com
Module: kamailio
Branch: master
Commit: cf54baa30db65a96bd732295200503b99b566914
URL: https://github.com/kamailio/kamailio/commit/cf54baa30db65a96bd732295200503b…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2024-11-05T18:01:09+01:00
modules: readme files regenerated - snmpstats ... [skip ci]
---
Modified: src/modules/snmpstats/README
Modified: src/modules/sst/README
---
Diff: https://github.com/kamailio/kamailio/commit/cf54baa30db65a96bd732295200503b…
Patch: https://github.com/kamailio/kamailio/commit/cf54baa30db65a96bd732295200503b…
---
diff --git a/src/modules/snmpstats/README b/src/modules/snmpstats/README
index 407b6def697..83ee6cd975c 100644
--- a/src/modules/snmpstats/README
+++ b/src/modules/snmpstats/README
@@ -282,10 +282,11 @@ Chapter 1. Admin Guide
* usrloc - all scalars and tables relating to users and contacts are
dependent on the usrloc module. If the module is not loaded, the
respective tables will be empty.
- * dialog or dialog-ng - all scalars relating to the number of dialogs
- are dependent on the presence of a dialog module. Furthermore, if
- the module is not loaded, then the kamailioDialogLimitMinorEvent,
- and kamailioDialogLimitMajorEvent alarm will be disabled.
+ * dialog or ims_dialog - all scalars relating to the number of
+ dialogs are dependent on the presence of a dialog module.
+ Furthermore, if the module is not loaded, then the
+ kamailioDialogLimitMinorEvent, and kamailioDialogLimitMajorEvent
+ alarm will be disabled.
The contents of the kamailioSIPMethodSupportedTable change depending on
which modules are loaded.
diff --git a/src/modules/sst/README b/src/modules/sst/README
index a5bd40b681d..9cf8dba51c6 100644
--- a/src/modules/sst/README
+++ b/src/modules/sst/README
@@ -170,7 +170,7 @@ Chapter 1. Admin Guide
3.1. Kamailio Modules
The following modules must be loaded before this module:
- * dialog or dialog-ng - dialog module and its dependencies. (tm)
+ * dialog or ims_dialog - dialog module and its dependencies. (tm)
* sl - stateless module.
3.2. External Libraries or Applications
@@ -293,7 +293,7 @@ modparam("sst", "sst_flag", 6)
route {
...
if (method=="INVITE") {
- dlg_manage(); # Track the dialog
+ dlg_manage(); # Track the dialog
setflag(6); # set the sst flag
}
...
Module: kamailio
Branch: master
Commit: 6c408ff8c7b558a725d67898d5f1a8dc3d717c61
URL: https://github.com/kamailio/kamailio/commit/6c408ff8c7b558a725d67898d5f1a8d…
Author: Henning Westerholt <hw(a)gilawa.com>
Committer: Henning Westerholt <hw(a)gilawa.com>
Date: 2024-11-05T16:45:50Z
snmpstats: use proper name for ims module in docs
---
Modified: src/modules/snmpstats/doc/snmpstats_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/6c408ff8c7b558a725d67898d5f1a8d…
Patch: https://github.com/kamailio/kamailio/commit/6c408ff8c7b558a725d67898d5f1a8d…
---
diff --git a/src/modules/snmpstats/doc/snmpstats_admin.xml b/src/modules/snmpstats/doc/snmpstats_admin.xml
index 12a6ee152c0..538908e2573 100644
--- a/src/modules/snmpstats/doc/snmpstats_admin.xml
+++ b/src/modules/snmpstats/doc/snmpstats_admin.xml
@@ -215,7 +215,7 @@
<listitem>
<para>
- <emphasis>dialog or dialog-ng</emphasis> - all scalars relating to the number of dialogs are
+ <emphasis>dialog or ims_dialog</emphasis> - all scalars relating to the number of dialogs are
dependent on the presence of a dialog module. Furthermore, if the module is
not loaded, then the kamailioDialogLimitMinorEvent, and kamailioDialogLimitMajorEvent
alarm will be disabled.
<!-- Kamailio Pull Request Template -->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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 modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [X] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [X] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Long overdue clean-up of `app_python3`; remove legacy modules and rely solely on KEMI.
Bring it in sync with `app_python3s`.
Larger background: this is part I of a series of commits to enable free-threading builds of python to be used in kamailio.
https://py-free-threading.github.io/
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3986
-- Commit Summary --
* app_python3: removal of legacy modules
-- File Changes --
M src/modules/app_python3/app_python3_mod.c (14)
D src/modules/app_python3/mod_Core.c (68)
D src/modules/app_python3/mod_Core.h (36)
D src/modules/app_python3/mod_Logger.c (266)
D src/modules/app_python3/mod_Logger.h (37)
D src/modules/app_python3/mod_Ranks.c (96)
D src/modules/app_python3/mod_Ranks.h (35)
D src/modules/app_python3/mod_Router.c (84)
D src/modules/app_python3/mod_Router.h (36)
M src/modules/app_python3/python_iface.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3986.patchhttps://github.com/kamailio/kamailio/pull/3986.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3986
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3986(a)github.com>
Module: kamailio
Branch: master
Commit: 0ffe157bc13e7759ae1cee63a584fad4ac9eb38f
URL: https://github.com/kamailio/kamailio/commit/0ffe157bc13e7759ae1cee63a584fad…
Author: S-P Chan <shihping.chan(a)gmail.com>
Committer: space88man <shihping.chan(a)gmail.com>
Date: 2024-11-05T11:01:08+08:00
app_python3: refactor GIL and thread state handling
* KEMI Python scripts that use Python threading for background jobs
would observe that the Python threads are not running
This is due to not releasing the GIL when returning to the Kamailio
event loop from KEMI calls
* The module was using PyGILState_Ensure / PyGILState_Release to
ensure thread-correctness
It turns out that in this case these are the wrong functions to use
The main thread is already correct due to Py_Initialize();
the PyGILState_xxx functions are redundant
To release the GIL so Python threads run we use the macros
Py_BLOCK_THREADS/Py_UNBLOCK_THREADS
Note: the PyGILState_XXX functions are for C-threads created
by Python unaware libraries
---
Modified: src/modules/app_python3/app_python3_mod.c
Modified: src/modules/app_python3/apy_kemi.h
Modified: src/modules/app_python3/python_exec.c
---
Diff: https://github.com/kamailio/kamailio/commit/0ffe157bc13e7759ae1cee63a584fad…
Patch: https://github.com/kamailio/kamailio/commit/0ffe157bc13e7759ae1cee63a584fad…
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [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 modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [x] Small bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [x] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
In TLS WolfSSL, enable initialization of the cipher_list from the domain config.
Also from this setting kamailio exposes dangerous ciphers like RC4, NULL
| ssl-enum-ciphers:
| TLSv1.2:
| ciphers:
| TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA384 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_256_CBC_SHA (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_RC4_128_SHA (secp256r1) - C
| TLS_ECDHE_ECDSA_WITH_AES_128_CCM (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_128_CCM_8 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_256_CCM_8 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256-draft (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_NULL_SHA (secp256r1) - F
| TLS_PSK_WITH_CHACHA20_POLY1305_SHA256 - unknown
| TLS_ECDHE_PSK_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
| TLS_ECDHE_PSK_WITH_AES_128_CBC_SHA256 (secp256r1) - A
| TLS_ECDHE_PSK_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_ECDHE_PSK_WITH_NULL_SHA256 (secp256r1) - F
| compressors:
| NULL
| cipher preference: server
| warnings:
| Broken cipher RC4 is deprecated by RFC 7465
| TLSv1.3:
| ciphers:
| TLS_AKE_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_AKE_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
| TLS_AKE_WITH_AES_128_CCM_SHA256 (secp256r1) - A
| TLS_AKE_WITH_AES_128_CCM_8_SHA256 (secp256r1) - A
| TLS_AKE_WITH_NULL_SHA256 (secp256r1) - F
| TLS_AKE_WITH_NULL_SHA384 (secp256r1) - F
| cipher preference: server
|_ least strength: unknown
After apply patch:
| ssl-enum-ciphers:
| TLSv1.2:
| ciphers:
| TLS_ECDHE_ECDSA_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| TLS_ECDHE_ECDSA_WITH_AES_128_CCM (secp256r1) - A
| compressors:
| NULL
| cipher preference: server
| TLSv1.3:
| ciphers:
| TLS_AKE_WITH_AES_128_GCM_SHA256 (secp256r1) - A
| TLS_AKE_WITH_AES_256_GCM_SHA384 (secp256r1) - A
| TLS_AKE_WITH_CHACHA20_POLY1305_SHA256 (secp256r1) - A
| cipher preference: server
|_ least strength: A
version: kamailio 5.8.3 (x86_64/linux) 6f8a04-dirty
AlmaLinux release 8.10 (Cerulean Leopard)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4012
-- Commit Summary --
* tls_wolfssl: Initialize cipher_list for domain #3920
-- File Changes --
M src/modules/tls_wolfssl/tls_domain.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4012.patchhttps://github.com/kamailio/kamailio/pull/4012.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4012
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4012(a)github.com>
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio…
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.o…
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment that
includes the token `/notstale`. Also, any comment postpone the `expire` timeline,
being considered that there is interest in pursuing the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
We are facing a hang issue with Kamailio for the get_profile_size method. Randomly, the Kamailio got hangs, and the CPU went 100%.
During the hanging time, we generated the TRAP and we could see that the hang happened on the get_profile_size method. We are getting this hang randomly in dlg_profile.c of the following lines:
The hang occurs, causing the CPU to spike to 100% at one of the following lines randomly:
1. if(value->len == ph->value.len && memcmp(value->s, ph->value.s, value->len) == 0) {
2. ph = ph->next;
3. while(ph != profile->entries[i].first);
During our analysis, we found that PROCESS ID 7608 gets a spike of 100% utilization.
We suspect there may be an issue with the processing of the 'ph' variable, but we couldn't identify the root cause. I've attached the Kamailio TRAP for further details. Could you please suggest what might be causing this problem and how we can resolve it?
<!--
Explain what you did, what you expected to happen, and what actually happened.
-->
### Troubleshooting
We have analysed the coredump and TRAP, And found that the issue could be from the following lines:
1. if(value->len == ph->value.len && memcmp(value->s, ph->value.s, value->len) == 0) {
2. ph = ph->next;
3. while(ph != profile->entries[i].first);
#### Reproduction
This issue is occurring randomly.
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
I have attached the TRAP data.
---start 7608 -----------------------------------------------------
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
get_profile_size (profile=0x7f7095698f50, value=0x7ffd5e21db20) at dlg_profile.c:860
860 }while( ph!=profile->entries[i].first );
#0 get_profile_size (profile=0x7f7095698f50, value=0x7ffd5e21db20) at dlg_profile.c:860
n = 0
i = 9
ph = 0x7f70958d3c98
#1 0x00007f7195585785 in w_get_profile_size_helper (msg=0x7f7198418558, profile=0x7f7095698f50, value=0x7ffd5e21db20, spd=0x7f71983a8cf0) at dialog.c:941
size = 32625
val = {rs = {s = 0x7ffd5e21da80 "\260\332!^\375\177", len = 591976160}, ri = xxxxxxxx77096, flags = 32765}
__func__ = "w_get_profile_size_helper"
#2 0x00007f7195585fd2 in w_get_profile_size3 (msg=0x7f7198418558, profile=0x7f7095698f50 "\200\220i\225p\177", value=0x7f71983b4b30 "80;\230q\177", result=0x7f71983a8cf0 "\004") at dialog.c:982
pve = 0x7f71983b4b30
val_s = {s = 0x7f7198346dd0 "2777995", len = 7}
spd = 0x7f71983a8cf0
__func__ = "w_get_profile_size3"
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
#### Log Messages
When Kamailio hangs, the logs are not written to the kamailio.log file.
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
#### SIP Traffic
I have attached the TRAP file.
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
### Possible Solutions
We are expecting some kind of solution for it.
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
kamailio version is 5.5.5```
* **Operating System**:
[gdb_kamailio_trap.zip](https://github.com/user-attachments/files/16581474/g…
```
"Debian GNU/Linux 10 (buster)"```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3947
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3947(a)github.com>
<!--
Kamailio Project uses GitHub Issues only for bugs in the code or feature requests. Please use this template only for bug reports.
If you have questions about using Kamailio or related to its configuration file, ask on sr-users mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-users.lists.kamailio…
If you have questions about developing extensions to Kamailio or its existing C code, ask on sr-dev mailing list:
* https://lists.kamailio.org/mailman3/postorius/lists/sr-dev.lists.kamailio.o…
Please try to fill this template as much as possible for any issue. It helps the developers to troubleshoot the issue.
Note that an issue report may be closed automatically after about 2 months
if there is no interest from developers or community users on pursuing it, being
considered expired. In such case, it can be reopened by writing a comment that includes
the token `/notexpired`. About two weeks before considered expired, the issue is
marked with the label `stale`, trying to notify the submitter and everyone else
that might be interested in it. To remove the label `stale`, write a comment that
includes the token `/notstale`. Also, any comment postpone the `expire` timeline,
being considered that there is interest in pursuing the issue.
If there is no content to be filled in a section, the entire section can be removed.
You can delete the comments from the template sections when filling.
You can delete next line and everything above before submitting (it is a comment).
-->
### Description
Hello, I am using ndb_redis module with TLS and redis-cluster. kamailio connects to the cluster endpoint when getting data, gets a 'MOVED' response and prints below error, it does not get data from the new host.
### Troubleshooting
I have verified that I can connect to the cluster endpoint and the host in 'MOVED' using redis-cli on the system that kamailio is running on. I tried to connect to a self hosted cluster without TLS, it works as expected. It also works as expected with TLS and a single redis host.
#### Reproduction
Connect to a redis-cluster over TLS
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
2024-06-25T20:48:53.626708963Z 2024-06-25 20:48:53.626584 3(17) NOTICE: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:437]: redisc_get_server(): Hash 31807 (ra)
2024-06-25T20:48:53.626710053Z 2024-06-25 20:48:53.626600 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:440]: redisc_get_server(): Entry 31807 (ra)
2024-06-25T20:48:53.626711073Z 2024-06-25 20:48:53.626636 3(17) NOTICE: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:444]: redisc_get_server(): Using entry 31807 (ra)
2024-06-25T20:48:53.626712073Z 2024-06-25 20:48:53.626651 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:1030]: redisc_exec(): rsrv->ctxRedis = 0x556b4456dc20
2024-06-25T20:48:53.626713073Z 2024-06-25 20:48:53.626667 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:1036]: redisc_exec(): rsrv->ctxRedis = 0x556b4456dc20
2024-06-25T20:48:53.626810463Z 2024-06-25 20:48:53.626762 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:896]: check_cluster_reply(): Redis replied: "MOVED 3667 testdbredis-masked-hostname.00000000001110000000.130-characters-long.00000000000011111111100000000.availability-zone.amazonaws.com:6379"
2024-06-25T20:48:53.626811523Z 2024-06-25 20:48:53.626777 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:904]: check_cluster_reply(): Port "6379" [4] => 6379
2024-06-25T20:48:53.626816413Z 2024-06-25 20:48:53.626793 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:914]: check_cluster_reply(): Host "testdbredis-masked-hostname.00000000001110000000.130-characters-long.000000…" [130]
2024-06-25T20:48:53.626846113Z 2024-06-25 20:48:53.626810 3(17) NOTICE: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:925]: check_cluster_reply(): Name of new connection: testdbredis-masked-hostname.00000000001110000000.130-characters-long.00000000000011111111100000000.
2024-06-25T20:48:53.626851443Z 2024-06-25 20:48:53.626827 3(17) NOTICE: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:437]: redisc_get_server(): Hash 968070864 (testdbredis-masked-hostname.00000000001110000000.130-characters-long.00000000000011111111100000000.)
2024-06-25T20:48:53.626896173Z 2024-06-25 20:48:53.626844 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:440]: redisc_get_server(): Entry 31807 (ra)
2024-06-25T20:48:53.626897503Z 2024-06-25 20:48:53.626861 3(17) NOTICE: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:450]: redisc_get_server(): No entry found.
2024-06-25T20:48:53.626955363Z 2024-06-25 20:48:53.626877 3(17) ERROR: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:947]: check_cluster_reply(): failed to print server spec string
2024-06-25T20:48:53.626957263Z 2024-06-25 20:48:53.626893 3(17) DEBUG: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:1115]: redisc_exec(): rpl->rplRedis->type:6
2024-06-25T20:48:53.626958443Z 2024-06-25 20:48:53.626908 3(17) ERROR: {Kam 192.168.20.4 503874790_98536808 1 753067 INVITE}ndb_redis [redis_client.c:1117]: redisc_exec(): Redis error:MOVED 3667 testdbredis-masked-hostname.00000000001110000000.130-characters-long.00000000000011111111100000000.availability-zone.amazonaws.com:6379
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.8.1 (x86_64/linux) 384843
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, MEM_JOIN_FREE, 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_SEND_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: 384843
compiled on 19:05:30 Jun 25 2024 with gcc 12.2.0
```
* Hiredis(v1.2.0) and hiredis-cluster(v0.13.0) are installed from source, both with ssl support.
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
Debian 12
```
### Kamailio config snippet
```
loadmodule "ndb_redis.so"
.
.
# ----- ndb_redis params -----
modparam("ndb_redis", "server", "name=ra;addr=cluster.testdbredis-masked-hostname.0000000011111111100000.availability-zone.amazonaws.com;port=6379;tls=1")
modparam("ndb_redis", "init_without_redis", 1)
modparam("ndb_redis", "cluster", 1)
modparam("ndb_redis", "allow_dynamic_nodes", 1)
modparam("ndb_redis", "ca_path", "/etc/ssl/certs")
modparam("ndb_redis", "debug", 1)
.
.
redis_cmd("ra", "HMGET usr_preferences:entry::%s:%s blocked", "$rU", "$fU", "r");
if($redis(r=>value[0]) == 1) {
.
}
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3894
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3894(a)github.com>