[sr-dev] git:5.3:d91b5440: modules: readme files regenerated - modules ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Fri Mar 27 08:46:39 CET 2020


Module: kamailio
Branch: 5.3
Commit: d91b5440947884ac00889bfc985d35564699dc8f
URL: https://github.com/kamailio/kamailio/commit/d91b5440947884ac00889bfc985d35564699dc8f

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2020-03-27T08:46:30+01:00

modules: readme files regenerated - modules ... [skip ci]

---

Modified: src/modules/corex/README
Modified: src/modules/pike/README
Modified: src/modules/sst/README

---

Diff:  https://github.com/kamailio/kamailio/commit/d91b5440947884ac00889bfc985d35564699dc8f.diff
Patch: https://github.com/kamailio/kamailio/commit/d91b5440947884ac00889bfc985d35564699dc8f.patch

---

diff --git a/src/modules/corex/README b/src/modules/corex/README
index a67289bdb5..e9f8045f3a 100644
--- a/src/modules/corex/README
+++ b/src/modules/corex/README
@@ -10,8 +10,6 @@ Daniel-Constantin Mierla
 
    <miconda at gmail.com>
 
-Edited by
-
 Muhammad Shahzad Shafi
 
    <shahzad at voip-demos.com>
@@ -574,7 +572,15 @@ via_add_srv("1");
 
    Example 1.23. via_add_xavp_params usage
 ...
-via_add_xavp_params("1");
+xavp_via_params="xvia"
+...
+request_route {
+    ...
+        $xavp(xvia=>srvid) = "1";
+        $xavp(xvia[0]=>myval) = "xyz";
+    via_add_xavp_params("1");
+    ...
+}
 ...
 
 4.20. via_use_xavp_fields(flags)
@@ -589,7 +595,15 @@ via_add_xavp_params("1");
 
    Example 1.24. via_use_xavp_fields usage
 ...
-via_use_xavp_fields("1");
+xavp_via_fields="mvia"
+...
+request_route {
+    ...
+        $xavp(mvia=>address) = "10.10.10.10";
+        $xavp(mvia[0]=>port) = "5060";
+    via_use_xavp_fields("1");
+    ...
+}
 ...
 
 5. RPC Commands
diff --git a/src/modules/pike/README b/src/modules/pike/README
index 34a26d7020..a7f66697e7 100644
--- a/src/modules/pike/README
+++ b/src/modules/pike/README
@@ -247,9 +247,9 @@ Chapter 3. Developer Guide
 
    Example 3.1. Tree of IP addresses
            / 193 - 175 - 132 - 164
-tree root /                  \ 142
+tree root /                \ - 142
           \ 195 - 37 - 78 - 163
-           \ 79 - 134
+                   \ - 79 - 134
 
    To detect the whole address, step by step, from the root to the leafs,
    the nodes corresponding to each byte of the ip address are expanded. In
diff --git a/src/modules/sst/README b/src/modules/sst/README
index 725cffc95d..3444863563 100644
--- a/src/modules/sst/README
+++ b/src/modules/sst/README
@@ -219,20 +219,36 @@ modparam("sst", "min_se", 2400)
 
 4.3. timeout_avp (string)
 
-   This parameter MUST be set to the same value as the dialog module
-   parameter of the same name. If this parameter is NOT set, the sst
-   module will not do anything!
+   This parameter must be set to the same value as the dialog module
+   parameter of the same name, when it is wanted to update dialog timeout
+   using Session-Expires header value. If this parameter is not set, the
+   sst module will not update dialog timeout.
 
-   This is how the sst module knows which avp in the dialog module it has
-   to change with the new expire value.
+   With this parameter, the sst module knows which avp is expected by the
+   dialog module to change to a new expire value.
 
-   Default value is “NULL!” it is not set by default.
+   Note that the avp is set only for requests within dialog, not for the
+   initial INVITE. For this one, it can be done using script operations,
+   see the next example for such solution.
+
+   Default value is “NULL” (not set by default).
 
    Example 1.4. Set timeout_avp parameter
 ...
-modparam("dialog", "timeout_avp", "$avp(i:10)")
+modparam("dialog", "timeout_avp", "$avp(dlgtimeout)")
 # Set the sst modules timeout_avp to be the same value
-modparam("sst", "timeout_avp", "$avp(i:10)")
+modparam("sst", "timeout_avp", "$avp(dlgtimeout)")
+...
+request_route {
+    ...
+    # when wanting to use Session-Expires value for initial INVITE
+    if(is_method("INVITE") and !has_totag()) {
+        if(is_present_hf("Session-Expires")) {
+            $avp(dlgtimeout) = $(hdr(Session-Expires){s.int});
+        }
+    }
+    ...
+}
 ...
 
 4.4. reject_to_small (integer)




More information about the sr-dev mailing list