Module: kamailio
Branch: master
Commit: 14e82498f24dff5cf7ebd416e9bb88500583645b
URL: https://github.com/kamailio/kamailio/commit/14e82498f24dff5cf7ebd416e9bb885…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-11-17T11:45:06+01:00
secsipid: docs for secsipid_get_url()
---
Modified: src/modules/secsipid/doc/secsipid_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/14e82498f24dff5cf7ebd416e9bb885…
Patch: https://github.com/kamailio/kamailio/commit/14e82498f24dff5cf7ebd416e9bb885…
---
diff --git a/src/modules/secsipid/doc/secsipid_admin.xml b/src/modules/secsipid/doc/secsipid_admin.xml
index ecc9060ce3..878000efa5 100644
--- a/src/modules/secsipid/doc/secsipid_admin.xml
+++ b/src/modules/secsipid/doc/secsipid_admin.xml
@@ -207,11 +207,33 @@ request_route {
...
</programlisting>
</example>
+ </section>
+ <section id="secsipid.f.secsipid_get_url">
+ <title>
+ <function moreinfo="none">secsipid_get_url(url, ovar)</function>
+ </title>
<para>
- Further checks can be done with config operations, decoding the JWT header
- and payload using {s.select} and {s.decode.base64t} transformations
- together with jansson module.
+ Get the content of a URL and store the result in a variable.
+ </para>
+ <para>
+ The url parameters can contain pseudo-variables and ovar has to be
+ the name of a writtable pseudo-variable.
+ </para>
+ <para>
+ This function can be used from ANY_ROUTE.
</para>
+ <example>
+ <title><function>secsipid_get_url</function> usage</title>
+ <programlisting format="linespecific">
+...
+request_route {
+ ...
+ if(secsipid_get_url("https://$fd/stirshaken/cert.pem", "$var(pubkey)")) { ... }
+ ...
+}
+...
+</programlisting>
+ </example>
</section>
<section id="secsipid.f.secsipid_add_identity">
<title>
Hi,
Has anyone successfully compiled Kmailio with gcov? I tried the following commands but these do not work
```bash
make CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" cfg
make CFLAGS="-fprofile-arcs -ftest-coverage" LDFLAGS="-fprofile-arcs -ftest-coverage" all
```
I received the following compilation errors
```
...
corex_rpc.c:(.text+0x209a): undefined reference to `get_debug_facility'
corex_rpc.c:(.text+0x20d3): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2108): undefined reference to `_ksr_slog_func'
corex_rpc.c:(.text+0x2138): undefined reference to `log_stderr'
corex_rpc.c:(.text+0x2161): undefined reference to `log_color'
corex_rpc.c:(.text+0x218d): undefined reference to `dprint_color'
corex_rpc.c:(.text+0x2194): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21a0): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21c3): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x21cf): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2214): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x221c): undefined reference to `my_pid'
corex_rpc.c:(.text+0x2236): undefined reference to `process_no'
corex_rpc.c:(.text+0x2281): undefined reference to `log_color'
corex_rpc.c:(.text+0x22a5): undefined reference to `dprint_color_reset'
corex_rpc.c:(.text+0x22c3): undefined reference to `_km_log_func'
corex_rpc.c:(.text+0x22ca): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x22d6): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x22fa): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2306): undefined reference to `log_prefix_val'
corex_rpc.c:(.text+0x2349): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2361): undefined reference to `log_level_info'
corex_rpc.c:(.text+0x2373): undefined reference to `get_debug_facility'
corex_rpc.c:(.text+0x23bd): undefined reference to `dprint_crit'
corex_rpc.c:(.text+0x23c6): undefined reference to `dprint_crit'
collect2: error: ld returned 1 exit status
../../Makefile.rules:191: recipe for target 'corex.so' failed
make[2]: *** [corex.so] Error 1
Makefile:511: recipe for target 'modules' failed
make[1]: *** [modules] Error 1
make[1]: Leaving directory '/home/ubuntu/experiments/kamailio-gcov/src'
```
I suspect that my CFLAGS and LDFLAGS have overwritten the ones configured by Kamailio. However, I haven't successfully fixed these errors. You help/suggestions would be really appreciated!
Thanks
--
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/issues/2551
Module: kamailio
Branch: master
Commit: 04f301af45b9def08bac4eddedb8b78898c8c5dc
URL: https://github.com/kamailio/kamailio/commit/04f301af45b9def08bac4eddedb8b78…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-11-16T09:16:24+01:00
modules: readme files regenerated - acc ... [skip ci]
---
Modified: src/modules/acc/README
---
Diff: https://github.com/kamailio/kamailio/commit/04f301af45b9def08bac4eddedb8b78…
Patch: https://github.com/kamailio/kamailio/commit/04f301af45b9def08bac4eddedb8b78…
---
diff --git a/src/modules/acc/README b/src/modules/acc/README
index 2414364c70..baff8e8b32 100644
--- a/src/modules/acc/README
+++ b/src/modules/acc/README
@@ -795,6 +795,9 @@ modparam("acc", "acc_prepare_always", 1)
corresponding script variable is not defined or has $null value. If set
to 0, the value is saved as empty string (the existing behavior).
+ Database columns may need to be altered to DROP NOT NULL constraints
+ and DROP DEFAULT values in order to accept NULL values.
+
Default value is 0.
Example 1.9. acc_extra_nullable example
@@ -1148,6 +1151,9 @@ modparam("acc", "cdr_extra", "c1=$dlg_var(caller);c2=$dlg_var(callee)"
not defined in config operation (or set to $null) will be saved as
NULL.
+ Database columns may need to be altered to DROP NOT NULL constraints
+ and DROP DEFAULT values in order to accept NULL values.
+
Default value is 0.
Example 1.36. cdr_extra_nullable example
acc: docs - database column constraint alteration for acc_extra_nullable and cdr_extra_nullable [skip ci]
<!-- 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
- [ ] 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
- [ ] Tested changes locally
- [X] Related to issue #2531 (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
Documentation update related to https://github.com/kamailio/kamailio/issues/2531#issuecomment-724762135
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2550
-- Commit Summary --
* acc: docs - database column constraint alteration for acc_extra_nullable and cdr_extra_nullable [skip ci]
-- File Changes --
M src/modules/acc/doc/acc_admin.xml (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2550.patchhttps://github.com/kamailio/kamailio/pull/2550.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/2550