<!--
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
Installing Kamailio 5.8.5 on Debian 12, running kamdbctl create kamailio continually fails with error "ERROR: Creating extra tables failed at ims_icscf!"
### Troubleshooting
#### Reproduction
Create a brand new VM with Debian 12, clone Kamailio from git tag 5.8.5, and follow the steps:
make include_modules="db_mysql crypto http_async_client http_client jansson janssonrpcc json jsonrpcc lcr presence presence_dialoginfo presence_mwi presence_reginfo presence_xml tls utils uuid xmlops" cfg
make all
make install # Installs Kamailio in /usr/local/sbin
make install-systemd-debian
sed -i 's/^# DBENGINE/DBENGINE/' /usr/local/etc/kamailio/kamctlrc
kamdbctl create kamailio
Will result in the error occurring.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4124
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4124(a)github.com>
### Description
From the cmake timeline 3.0(2014) is called "modern cmake" and ~3.12/3.13(2018) is "more modern cmake" : https://www.youtube.com/watch?v=y7ndUhdQuU8
Since we are doing a major renovation on the kamailio build system should we target the "more modern" generation (that is already > 5 years old). This will encourage the project to follow cmake best practices.
Ping @xkaraman @miconda
Versions in debian: buster(3.13) bullseye(3.25) bookworm/trixie(3.30)
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/4078
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/4078(a)github.com>
<!-- 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 -->
- [x] PR should be backported to stable branches
- [ ] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This PR fixes a bug where when `flow_token_secret` was provided, it was not initialized properly and always set to an empty string.
- flow_token_secret is of type str and not char*
- check the length of the string instead of memory for initialization
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4125
-- Commit Summary --
* outbound: Fix flow_token_secret bug
-- File Changes --
M src/modules/outbound/outbound_mod.c (4)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4125.patchhttps://github.com/kamailio/kamailio/pull/4125.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4125
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4125(a)github.com>
Module: kamailio
Branch: master
Commit: 99d36df0a15bbb960b2d7ee5916d65a55b9b26cd
URL: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Committer: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2025-01-28T14:05:25Z
cmake/json: Remove find_package call. Use pkg-config instead.
---
Modified: src/modules/json/CMakeLists.txt
---
Diff: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
Patch: https://github.com/kamailio/kamailio/commit/99d36df0a15bbb960b2d7ee5916d65a…
---
diff --git a/src/modules/json/CMakeLists.txt b/src/modules/json/CMakeLists.txt
index 72df4d390f5..5d791dbd03d 100644
--- a/src/modules/json/CMakeLists.txt
+++ b/src/modules/json/CMakeLists.txt
@@ -2,13 +2,18 @@ file(GLOB MODULE_SOURCES "*.c")
add_library(${module_name} SHARED ${MODULE_SOURCES})
-find_package(json-c CONFIG)
-
-if(NOT json-c_FOUND)
- message(STATUS "json-c not found. looking with pkg-config")
- find_package(PkgConfig REQUIRED)
- pkg_check_modules(json-c REQUIRED IMPORTED_TARGET json-c)
- add_library(json-c::json-c ALIAS PkgConfig::json-c)
-endif()
+# TODO: When we have a proper cmake config file for json-c for most OS, we can
+# use that instead of pkg-config.
+# json-c v 0.14 and 0.15 have wrong include directories in their cmake config
+# files. uncomment the following line when we have a proper cmake config file
+# for json-c for most OS.
+# find_package(json-c 0.16 CONFIG)
+
+# if(NOT json-c_FOUND)
+message(STATUS "json-c not found. looking with pkg-config")
+find_package(PkgConfig REQUIRED)
+pkg_check_modules(json-c REQUIRED IMPORTED_TARGET json-c)
+add_library(json-c::json-c ALIAS PkgConfig::json-c)
+# endif()
target_link_libraries(${module_name} PRIVATE json-c::json-c)