Since updating to 5.6, Kamailio segfaults when calling `get_redirects("1")`.
```
#0 0x000055d12c93c527 in get_str_fparam (dst=dst@entry=0x7ffd246edfe0, msg=msg@entry=0x7f83973b6a80, param=0x0) at core/sr_module.c:1646
val = {n = 1, s = {s = 0x1 <error: Cannot access memory at address 0x1>, len = 749136082}, re = 0x1}
ret = <optimized out>
avp = <optimized out>
pv_val = {rs = {s = 0x1 <error: Cannot access memory at address 0x1>, len = 749136082}, ri = 1, flags = 0}
__func__ = "get_str_fparam"
#1 0x00007f838d2f0a17 in w_get_redirect2 (msg=0x7f83973b6a80, max_c=0x0, reason=<optimized out>) at uac_redirect.c:337
n = <optimized out>
max = <optimized out>
sreason = {s = 0x1a <error: Cannot access memory at address 0x1a>, len = -828131391}
__func__ = "w_get_redirect2"
#2 0x000055d12c975624 in do_action (h=h@entry=0x7ffd246ee820, a=a@entry=0x7f83cedd3670, msg=msg@entry=0x7f83973b6a80) at core/action.c:1085
ret = <optimized out>
v = <optimized out>
...
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3197
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3197(a)github.com>
Module: kamailio
Branch: master
Commit: 40d0c0ef19439ba03822c1a875ea0461f3f1106b
URL: https://github.com/kamailio/kamailio/commit/40d0c0ef19439ba03822c1a875ea046…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-08-10T22:46:19+02:00
modules: readme files regenerated - uac_redirect ... [skip ci]
---
Modified: src/modules/uac_redirect/README
---
Diff: https://github.com/kamailio/kamailio/commit/40d0c0ef19439ba03822c1a875ea046…
Patch: https://github.com/kamailio/kamailio/commit/40d0c0ef19439ba03822c1a875ea046…
---
diff --git a/src/modules/uac_redirect/README b/src/modules/uac_redirect/README
index 812755bc5d..c016467df9 100644
--- a/src/modules/uac_redirect/README
+++ b/src/modules/uac_redirect/README
@@ -205,10 +205,12 @@ modparam("uac_redirect","accept_filter",".*(a)siphub\.net")
4.4. acc_function (string)
Specifies the accounting function to be used. Just by defining this
- parameter, the accounting support will not be enabled. Accounting may
- only be enabled via two parameters set_accept_filter() scripting
+ parameter, the accounting is not done automatically, it has to be
+ requested via parameters of set_accept_filter() or other scripting
function.
+ Set it to empty string in order to disable binding to acc module.
+
Its values may be:
* acc_log_request
* acc_db_request
@@ -224,10 +226,7 @@ modparam("uac_redirect","acc_function","acc_db_request")
4.5. acc_db_table (string)
Specifies the accounting table to be used if DB accounting was chosen
- (acc_function was set to “acc_db_request”). Just by defining this
- parameter, the accounting support will not be enabled. Accounting may
- only be enabled via two parameters set_accept_filter() scripting
- function.
+ (acc_function was set to “acc_db_request” or “acc_request”).
The default value is “acc”.
Module: kamailio
Branch: master
Commit: 7ef109e6cd1ce7ecbfa56c31ff7555275e59095f
URL: https://github.com/kamailio/kamailio/commit/7ef109e6cd1ce7ecbfa56c31ff75552…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-08-10T22:39:03+02:00
uac_redirect: clarifications for acc_function mod param
---
Modified: src/modules/uac_redirect/doc/uac_redirect_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/7ef109e6cd1ce7ecbfa56c31ff75552…
Patch: https://github.com/kamailio/kamailio/commit/7ef109e6cd1ce7ecbfa56c31ff75552…
---
diff --git a/src/modules/uac_redirect/doc/uac_redirect_admin.xml b/src/modules/uac_redirect/doc/uac_redirect_admin.xml
index 1388fc740a4..71a448a6ae7 100644
--- a/src/modules/uac_redirect/doc/uac_redirect_admin.xml
+++ b/src/modules/uac_redirect/doc/uac_redirect_admin.xml
@@ -211,11 +211,14 @@ modparam("uac_redirect","accept_filter",".*(a)siphub\.net")
<section id="uac_redirect.p.acc_function">
<title><varname>acc_function</varname> (string)</title>
<para>
- Specifies the accounting function to be used. Just by defining
- this parameter, the accounting support will not be enabled.
- Accounting may only be enabled via two parameters
- <function moreinfo="none">set_accept_filter()</function>
- scripting function.
+ Specifies the accounting function to be used. Just by defining
+ this parameter, the accounting is not done automatically, it has to
+ be requested via parameters of
+ <function moreinfo="none">set_accept_filter()</function>
+ or other scripting function.
+ </para>
+ <para>
+ Set it to empty string in order to disable binding to acc module.
</para>
<para>
Its values may be:
@@ -248,13 +251,9 @@ modparam("uac_redirect","acc_function","acc_db_request")
<section id="uac_redirect.p.acc_db_table">
<title><varname>acc_db_table</varname> (string)</title>
<para>
- Specifies the accounting table to be used if DB accounting was
- chosen (<varname>acc_function</varname> was set to
- <quote>acc_db_request</quote>). Just by defining
- this parameter, the accounting support will not be enabled.
- Accounting may only be enabled via two parameters
- <function moreinfo="none">set_accept_filter()</function>
- scripting function.
+ Specifies the accounting table to be used if DB accounting was
+ chosen (<varname>acc_function</varname> was set to
+ <quote>acc_db_request</quote> or <quote>acc_request</quote>).
</para>
<para>
<emphasis>
<!-- 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
ISUP parameter Generic Number has a different structure (offset+2 is a Number Quilifirer Indicator) than other numbers, so this fix addresses it's decoding bug
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3209
-- Commit Summary --
* Fix isup generic_number and generic_number_nai decoding
-- File Changes --
M src/modules/sipt/ss7_parser.c (8)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3209.patchhttps://github.com/kamailio/kamailio/pull/3209.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3209
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3209(a)github.com>
Module: kamailio
Branch: master
Commit: d6ef0bf487e6246092683e0281f5323f056cdaf4
URL: https://github.com/kamailio/kamailio/commit/d6ef0bf487e6246092683e0281f5323…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2022-08-10T09:31:18+02:00
modules: readme files regenerated - siptrace ... [skip ci]
---
Modified: src/modules/siptrace/README
---
Diff: https://github.com/kamailio/kamailio/commit/d6ef0bf487e6246092683e0281f5323…
Patch: https://github.com/kamailio/kamailio/commit/d6ef0bf487e6246092683e0281f5323…
---
diff --git a/src/modules/siptrace/README b/src/modules/siptrace/README
index 2ec0fb1de3..ca57cc7a0c 100644
--- a/src/modules/siptrace/README
+++ b/src/modules/siptrace/README
@@ -575,7 +575,8 @@ modparam("siptrace", "evcb_msg", "ksr_siptrace_msg")
3.25. trace_dialog_ack (str)
- Enable tracing of in-dialog ACK.
+ Enable tracing of in-dialog ACK. Before this param, one must have set
+ the onsend() route and captured the outgoing ACK there.
Default value is 1 (enabled).
@@ -586,7 +587,10 @@ modparam("siptrace", "trace_dialog_ack", 1)
3.26. trace_dialog_spiral (str)
- Enable tracing of dialog spirals.
+ Enable tracing of dialog spirals. A spiraled dialog is a dialog
+ established by a SIP INVITE that loops back to the same kamailio(as
+ next hop). Right now, inside the siptrace code, a spiraled dialog is
+ identified by (*params->param == NULL).
Default value is 1 (enabled).
Module: kamailio
Branch: master
Commit: b4ab0fdcb9f49b2a3b3cac24b20a0f4e50283468
URL: https://github.com/kamailio/kamailio/commit/b4ab0fdcb9f49b2a3b3cac24b20a0f4…
Author: Stefan Mititelu <stefan-cristian.mititelu(a)1and1.ro>
Committer: Stefan Mititelu <stefan-cristian.mititelu(a)1and1.ro>
Date: 2022-08-10T10:24:51+03:00
siptrace: Update doc for the two new modparams
---
Modified: src/modules/siptrace/doc/siptrace_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/b4ab0fdcb9f49b2a3b3cac24b20a0f4…
Patch: https://github.com/kamailio/kamailio/commit/b4ab0fdcb9f49b2a3b3cac24b20a0f4…
---
diff --git a/src/modules/siptrace/doc/siptrace_admin.xml b/src/modules/siptrace/doc/siptrace_admin.xml
index ec5a5da63c..430c35b4f8 100644
--- a/src/modules/siptrace/doc/siptrace_admin.xml
+++ b/src/modules/siptrace/doc/siptrace_admin.xml
@@ -656,6 +656,7 @@ modparam("siptrace", "evcb_msg", "ksr_siptrace_msg")
<title><varname>trace_dialog_ack</varname> (str)</title>
<para>
Enable tracing of in-dialog ACK.
+ Before this param, one must have set the onsend() route and captured the outgoing ACK there.
</para>
<para>
Default value is 1 (enabled).
@@ -674,6 +675,8 @@ modparam("siptrace", "trace_dialog_ack", 1)
<title><varname>trace_dialog_spiral</varname> (str)</title>
<para>
Enable tracing of dialog spirals.
+ A spiraled dialog is a dialog established by a SIP INVITE that loops back to the same kamailio(as next hop).
+ Right now, inside the siptrace code, a spiraled dialog is identified by (*params->param == NULL).
</para>
<para>
Default value is 1 (enabled).