Use tcp_send_timeout config option also on listening socket to timeout outbound messages sent on passive inbound connections.
#### 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 #3443
#### Description
Based on the description of core parameter "tcp_send_timeout" the timeout should also work for sending on forked incoming tcp connections. But sending on a broken connection causes the kernel to use the default values of `tcp_retries1` and `tcp_retries2` , leading to try to send a SIP message for 15 minutes. This makes absolutely no sense in a real time kamailio application.
Following man 7 tcp TCP_USER_TIMEOUT can be used on recent Linux kernels to utilize tcp_send_timeout:
TCP_USER_TIMEOUT (since Linux 2.6.37)
This option takes an unsigned int as an argument. When the value is greater than 0, it specifies the maximum
amount of time in milliseconds that transmitted data may remain unacknowledged before TCP will forcibly close the
corresponding connection and return ETIMEDOUT to the application. If the option value is specified as 0, TCP will
use the system default.
Increasing user timeouts allows a TCP connection to survive extended periods without end-to-end connectivity. De‐
creasing user timeouts allows applications to "fail fast", if so desired. Otherwise, failure may take up to 20
minutes with the current system defaults in a normal WAN environment.
This option can be set during any state of a TCP connection, but is effective only during the synchronized states
of a connection (ESTABLISHED, FIN-WAIT-1, FIN-WAIT-2, CLOSE-WAIT, CLOSING, and LAST-ACK). Moreover, when used
with the TCP keepalive (SO_KEEPALIVE) option, TCP_USER_TIMEOUT will override keepalive to determine when to close
a connection due to keepalive failure.
The option has no effect on when TCP retransmits a packet, nor when a keepalive probe is sent.
This option, like many others, will be inherited by the socket returned by accept(2), if it was set on the listen‐
ing socket.
Further details on the user timeout feature can be found in RFC 793 and RFC 5482 ("TCP User Timeout Option").
Having a tcp connection break by firewall or network breakdown the retransmits to this destination are now aborted after `tcp_send_timeout` seconds with a
NOTICE: <core> [core/tcp_read.c:267]: tcp_read_data(): error reading: Connection timed out (110) ([1.2.3.4]:51151 ->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3528
-- Commit Summary --
* core: Add TCP_USER_TIMEOUT socket option on listening socket.
-- File Changes --
M src/core/tcp_main.c (13)
M src/core/tcp_options.h (7)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3528.patchhttps://github.com/kamailio/kamailio/pull/3528.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3528
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3528(a)github.com>
>From http://lists.kamailio.org/pipermail/sr-dev/2016-August/036231.html
On 24/08/16 10:17, Andreas Granig wrote:
> Hi,
>
> When translating strings with the dialplan module, you sometimes end up
> with very complex patterns for sanitizing the target string and
> performing some replacements, since for a given dialplan id, processing
> stops on the first match within the dialplan entries for a given dpid.
>
> The idea is to introduce a "continue" flag (default 0) in the dialplan
> table indicating to proceed with processing further dialplan entries
> within the given dpid after a match. The use case is to have a sanitize
> rule with highest priority which e.g. removes any spaces, dashes and
> parentheses from the target string, then with a lower priority do
> further processing with the cleaned up string, e.g. stripping leading
> double-zeroes or a plus when normalizing to E164 numbers, or replacing a
> single leading zero with the country code and so on.
>
> This is particularly useful when a user dials a number from an address
> book of some sort (e.g. on a mobile app) where number formats are stored
> with country-specific formating characters like "+1-(234)-567 890", and
> catching all of that in one rule results in really messy match/replace
> patterns.
--
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/764
Module: kamailio
Branch: 5.7
Commit: 60abd912f0fc2e237fb833d63250c184e7401ae5
URL: https://github.com/kamailio/kamailio/commit/60abd912f0fc2e237fb833d63250c18…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2023-11-13T13:32:50+01:00
modules: readme files regenerated - modules ... [skip ci]
---
Modified: src/modules/http_client/README
Modified: src/modules/tls/README
---
Diff: https://github.com/kamailio/kamailio/commit/60abd912f0fc2e237fb833d63250c18…
Patch: https://github.com/kamailio/kamailio/commit/60abd912f0fc2e237fb833d63250c18…
---
diff --git a/src/modules/http_client/README b/src/modules/http_client/README
index c3788a1c2cc..bb11b1a1d24 100644
--- a/src/modules/http_client/README
+++ b/src/modules/http_client/README
@@ -262,6 +262,13 @@ Chapter 1. Admin Guide
3.19. config_file (string)
3.20. 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
diff --git a/src/modules/tls/README b/src/modules/tls/README
index ed3c2908030..a5897da4f88 100644
--- a/src/modules/tls/README
+++ b/src/modules/tls/README
@@ -245,6 +245,10 @@ Chapter 1. Admin Guide
memory. For example, such case has been reported for Ubuntu 20.04 or
RedHat 8.
+ Note: with some particular combination of OS, openssl and mysql-client
+ libraries, there were reports of random crashes, in such case try to
+ set the db_mysql module parameter opt_ssl_mode to 1.
+
2. Quick Start
The default kamailio.cfg file has basic tls support included, it has to
- URL: https://github.com/kamailio/kamailio/commit/9081a586b32095b1d98ac9fef232816…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:06:00+01:00
core: dns cache - warnings on put for unlinked items
(cherry picked from commit 1bb1ba60992ffa35e8d36ed1dab98fdc36a2ea30)
- URL: https://github.com/kamailio/kamailio/commit/259812f03ec26d49776050ca5eb657f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:07:08+01:00
kamctl: check if kamctlrc is readable
- related to GH #3594
(cherry picked from commit a3fd3b12ca9b1c3688255e9d645085947052bc6d)
- URL: https://github.com/kamailio/kamailio/commit/b503b95a2a62a2e51a5cff20caaa302…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:07:21+01:00
kamdbctl: check if kamctlrc is readable
(cherry picked from commit f16ec35fa448d03613e6bbbff4c354012f56073e)
- URL: https://github.com/kamailio/kamailio/commit/1be68f52c4b2065c7a7da0c917e9c06…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:35:20+01:00
core: tcp - set limit for reading a message
- default 10sec - if message is not read, close connection
- cleanup is done on timer, it can take an additional 10sec to clean up
connection
(cherry picked from commit f5b46efc3a97aa45d090f46990a40bcc9dd91390)
- URL: https://github.com/kamailio/kamailio/commit/e18ed857576ed682ee620184c8c1053…
Author: Nikolay Ivanuschak <ivanuschak.nikolay(a)gmail.com>
Date: 2023-11-13T12:36:58+01:00
core: fixed wrong network interface selection.
fixed incorrect source IP address selection for the SIP
messages sending procedure when TCP transport is used or
for UDP with the 'mhomed' setting set as 'mhomed=1'.
(cherry picked from commit d4e16520a06344ce2bfd07eda4447d68a2c3fce8)
- URL: https://github.com/kamailio/kamailio/commit/68f5f43963511dec19eaed2300d8ba1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:39:08+01:00
core: tcp - close connection without data traffic at all
- default timeout: 20sec
- cleanup is done on timer, it can take another 10sec
(cherry picked from commit ef86402d2397ff7b0416bc17ab0a2ba906402215)
- URL: https://github.com/kamailio/kamailio/commit/e21c8180cb8a676e48cea84427247c4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:39:19+01:00
core: tcp - exclude crlf ping from data exchage state
(cherry picked from commit ddfe15f860555048f1ad6884727d4eb52f11910f)
- URL: https://github.com/kamailio/kamailio/commit/25d50b8977290d53da60a0f5800f762…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:51:23+01:00
core: tcp - limit number of accepted connections per src ip
- default 1024
(cherry picked from commit a902e4a032a85a7755de32eeadac800a1312e64f)
- URL: https://github.com/kamailio/kamailio/commit/07c61363a9c1065cf5754672b6ef78c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T12:55:34+01:00
core: added msg_recv_max_size global parameter
- set limit for max size of received tcp or upd messages
(cherry picked from commit b56037fab181037d48bfc90802f25b85ae8bee04)
- URL: https://github.com/kamailio/kamailio/commit/0d890ed6fd7afd351ba84933da1f90a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:01:02+01:00
core: added tcp_msg_read_timeout parameter
- specify read timeout for tcp messages
(cherry picked from commit 92feec4fa026a153d1f9ed79e5893bf1086db909)
- URL: https://github.com/kamailio/kamailio/commit/5bedf8c17a6309f3c17c69cfc6dacd9…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:01:18+01:00
core: added tcp_check_timer parameter
- set the check interval (in seconds) for tcp connections
- default 10
(cherry picked from commit 1acede64041307b783ed90736ca114917bafbc14)
- URL: https://github.com/kamailio/kamailio/commit/a86a46474bf53103155ee4e4dac200c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:01:45+01:00
core: added tcp_msg_data_timeout parameter
- duration in seconds for how long to wait till data is received on a
new tcp connection
- default 20
(cherry picked from commit 213e19108699ed4ea5c962caf673b0a60ce41480)
- URL: https://github.com/kamailio/kamailio/commit/6fbabb1fc2d93bd1983ad40d0d122ed…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:03:04+01:00
core: added tcp_accept_iplimit parameter
- set limit for accepted connections from the same ip address
- default 1024
(cherry picked from commit 241127c5f0820614a3e2ac1467e9f8cb8a0eeb23)
- URL: https://github.com/kamailio/kamailio/commit/acd47ad9a175684548dd3fb9c45d18c…
Author: VoIPNuggets.com <akash(a)voipnuggets.com>
Date: 2023-11-13T13:04:23+01:00
tools: route_graph - added README file and updated reference URL [skip ci]
(cherry picked from commit 976da8c72e9a056b724f584a803a4a8114f70d30)
- URL: https://github.com/kamailio/kamailio/commit/2481ccd984ac0b9896def8b36458a34…
Author: Juha Heinanen <jh(a)tutpro.com>
Date: 2023-11-13T13:04:34+01:00
core: change tcp_check_timer initialization
- make tcp_check_timer default to depend on tcp_msg_data_timeout and
ksr_tcp_msg_read_timeout values, set to half of the minimum of the
two, it is not explicitely set
- GH #3608
(cherry picked from commit 5077127b0fe1a2d803e42abe19cfcd93339f0519)
- URL: https://github.com/kamailio/kamailio/commit/97a37f7b9ad89a409e3a03bb63f0784…
Author: Xenofon Karamanos <xk(a)gilawa.com>
Date: 2023-11-13T13:04:48+01:00
tls: Add and apply tls_openssl_clear_errors function
(cherry picked from commit 110ebbafadcc225f4e88749287f06ae29a6cfa2e)
- URL: https://github.com/kamailio/kamailio/commit/84a6b3f59165372400340a7f0496531…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-11-13T13:05:31+01:00
presence: active_watcher cleanup timer
related #3074
(cherry picked from commit f27eda6fe3d99d1352d4df86d79e4646b0a4c17a)
- URL: https://github.com/kamailio/kamailio/commit/c9c0b12efc7031ee894a62c6a148fec…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:06:07+01:00
tls: include file to fix warning about tls_openssl_clear_errors()
(cherry picked from commit fe8eafd31327c14e7b081cd8f4a6532953e0a1c6)
- URL: https://github.com/kamailio/kamailio/commit/d93d8b882b584ef41721f7c6d9fb221…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:06:38+01:00
topos: remove check of th_param_mask_callid() for api callid masking
- functions are not for topoh internal usage, but for intermodule API
- reported as part of GH #3606
(cherry picked from commit e5ecb666abd24433b0de030980f79e2521439524)
- URL: https://github.com/kamailio/kamailio/commit/5ddfa0b2f29dbbe30e1933edf0110f8…
Author: Konstantin Tumalevich <userad(a)gmail.com>
Date: 2023-11-13T13:07:05+01:00
app_ruby: Fix rpc documentation typo
(cherry picked from commit 111d9f70cf55eca08b78e21213f3452fa8622d21)
- URL: https://github.com/kamailio/kamailio/commit/ba19a8f30d6c9f7757ef0c8d55e2139…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:07:47+01:00
dmq_usrloc: avoid needless second local socket search
- remove overwriting local socket string value with received item
(cherry picked from commit f97149aec9da71085df9dcf4541abba7b756939c)
- URL: https://github.com/kamailio/kamailio/commit/ab7cf4e57ee800c60ec171f801a76f1…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:07:58+01:00
usrloc: reformat exported structures to be more readable
(cherry picked from commit 9a50e380216b7557b53a2e8a0e4068f81ecf635e)
- URL: https://github.com/kamailio/kamailio/commit/6d0d39311fdf09007aaae6ac0e4e034…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:08:33+01:00
secsipid_proc: Makefile - look for secsipid include and libs in localbase
- done when pkg-config cannot find libsecsipid install details
(cherry picked from commit a2468e66f530822094569cf847796d91b17d4be9)
- URL: https://github.com/kamailio/kamailio/commit/1bd0c64845e5eb90492cfa107bb4afd…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:09:03+01:00
core: error - better message for E_OUT_OF_MEM
(cherry picked from commit 1e4bf66d37afcded52fcaa2a0dd61a87bb1f2c67)
- URL: https://github.com/kamailio/kamailio/commit/dd034befebc2bed440979bce51c04d8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:09:12+01:00
tls: note about db_mysql module parameter opt_ssl_mode
(cherry picked from commit d157aed3fc69d3584cb9e6ca0112e47ab917e88e)
- URL: https://github.com/kamailio/kamailio/commit/98e2b05e29716d60789aadac59b372c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:09:27+01:00
core: new code for internal processing error
(cherry picked from commit e34d41557e3a88cfb76571fb3f2793d85d264710)
- URL: https://github.com/kamailio/kamailio/commit/3dee1d598957cb092608e987b1d4f8a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:09:36+01:00
tm: update return code for EoH check failure
(cherry picked from commit c76444da502325c90eb7ac0cbcc24e7bf16dd5d1)
- URL: https://github.com/kamailio/kamailio/commit/6aec4f79d0cd4af1639df981cfe0877…
Author: Benjamin <92934023+tietzsg(a)users.noreply.github.com>
Date: 2023-11-13T13:10:28+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>
(cherry picked from commit 02dd4e2c883585601f4dbcea0b63b858b4dd24d6)
- URL: https://github.com/kamailio/kamailio/commit/d015ee9c06a8cb6644101d08e4b54f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:11:26+01:00
db_redis: init allocated redis table structure
(cherry picked from commit e24df12d10d8b88582907481d161c6a2db5cf8f1)
- URL: https://github.com/kamailio/kamailio/commit/6df7569d6cb54b5057b708120c66db8…
Author: Morten Tryfoss <morten(a)tryfoss.no>
Date: 2023-11-13T13:12:49+01:00
tm: T_ASYNC_SUSPENDED flag not removed when cancelling a suspension
(cherry picked from commit 70ecd99e3d8069d0f89444a5b893f61dd1edd1b3)
- URL: https://github.com/kamailio/kamailio/commit/6fca96d1fe87a8216098304f2b64622…
Author: Christian Marangi <ansuelsmth(a)gmail.com>
Date: 2023-11-13T13:13:28+01:00
kamcmd: Makefile - use CUSTOM_NAME for specifying custom binary name
- previous use of NAME can clash with environment variable NAME that
could be set by OS or by Kamailio modules installation
- GH #3628
(cherry picked from commit b141f267ce1fe1068de1541d8bd5b5dc53c1d6d9)
- URL: https://github.com/kamailio/kamailio/commit/20d8546e0055c43709e77bd8e61377f…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:13:47+01:00
topos: update headers for stateless cancel and non-2xx ack
(cherry picked from commit 8f84f6681570d5eb1018e6fe45f280173451bf62)
- URL: https://github.com/kamailio/kamailio/commit/7f1ec26fbf59edc6c771da6104344d6…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-11-13T13:14:05+01:00
dialog: reformat exported structures more human friendly
revert to the format it had before 783a416f1a5
(cherry picked from commit f0cf082effe6a0fd8893299e49a519d90bfc6151)
- URL: https://github.com/kamailio/kamailio/commit/c7290d0ef8f030ae851581ba436a101…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:14:19+01:00
core: utils/srjson - use snprintf() for silenting analyzers
(cherry picked from commit a62d7118a2f86a82fd080ed4a89a0833e8c4d1a2)
- URL: https://github.com/kamailio/kamailio/commit/88ad50d71fe7da01ae4619cdb14d511…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-11-13T13:14:29+01:00
debugger: reformat exported structures more human friendly
revert to the format it had before 656e147c470
(cherry picked from commit 4642a12c109939f71f91ba7807ded1491e241e26)
- URL: https://github.com/kamailio/kamailio/commit/42aae6920883e9633ba36b41b235ce2…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2023-11-13T13:14:39+01:00
dialplan: reformat exported structures more human friendly
revert to the format it had before 01d0d1de2c8
(cherry picked from commit 6aa940f7acbc565545ae9199b288d16a50bafcab)
- URL: https://github.com/kamailio/kamailio/commit/9f417ee284fd1829c849061aae6b4d0…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:15:38+01:00
imc: coverted some static global str variables to macros
(cherry picked from commit 36806bea261f7a29dc1d2a8aedac837a06043968)
- URL: https://github.com/kamailio/kamailio/commit/64f28c7f1fd83719270d914e5368bff…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:15:50+01:00
dialog: use memcpy to fill profile uid
(cherry picked from commit 7bdd7fb4aa666b5f56ae3e554770126ad5b68c2e)
- URL: https://github.com/kamailio/kamailio/commit/40f5343d4ca2b4c1cf76eaf168a9b1a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2023-11-13T13:16:08+01:00
app_python3: enable error log mode for some of missing callback functions
- tm-specific callbacks should trigger error log messages if not found
(cherry picked from commit 695dc54dc1547fdee18b00cfa8e4d15f047834a5)
- URL: https://github.com/kamailio/kamailio/commit/94a6bc8fe6fb4dc5599584de1128dbb…
Author: Henning Westerholt <hw(a)gilawa.com>
Date: 2023-11-13T13:16:24+01:00
kamailio.cfg: use xalert instead of old format for xlog, similar as done in other cfg places
(cherry picked from commit 2b9666445a9fd31f75bf86b9924658daffb7ac85)
<!-- 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)
- [x] 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
If an endpoint responds with a CEA (Capabilities-Exchange Answer) indicating support for relaying (application-id 0xffffffff), let this endpoint be used for any application. The DRA will then be responsible for routing the request to the correct destination.
To fully support this, there might be a need for additional changes in some of the modules. That is to make sure subsequent requests for a given session is always routed to the same destination, indicated by Origin-Host in answers from a diameter server. Destination-Host of the new request should then be filled with this value.
A change for the ims_charging module is on the way.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/3633
-- Commit Summary --
* cdp: Support for diameter routing agent (DRA) / relay
-- File Changes --
M src/modules/cdp/diameter.h (2)
M src/modules/cdp/routing.c (6)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/3633.patchhttps://github.com/kamailio/kamailio/pull/3633.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/3633
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/3633(a)github.com>