Module: kamailio
Branch: 5.1
Commit: a40d65a8ae22d900118f92e3010e383825db9ebd
URL: https://github.com/kamailio/kamailio/commit/a40d65a8ae22d900118f92e3010e383…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-08-06T09:48:58+02:00
db_mysql: remove build warning, unneeded include (#1777)
db_mysql: mysql_version.h is already included at mysql.h (GH #1777)
> In file included from km_dbase.c:38:
> /usr/include/mariadb/mysql_version.h:3:2: warning: This file should not be included by clients, include only <mysql.h> [-W#warnings]
> #warning This file should not be included by clients, include only <mysql.h>
(cherry picked from commit 57263490bd1dedbb4b7fdad6046880980feea040)
---
Modified: src/modules/db_mysql/km_dbase.c
---
Diff: https://github.com/kamailio/kamailio/commit/a40d65a8ae22d900118f92e3010e383…
Patch: https://github.com/kamailio/kamailio/commit/a40d65a8ae22d900118f92e3010e383…
---
diff --git a/src/modules/db_mysql/km_dbase.c b/src/modules/db_mysql/km_dbase.c
index aa960f4963..850dd89d9c 100644
--- a/src/modules/db_mysql/km_dbase.c
+++ b/src/modules/db_mysql/km_dbase.c
@@ -35,7 +35,6 @@
#include <string.h>
#include <mysql.h>
#include <errmsg.h>
-#include <mysql_version.h>
#include "../../core/mem/mem.h"
#include "../../core/dprint.h"
#include "../../core/async_task.h"
Hi Mack,
looks indeed like an issue. Can you try with git master commit f50177003c21f. If your test is also ok, I will backport to stable branch
Cheers,
Henning
Am 04.08.19 um 19:49 schrieb Mack Hendricks:
Based on my tests, the memory leak is only exposed when you are using domain attributes, which are stored in the domain_attrs table. I wanted to see if anymore else is running into this issue.
Reproducible use case:
1) Insert the following into the database
insert into domain values (null,"aprilco.com<http://aprilco.com>","aprilco.com<http://aprilco.com>",now());
insert into domain_attrs values (null,"aprilco.com<http://aprilco.com>","pbx_type",0,"0",now());
insert into domain_attrs values (null,"aprilco.com<http://aprilco.com>","pbx_id",0,"65",now());
2) Open a new terminal window and execute:
watch "kamcmd core.shmmem"
3) Open up another terminal windows and execute:
while true; do kamcmd domain.reload; done
Expected Results:
You will see the shared memory being allocated, but never freed. The more entries you have in the domain_attrs table, the faster it will run out of memory.
Thanks,
Mack Hendricks / Head of Support / dOpenSource
web: http://dopensource.com<http://dopensource.com/>
support: +888-907-2085
dSIPRouter<http://dsiprouter.org/> - GUI focused on implementing Kamailio to provide SIP Trunking and PBX Hosting Services
_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users(a)lists.kamailio.org<mailto:sr-users@lists.kamailio.org>
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
Hello,
Recently we update kamailio fromversion 4.1.1 to 5.2. In this new version
we have facing following issue.
[image: missing_leg.png]
We tried to catch this message using t_on_reply and on_sl_reply but no
luck. Actually we need to forward those message to another server using
sip_trace. If using trace_mode=1 then all message forwarded perfectly. But
I need to set correlation_id with sip_trace method. So we need to catch
that message and tag the correlation_id with that. Could anyone please help
me on this? Is there anything I missing or any way to fix this?
Thanks in advance,
Salah