- URL: https://github.com/kamailio/kamailio/commit/4851f0318bf049ccef93390f6ac0fdf…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:39:20+01:00
tm: proper fill of From/To URI/tag values using parsed structure in t_uac_send()
(cherry picked from commit aa6e9963b2725c1b6b7e5ff995a77c222d95fa3c)
- URL: https://github.com/kamailio/kamailio/commit/66f5cc9d021eca4a9acfbca935e991c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:40:25+01:00
misc/examples: note that sr is exported by app_lua_sr
- hint for lua syntax check
(cherry picked from commit 889431746d24c73eeff73705fab36a0e154116a9)
- URL: https://github.com/kamailio/kamailio/commit/c5793f508aa115146e10c2f32691a29…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:41:11+01:00
misc/examples/kemi: filter on user agent matching friendly, scanner and sipvicious
(cherry picked from commit e15c90d31fd0444f41cb862408f77399123c0191)
- URL: https://github.com/kamailio/kamailio/commit/fba5f6172932c7925dce1ee49fbfeb4…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:41:24+01:00
etc/kamailio.cfg: split to filter on both friendly and scanner
- some scanning scripts use a different format for the user agent
(cherry picked from commit 454c4653409a69ef115de5ee748524d36e147246)
- URL: https://github.com/kamailio/kamailio/commit/0744976d1ab80caf09f80b7594d2c76…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:41:59+01:00
misc/examples/kemi: fixed function name to get From-URI
(cherry picked from commit 6035c30aea72d06bf08883677d45f4eb0019f189)
- URL: https://github.com/kamailio/kamailio/commit/d610f27185eafe275e98c567f1c1781…
Author: Aleksandar Yosifov <alexyosifov(a)gmail.com>
Date: 2020-12-11T20:42:32+01:00
smsops: fix len calc for a concatenated sms
- fixed the calculation for concatenated SMSs
based on TS 23.040, Sec. 9.2.3.16
(cherry picked from commit d90f29b3b03386add989aebe3865bdc78dff8fbe)
- URL: https://github.com/kamailio/kamailio/commit/5c6ddfea8845cd2d76bd15ec5511d15…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:43:29+01:00
dispatcher: removed unnecessary return
(cherry picked from commit 721d533317c735d7ddbd16ad94684b483468c010)
- URL: https://github.com/kamailio/kamailio/commit/7c7fc27eb10372fda305a65c2dacea6…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:44:23+01:00
core: check if the tcp clone rcv buffer is set when applying changes
(cherry picked from commit aa13720e5d78dde5ae5235c13399848cb8f5a0cc)
- URL: https://github.com/kamailio/kamailio/commit/4b5f58be3101c4efe745f37e286bf84…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-12-11T20:45:23+01:00
lost: fixed typo
(cherry picked from commit 87f363f7fa0bf8f1897a3d6de13a09d6ec3812b9)
- URL: https://github.com/kamailio/kamailio/commit/e7f616df3f68bd7c53150ad20a8ec5a…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-12-11T20:45:37+01:00
lost: removed extra `"` symbol in example
(cherry picked from commit 124499c12db185d85805e5c71d5cc4222e608b68)
- URL: https://github.com/kamailio/kamailio/commit/7ef04a11c4b92a49dcf94dade5bb0a8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:46:39+01:00
auth_diameter: init variable and check before freeing
(cherry picked from commit 04dc5d6c66c85d0d411aa23b27bc6be00258eff6)
- URL: https://github.com/kamailio/kamailio/commit/f72f1effb079f66714f4399b12eaba0…
Author: Patrick Wakano <patrick.wakano(a)ipscape.com>
Date: 2020-12-11T20:46:56+01:00
dialog: access dialog table entry by reference for dmq_send_all_dlgs
- avoid race conditions to get and release the lock when entry structure
is copied in local variable
- GH #2570, GH #2547
(cherry picked from commit 4183b860e8af6d65074ab98a996c187211aebc7f)
- URL: https://github.com/kamailio/kamailio/commit/cb6d5b577aa9eb3d60cb71a60133dd4…
Author: Sergey Safarov <s.safarov(a)gmail.com>
Date: 2020-12-11T20:47:18+01:00
lost: trimed spaces before reolving locationURI value
fixes GH2569 (#2569). Allow parse exmaples from RFC7840
(cherry picked from commit f9d424ac426dc0547c7233902dfa44ad1287e077)
- URL: https://github.com/kamailio/kamailio/commit/bded4ca0918a4a48e7d1001bc924b31…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:47:37+01:00
pv: use static buffer for ctime_r() output and check its return
- fixed $TF output, regression introduced when switching to thread safe
time function
(cherry picked from commit 02fc919e4f177cc3ab9c5d53eb9ea2019c572bd9)
- URL: https://github.com/kamailio/kamailio/commit/bec3650b51342a9b093ca92134c3b22…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:48:18+01:00
core: tcp - debug messages merged, print bytes read and flags
(cherry picked from commit efb9c5f83b37c316b848ae7b6dc829e2f8ca6275)
- URL: https://github.com/kamailio/kamailio/commit/834bca2dab19fd1a63386e28955428c…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:48:37+01:00
core: tcp - log connection state and flags on debug message
(cherry picked from commit 41040a0420ee48f51901bf32e29526c8948ecea0)
- URL: https://github.com/kamailio/kamailio/commit/24666d2223c8e718ed9abe949a74d43…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-11T20:48:51+01:00
dispacher: docs - more details about weight and rweight attributes
- cross reference sections that have info about weight and rweight
attributes
(cherry picked from commit db55715003cd9af5ef3d32b51b5246643eea10d1)
Module: kamailio
Branch: master
Commit: ba27633ca22bcfc18fd4bb7d62c2f5bb32e56962
URL: https://github.com/kamailio/kamailio/commit/ba27633ca22bcfc18fd4bb7d62c2f5b…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-10T17:07:30+01:00
dispatcher: info log message when adding extra weight or rweight percentages
---
Modified: src/modules/dispatcher/dispatch.c
---
Diff: https://github.com/kamailio/kamailio/commit/ba27633ca22bcfc18fd4bb7d62c2f5b…
Patch: https://github.com/kamailio/kamailio/commit/ba27633ca22bcfc18fd4bb7d62c2f5b…
---
diff --git a/src/modules/dispatcher/dispatch.c b/src/modules/dispatcher/dispatch.c
index c1f4dbfd8f..c0a6d22fc0 100644
--- a/src/modules/dispatcher/dispatch.c
+++ b/src/modules/dispatcher/dispatch.c
@@ -653,6 +653,10 @@ int dp_init_relative_weights(ds_set_t *dset)
/* if the array was not completely filled (i.e., the sum of rweights is
* less than 100 due to truncated), then use last address to fill the rest */
last_insert = t > 0 ? dset->rwlist[t - 1] : (unsigned int)(dset->nr - 1);
+ if(t < 100) {
+ LM_INFO("extra rweight %d for last active destination in group %d\n",
+ (100-t), dset->id);
+ }
for(j = t; j < 100; j++)
dset->rwlist[j] = last_insert;
@@ -706,6 +710,10 @@ int dp_init_weights(ds_set_t *dset)
}
/* if the array was not completely filled (i.e., the sum of weights is
* less than 100), then use last address to fill the rest */
+ if(t < 100) {
+ LM_INFO("extra weight %d for last destination in group %d\n",
+ (100-t), dset->id);
+ }
for(; t < 100; t++)
dset->wlist[t] = (unsigned int)(dset->nr - 1);
randomize:
Module: kamailio
Branch: master
Commit: 547f06785187a0af5e10ff71c3ed91a1ee300528
URL: https://github.com/kamailio/kamailio/commit/547f06785187a0af5e10ff71c3ed91a…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-12-10T16:46:14+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/547f06785187a0af5e10ff71c3ed91a…
Patch: https://github.com/kamailio/kamailio/commit/547f06785187a0af5e10ff71c3ed91a…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 27d35e78cc..5b029903f4 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1719,18 +1719,20 @@ kamctl rpc dispatcher.hash 4 bob server.com
for new calls until an exiting call via that gateway is terminated.
If set to 0, then no active call limit is used.>
* 'weight' - used for weight based load distribution. It must be set
- to a positive integer value beteen 0 and 100. The value represents
- the percent of calls to be sent to that gateways. The sum must not
- exceed 100, otherwise the destinations whose weight added to the
- sum go over 100 are ignored. If the sum is less than 100, then the
- last destination is used to fill the missing percentage. See also
- the description of the corresponding algorithm parameter for
- ds_select_dst().
+ to a positive integer value beteen 1 and 100 (inclusive the
+ limits), otherwise the destination address is ignored (its weight
+ set to 0). The value represents the percent of calls to be sent to
+ that gateways. The sum must not exceed 100, otherwise the
+ destinations whose weight added to the sum go over 100 are ignored.
+ If the sum is less than 100, then the last destination is used to
+ fill the missing percentage. See also the description of the
+ corresponding algorithm parameter for ds_select_dst().
* 'rweight' - used for relative weight based load distribution. It
must be set to a positive integer value between 1 and 100
- (otherwise host will be excluded from relative weight distribution
- type). See also the description of the corresponding algorithm
- parameter for ds_select_dst().
+ (inclusive the limits) otherwise host will be excluded from
+ relative weight distribution type - its rweight is set to 0. See
+ also the description of the corresponding algorithm parameter for
+ ds_select_dst().
* 'socket' - used to set the sending socket for the gateway. It is
used for sending the SIP traffic as well as OPTIONS keepalives.
* 'sockname' - used to set by name the sending socket for the
Module: kamailio
Branch: master
Commit: 15a535c7eae5a4954d51667c8ec8d7900a7d26fe
URL: https://github.com/kamailio/kamailio/commit/15a535c7eae5a4954d51667c8ec8d79…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2020-12-10T16:41:18+01:00
dispacher: docs - note that the range for weights include the limits
---
Modified: src/modules/dispatcher/doc/dispatcher_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/15a535c7eae5a4954d51667c8ec8d79…
Patch: https://github.com/kamailio/kamailio/commit/15a535c7eae5a4954d51667c8ec8d79…
---
diff --git a/src/modules/dispatcher/doc/dispatcher_admin.xml b/src/modules/dispatcher/doc/dispatcher_admin.xml
index 53eea613ce..45f93a3121 100644
--- a/src/modules/dispatcher/doc/dispatcher_admin.xml
+++ b/src/modules/dispatcher/doc/dispatcher_admin.xml
@@ -2147,20 +2147,21 @@ kamctl rpc dispatcher.hash 4 bob server.com
</listitem>
<listitem>
<para>'weight' - used for weight based load distribution. It must be set
- to a positive integer value beteen 0 and 100. The value represents
- the percent of calls to be sent to that gateways. The sum must not
- exceed 100, otherwise the destinations whose weight added to the
- sum go over 100 are ignored. If the sum is less than 100, then the
- last destination is used to fill the missing percentage. See also
- the description of the corresponding algorithm parameter for
+ to a positive integer value beteen 1 and 100 (inclusive the limits),
+ otherwise the destination address is ignored (its weight set to 0).
+ The value represents the percent of calls to be sent to that gateways.
+ The sum must not exceed 100, otherwise the destinations whose weight
+ added to the sum go over 100 are ignored. If the sum is less than 100,
+ then the last destination is used to fill the missing percentage. See
+ also the description of the corresponding algorithm parameter for
ds_select_dst().</para>
</listitem>
<listitem>
<para>'rweight' - used for relative weight based load distribution. It
- must be set to a positive integer value between 1 and 100 (otherwise
- host will be excluded from relative weight distribution
- type). See also the description of the corresponding algorithm
- parameter for ds_select_dst().</para>
+ must be set to a positive integer value between 1 and 100 (inclusive
+ the limits) otherwise host will be excluded from relative weight
+ distribution type - its rweight is set to 0. See also the description
+ of the corresponding algorithm parameter for ds_select_dst().</para>
</listitem>
<listitem>
<para>'socket' - used to set the sending socket for the gateway. It is
Module: kamailio
Branch: master
Commit: 7fa61a98a52723ee6f990e9cc3aee252f23d433a
URL: https://github.com/kamailio/kamailio/commit/7fa61a98a52723ee6f990e9cc3aee25…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2020-12-10T16:31:24+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff: https://github.com/kamailio/kamailio/commit/7fa61a98a52723ee6f990e9cc3aee25…
Patch: https://github.com/kamailio/kamailio/commit/7fa61a98a52723ee6f990e9cc3aee25…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 7db3838dec..27d35e78cc 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -1063,8 +1063,8 @@ modparam("dispatcher", "reload_delta", 1)
(serial forking ordered by priority).
+ “9” - use weight based load distribution. You have to set the
attribute 'weight' for each address (gateway) in destination
- set. For more see the description of the 'weight' attribute in
- the 'Special Attributes' section.
+ set. See also the description of the 'weight' attribute in the
+ 'Special Attributes' section.
+ “10” - use call load distribution. You have to set the
attribute 'duid' (as an unique string id) per each address in
destination set. Also, you must set the parameter
@@ -1086,10 +1086,14 @@ modparam("dispatcher", "reload_delta", 1)
active host rweights in destination group).
The major difference from the weight distribution is the
probability recalculation according to rweight value in case
- of host enabling/disabling
- For example, 100 calls in 3-hosts group with rweight params
- 1/2/1 will be distributed as 25/50/25. After third host
- failing distribution will be changed to 33/67/0.
+ of destinations being active or inactive.
+ For example, 100 calls in 3-destinations group with rweight
+ params 1/2/1 will be distributed as 25/50/25. If the third
+ destination becomes inactive, the distribution is changed to
+ 33/67/0. If the computation of percentage per destination is
+ not an exact integer number, the value is trucated and the
+ last destination is used to fill the remaining percentage till
+ 100.
Using this algorithm, you can also enable congestion control
by setting the attribute 'cc=1', when 'cc' is enabled the
'weight' attribute will also be used to control congestion
@@ -1102,6 +1106,8 @@ modparam("dispatcher", "reload_delta", 1)
above their congestion threshold(weight), the load
distribution is instead done using the ratio of estimated
congestion ms.
+ See also the description of the 'rweight' attribute in the
+ 'Special Attributes' section.
+ “12” - dispatch to all destination in setid at once (parallel
forking). Note that the XAVPs are no longer set with the
values of the destination records, no re-routing making sense
@@ -1714,11 +1720,17 @@ kamctl rpc dispatcher.hash 4 bob server.com
If set to 0, then no active call limit is used.>
* 'weight' - used for weight based load distribution. It must be set
to a positive integer value beteen 0 and 100. The value represents
- the percent of calls to be sent to that gateways.>
+ the percent of calls to be sent to that gateways. The sum must not
+ exceed 100, otherwise the destinations whose weight added to the
+ sum go over 100 are ignored. If the sum is less than 100, then the
+ last destination is used to fill the missing percentage. See also
+ the description of the corresponding algorithm parameter for
+ ds_select_dst().
* 'rweight' - used for relative weight based load distribution. It
must be set to a positive integer value between 1 and 100
(otherwise host will be excluded from relative weight distribution
- type).
+ type). See also the description of the corresponding algorithm
+ parameter for ds_select_dst().
* 'socket' - used to set the sending socket for the gateway. It is
used for sending the SIP traffic as well as OPTIONS keepalives.
* 'sockname' - used to set by name the sending socket for the