Module: kamailio
Branch: master
Commit: 2063993c1ae54c07b39ea9deb8f735a47785c0ee
URL: https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2024-03-29T11:13:48+01:00
core: added fixup_spve1_pvar() helper
- comments to spveX pvar fixup helpers
---
Modified: src/core/mod_fix.c
Modified: src/core/mod_fix.h
---
Diff: https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
Patch: https://github.com/kamailio/kamailio/commit/2063993c1ae54c07b39ea9deb8f735a…
---
diff --git a/src/core/mod_fix.c b/src/core/mod_fix.c
index 0947f788461..bba3a469028 100644
--- a/src/core/mod_fix.c
+++ b/src/core/mod_fix.c
@@ -728,7 +728,9 @@ int fixup_free_spve_spve_igp(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings (spve)
+ * - n - how many params are spve; n+1 is name of pv
+ * - if pvmode==1, the last param pv has to be r/w
*/
int fixup_spve_n_pvar(void **param, int n, int param_no, int pvmode)
{
@@ -768,6 +770,15 @@ int fixup_spve_pvar(void **param, int param_no)
return fixup_spve_n_pvar(param, 1, param_no, 0);
}
+/**
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
+ */
+int fixup_spve1_pvar(void **param, int param_no)
+{
+ return fixup_spve_n_pvar(param, 1, param_no, 1);
+}
+
/**
*
*/
@@ -777,7 +788,8 @@ int fixup_free_spve_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve2_pvar(void **param, int param_no)
{
@@ -793,7 +805,8 @@ int fixup_free_spve2_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve3_pvar(void **param, int param_no)
{
@@ -809,7 +822,8 @@ int fixup_free_spve3_pvar(void **param, int param_no)
}
/**
- *
+ * - first params are dynamic strings
+ * - last param pv has to be r/w
*/
int fixup_spve4_pvar(void **param, int param_no)
{
diff --git a/src/core/mod_fix.h b/src/core/mod_fix.h
index a202c4ade2b..d3f954fb1c2 100644
--- a/src/core/mod_fix.h
+++ b/src/core/mod_fix.h
@@ -147,6 +147,7 @@ int fixup_free_igp_all(void **param, int param_no);
int fixup_spve_igp(void **param, int param_no);
int fixup_free_spve_igp(void **param, int param_no);
int fixup_spve_pvar(void **param, int param_no);
+int fixup_spve1_pvar(void **param, int param_no);
int fixup_free_spve_pvar(void **param, int param_no);
int fixup_spve2_pvar(void **param, int param_no);
int fixup_free_spve2_pvar(void **param, int param_no);
While testing I noticed a strange behavior.
Usually when activated, `sipdump.enable 1` for the specific interface will dump needed logs and captures to `/tmp/`.
After stopping the dump with `sipdump.enable 0` deleting all captures starting with `kamailio.*` under `/tmp/` and reactivating the dump with `sipdump.enable 1` without restarting kamailio, the service will not create new captures under `/tmp/`.
This behavior was reproducible.
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3798
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3798(a)github.com>
### Description
Unable to upgrade Kamailio 5.7 on CentOS7
Error:
```
tls_mod.c: In function ‘fork_child’:
tls_mod.c:348:2: error: ‘for’ loop initial declarations are only allowed in C99 mode
for(int k = 0; k < 16; k++) {
^
tls_mod.c:348:2: note: use option -std=c99 or -std=gnu99 to compile your code
make[2]: *** [tls_mod.o] Error 1
make[1]: *** [modules] Error 1
```
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
Current installed version:
```
version: kamailio 5.7.4 (x86_64/linux) 2e6e87
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3796
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3796(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
- [x] Tested changes locally
- [x] Related to issue #3796 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
This PR fixes the compiles error regarding initial declarations in `for` loops
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3797
-- Commit Summary --
* tls: Fix ‘for’ loop initial declarations error
* file_out: FIx ‘for’ loop initial declarations error
-- File Changes --
M src/modules/file_out/file_out.c (11)
M src/modules/tls/tls_mod.c (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3797.patchhttps://github.com/kamailio/kamailio/pull/3797.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3797
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3797(a)github.com>