[sr-dev] git:master:b4e94080: modules: readme files regenerated - textopsx ... [skip ci]

Kamailio Dev kamailio.dev at kamailio.org
Thu Jul 29 09:16:36 CEST 2021


Module: kamailio
Branch: master
Commit: b4e94080987a4f8e2b04ac5c8ef7ce89ad4246ee
URL: https://github.com/kamailio/kamailio/commit/b4e94080987a4f8e2b04ac5c8ef7ce89ad4246ee

Author: Kamailio Dev <kamailio.dev at kamailio.org>
Committer: Kamailio Dev <kamailio.dev at kamailio.org>
Date: 2021-07-29T09:16:28+02:00

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

---

Modified: src/modules/textopsx/README

---

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

---

diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README
index 3824577860..ad9277ce37 100644
--- a/src/modules/textopsx/README
+++ b/src/modules/textopsx/README
@@ -39,6 +39,7 @@ Daniel-Constantin Mierla
               2.18. textopsx.f.hf_iterator_next(iname)
               2.19. hf_iterator_rm(iname)
               2.20. hf_iterator_append(iname, htext)
+              2.21. hf_iterator_insert(iname, htext)
 
         3. Selects
 
@@ -68,7 +69,8 @@ Daniel-Constantin Mierla
    1.18. hf_iterator_next usage
    1.19. hf_iterator_rm usage
    1.20. hf_iterator_append usage
-   1.21. @hf_value select usage
+   1.21. hf_iterator_insert usage
+   1.22. @hf_value select usage
 
 Chapter 1. Admin Guide
 
@@ -97,6 +99,7 @@ Chapter 1. Admin Guide
         2.18. textopsx.f.hf_iterator_next(iname)
         2.19. hf_iterator_rm(iname)
         2.20. hf_iterator_append(iname, htext)
+        2.21. hf_iterator_insert(iname, htext)
 
    3. Selects
 
@@ -136,6 +139,7 @@ Chapter 1. Admin Guide
    2.18. textopsx.f.hf_iterator_next(iname)
    2.19. hf_iterator_rm(iname)
    2.20. hf_iterator_append(iname, htext)
+   2.21. hf_iterator_insert(iname, htext)
 
 2.1.  msg_apply_changes()
 
@@ -517,6 +521,26 @@ hf_iterator_end("i1");
     hf_iterator_end("i1");
 ...
 
+2.21.  hf_iterator_insert(iname, htext)
+
+   Add headers before the one at the current iterator possition.
+
+   The parameters can be dynamic strings with variables.
+
+   This function can be used from ANY_ROUTE.
+
+   Example 1.21. hf_iterator_insert usage
+...
+    hf_iterator_start("i1");
+    while(hf_iterator_next("i1")) {
+        if($hfitname(i1)=="My-Header") {
+            hf_iterator_insert("i1", "My-New-Header: abc\r\n");
+            break;
+        }
+    }
+    hf_iterator_end("i1");
+...
+
 3. Selects
 
    3.1. @hf_value
@@ -552,7 +576,7 @@ hf_iterator_end("i1");
      * IDX - Value index, negative value counts from bottom
      * PARAM_NAME - name of parameter
 
-   Example 1.21. @hf_value select usage
+   Example 1.22. @hf_value select usage
 ...
 $a = @hf_value.my_header[1].my_param;
 xplog("L_ERR", "$sel(@hf_value.via[-1]), $sel(@hf_value.from.tag)\n");




More information about the sr-dev mailing list