Added new example config for KEMI ruby. Tested and functional with basic kamailio.cfg
<!-- 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
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
Another KEMI config for a supported language (app_ruby)
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2026
-- Commit Summary --
* core: added example simple routing blocks/basic config for KEMI ruby
-- File Changes --
A misc/examples/kemi/kamailio-basic-kemi-ruby.rb (295)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2026.patchhttps://github.com/kamailio/kamailio/pull/2026.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2026
Hi Mack,
did you managed to test it as well?
Cheers,
Henning
Am 04.08.19 um 21:18 schrieb Mack Hendricks:
Hey Henning,
Thanks for the fast response. I will try it later tonight and let you know.
On Aug 4, 2019, at 3:16 PM, Henning Westerholt <hw(a)skalatan.de<mailto:hw@skalatan.de>> wrote:
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
--
Henning Westerholt - https://skalatan.de/blog/
Kamailio services - https://skalatan.de/services
I got this warning when building 5.2 on Debian Buster:
CC (gcc) [M db_mysql.so] km_dbase.o
In file included from km_dbase.c:38:
/usr/include/mariadb/mysql_version.h:3:2: warning: #warning This file should not be included by clients, include only <mysql.h> [-Wcpp]
#warning This file should not be included by clients, include only <mysql.h>
^~~~~~~
-- Juha
Module: kamailio
Branch: 5.2
Commit: 9db6d9cc7751684981c2b602b3bd6021edc3a7fb
URL: https://github.com/kamailio/kamailio/commit/9db6d9cc7751684981c2b602b3bd602…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2019-08-06T09:48:52+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/9db6d9cc7751684981c2b602b3bd602…
Patch: https://github.com/kamailio/kamailio/commit/9db6d9cc7751684981c2b602b3bd602…
---
diff --git a/src/modules/db_mysql/km_dbase.c b/src/modules/db_mysql/km_dbase.c
index ad02746c67..581e4e14be 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"