Browse code

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

Kamailio Dev authored on 26/07/2021 15:31:24
Showing 1 changed files
... ...
@@ -38,6 +38,7 @@ Daniel-Constantin Mierla
38 38
               2.17. hf_iterator_end(iname)
39 39
               2.18. textopsx.f.hf_iterator_next(iname)
40 40
               2.19. hf_iterator_rm(iname)
41
+              2.20. hf_iterator_append(iname, htext)
41 42
 
42 43
         3. Selects
43 44
 
... ...
@@ -66,7 +67,8 @@ Daniel-Constantin Mierla
66 67
    1.17. hf_iterator_end usage
67 68
    1.18. hf_iterator_next usage
68 69
    1.19. hf_iterator_rm usage
69
-   1.20. @hf_value select usage
70
+   1.20. hf_iterator_append usage
71
+   1.21. @hf_value select usage
70 72
 
71 73
 Chapter 1. Admin Guide
72 74
 
... ...
@@ -94,6 +96,7 @@ Chapter 1. Admin Guide
94 96
         2.17. hf_iterator_end(iname)
95 97
         2.18. textopsx.f.hf_iterator_next(iname)
96 98
         2.19. hf_iterator_rm(iname)
99
+        2.20. hf_iterator_append(iname, htext)
97 100
 
98 101
    3. Selects
99 102
 
... ...
@@ -132,6 +135,7 @@ Chapter 1. Admin Guide
132 135
    2.17. hf_iterator_end(iname)
133 136
    2.18. textopsx.f.hf_iterator_next(iname)
134 137
    2.19. hf_iterator_rm(iname)
138
+   2.20. hf_iterator_append(iname, htext)
135 139
 
136 140
 2.1.  msg_apply_changes()
137 141
 
... ...
@@ -493,6 +497,26 @@ hf_iterator_end("i1");
493 497
     hf_iterator_end("i1");
494 498
 ...
495 499
 
500
+2.20.  hf_iterator_append(iname, htext)
501
+
502
+   Add headers after the one at the current iterator possition.
503
+
504
+   The parameters can be dynamic strings with variables.
505
+
506
+   This function can be used from ANY_ROUTE.
507
+
508
+   Example 1.20. hf_iterator_append usage
509
+...
510
+    hf_iterator_start("i1");
511
+    while(hf_iterator_next("i1")) {
512
+        if($hfitname(i1)=="My-Header") {
513
+            hf_iterator_append("i1", "My-New-Header: abc\r\n");
514
+            break;
515
+        }
516
+    }
517
+    hf_iterator_end("i1");
518
+...
519
+
496 520
 3. Selects
497 521
 
498 522
    3.1. @hf_value
... ...
@@ -528,7 +552,7 @@ hf_iterator_end("i1");
528 552
      * IDX - Value index, negative value counts from bottom
529 553
      * PARAM_NAME - name of parameter
530 554
 
531
-   Example 1.20. @hf_value select usage
555
+   Example 1.21. @hf_value select usage
532 556
 ...
533 557
 $a = @hf_value.my_header[1].my_param;
534 558
 xplog("L_ERR", "$sel(@hf_value.via[-1]), $sel(@hf_value.from.tag)\n");