### Description
This new code in pdttree.c is not correct for this new pdt mode, it just print's a debug log instead of error. The return value should be 0 instead of 1 in case _pdt_mode is 1 otherwise it will still not start.
<code>
if(_pdt_mode & 1) {
LM_DBG("prefix already allocated [%.*s/[%.*s] - ignoring\n",
sp->len, sp->s, sd->len, sd->s);
return -1;
} else {
LM_ERR("prefix already allocated [%.*s/[%.*s]\n", sp->len, sp->s,
sd->len, sd->s);
return -1;
}
</code>
### Troubleshooting
#### Reproduction
#### Debugging Data
#### Log Messages
#### SIP Traffic
### Possible Solutions
### Additional Information
* **Operating System**:
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3626
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3626(a)github.com>
Module: kamailio
Branch: master
Commit: d9189306f38e8f79c16e3a9ea38a2fe90fc82fb7
URL: https://github.com/kamailio/kamailio/commit/d9189306f38e8f79c16e3a9ea38a2fe…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-11-02T13:16:27+01:00
modules: readme files regenerated - http_client ... [skip ci]
---
Modified: src/modules/http_client/README
---
Diff: https://github.com/kamailio/kamailio/commit/d9189306f38e8f79c16e3a9ea38a2fe…
Patch: https://github.com/kamailio/kamailio/commit/d9189306f38e8f79c16e3a9ea38a2fe…
---
diff --git a/src/modules/http_client/README b/src/modules/http_client/README
index e10556dad09..6ffe4cab0cd 100644
--- a/src/modules/http_client/README
+++ b/src/modules/http_client/README
@@ -266,6 +266,13 @@ Chapter 1. Admin Guide
3.20. config_file (string)
3.21. netinterface (string)
+ The parameters are loaded in order. That can lead to unexpected
+ behavior: If httpcon is set at first, the default values for all other
+ parameters are used, and not the values that might be set after
+ httpcon. For example, if setting verify_peer=0 or verify_host=0 after
+ httpcon, the certificates are checked and self-signed certificates are
+ rejected nevertheless.
+
3.1. httpredirect (int)
If set to 1, enabled, http_client will follow HTTP 302 Redirects. If
This was originaly fixed in #3601, but that did not handle the change in #3612 very well.
<!-- 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
Fix for undefined symbols when using older/unsupported OpenSSL.
This was originaly fixed in #3601, but that did not handle the change in #3612 very well.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3616
-- Commit Summary --
* cdp: Fix for undefined symbols when using older/unsupported OpenSSL
-- File Changes --
M src/modules/cdp/receiver.c (12)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3616.patchhttps://github.com/kamailio/kamailio/pull/3616.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3616
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3616(a)github.com>
Module: kamailio
Branch: master
Commit: 02dd4e2c883585601f4dbcea0b63b858b4dd24d6
URL: https://github.com/kamailio/kamailio/commit/02dd4e2c883585601f4dbcea0b63b85…
Author: Benjamin <92934023+tietzsg(a)users.noreply.github.com>
Committer: GitHub <noreply(a)github.com>
Date: 2023-11-02T13:09:57+01:00
http_client: add information about parameter loading (#3619)
* http_client: add information about parameter loading
- Inform that the order of the parameters is important when httpcon is loaded first
* http_client: docs - typos from previous commit
---------
Co-authored-by: Daniel-Constantin Mierla <miconda(a)gmail.com>
---
Modified: src/modules/http_client/doc/http_client_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/02dd4e2c883585601f4dbcea0b63b85…
Patch: https://github.com/kamailio/kamailio/commit/02dd4e2c883585601f4dbcea0b63b85…
---
diff --git a/src/modules/http_client/doc/http_client_admin.xml b/src/modules/http_client/doc/http_client_admin.xml
index 1449dc824d8..0e182cc95e3 100644
--- a/src/modules/http_client/doc/http_client_admin.xml
+++ b/src/modules/http_client/doc/http_client_admin.xml
@@ -88,6 +88,13 @@
<section>
<title>Parameters</title>
+ <para>
+ The parameters are loaded in order. That can lead to unexpected behavior:
+ If httpcon is set at first, the default values for all other parameters are used,
+ and not the values that might be set after httpcon.
+ For example, if setting verify_peer=0 or verify_host=0 after httpcon,
+ the certificates are checked and self-signed certificates are rejected nevertheless.
+ </para>
<section id="http_client.p.httpredirect">
<title><varname>httpredirect</varname> (int)</title>
<para>
- Inform that the order of the parameters is important when httpcon is loaded first
#### 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, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] 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
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3619
-- Commit Summary --
* http_client: add information about parameter loading
-- File Changes --
M src/modules/http_client/doc/http_client_admin.xml (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3619.patchhttps://github.com/kamailio/kamailio/pull/3619.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3619
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3619(a)github.com>