Module: kamailio
Branch: master
Commit: 0571cb9c7ae2ba3a045e11b003bfba9e5ca6c9fc
URL:
https://github.com/kamailio/kamailio/commit/0571cb9c7ae2ba3a045e11b003bfba9…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2024-11-26T10:31:10+01:00
modules: readme files regenerated - dispatcher ... [skip ci]
---
Modified: src/modules/dispatcher/README
---
Diff:
https://github.com/kamailio/kamailio/commit/0571cb9c7ae2ba3a045e11b003bfba9…
Patch:
https://github.com/kamailio/kamailio/commit/0571cb9c7ae2ba3a045e11b003bfba9…
---
diff --git a/src/modules/dispatcher/README b/src/modules/dispatcher/README
index 2a6148504db..ef5c56f6df6 100644
--- a/src/modules/dispatcher/README
+++ b/src/modules/dispatcher/README
@@ -122,7 +122,8 @@ Federico Cabiddu
4.14. ds_load_unset()
4.15. ds_reload()
4.16. ds_dsg_fetch(setid)
- 4.17. ds_oc_set_attrs(setid, uri, rval, tval, sval)
+ 4.17. ds_dsg_fetch_uri(setid, uri)
+ 4.18. ds_oc_set_attrs(setid, uri, rval, tval, sval)
5. RPC Commands
@@ -213,9 +214,10 @@ Federico Cabiddu
1.57. ds_load_unset usage
1.58. ds_reload usage
1.59. ds_dsg_fetch() usage
- 1.60. ds_oc_set_attrs() usage
- 1.61. dispatcher list file
- 1.62. Kamailio config script - sample dispatcher usage
+ 1.60. ds_dsg_fetch_uri() usage
+ 1.61. ds_oc_set_attrs() usage
+ 1.62. dispatcher list file
+ 1.63. Kamailio config script - sample dispatcher usage
Chapter 1. Admin Guide
@@ -292,7 +294,8 @@ Chapter 1. Admin Guide
4.14. ds_load_unset()
4.15. ds_reload()
4.16. ds_dsg_fetch(setid)
- 4.17. ds_oc_set_attrs(setid, uri, rval, tval, sval)
+ 4.17. ds_dsg_fetch_uri(setid, uri)
+ 4.18. ds_oc_set_attrs(setid, uri, rval, tval, sval)
5. RPC Commands
@@ -1120,7 +1123,8 @@ modparam("dispatcher", "ds_interval_mode",
7200)
4.14. ds_load_unset()
4.15. ds_reload()
4.16. ds_dsg_fetch(setid)
- 4.17. ds_oc_set_attrs(setid, uri, rval, tval, sval)
+ 4.17. ds_dsg_fetch_uri(setid, uri)
+ 4.18. ds_oc_set_attrs(setid, uri, rval, tval, sval)
4.1. ds_select_dst(set, alg[, limit])
@@ -1638,7 +1642,24 @@ onreply_route {
xinfo("set id: 1 - all: $dsg(count); active: $dsg(active)\n");
...
-4.17. ds_oc_set_attrs(setid, uri, rval, tval, sval)
+4.17. ds_dsg_fetch_uri(setid, uri)
+
+ Sets the destination group id to setid for fetching $dsg(key)
+ attributes and the overload-control attributes to the corresponding uri
+ record from that group.
+
+ Parameters: setid - integer or variable holding the set id value; uri -
+ string or variables holding the SIP URI value.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.60. ds_dsg_fetch_uri() usage
+...
+ ds_dsg_fetch_uri("1", "sip:127.0.0.1:5080");
+ xinfo("set id: 1 - all: $dsg(count); active: $dsg(active);
$dsg(ocrate)\n");
+...
+
+4.18. ds_oc_set_attrs(setid, uri, rval, tval, sval)
Sets the overload control rate, time internval limit and sequence
number for the destination record (setid, uri) following RFC7339
@@ -1659,7 +1680,7 @@ onreply_route {
This function can be used from ANY_ROUTE.
- Example 1.60. ds_oc_set_attrs() usage
+ Example 1.61. ds_oc_set_attrs() usage
...
ds_oc_set_attrs("1", "sip:127.0.0.1:5080", "30",
"180000", "1");
...
@@ -1964,7 +1985,7 @@ setid(int) destination(sip uri) flags(int,opt) priority(int,opt)
attrs(str,opt)
For database, each element of a line resides in a different column.
Next is a dispatcher.list file example:
- Example 1.61. dispatcher list file
+ Example 1.62. dispatcher list file
...
#
# dispatcher destination sets (groups)
@@ -1989,7 +2010,7 @@ r,opt)
Next listing shows a sample config for using the dispatcher module.
- Example 1.62. Kamailio config script - sample dispatcher usage
+ Example 1.63. Kamailio config script - sample dispatcher usage
...
#!KAMAILIO
#