Module: kamailio
Branch: master
Commit: 40b1d627d8f81235814ccee64c562a425f382648
URL:
https://github.com/kamailio/kamailio/commit/40b1d627d8f81235814ccee64c562a4…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-07-26T17:31:24+02:00
modules: readme files regenerated - textopsx ... [skip ci]
---
Modified: src/modules/textopsx/README
---
Diff:
https://github.com/kamailio/kamailio/commit/40b1d627d8f81235814ccee64c562a4…
Patch:
https://github.com/kamailio/kamailio/commit/40b1d627d8f81235814ccee64c562a4…
---
diff --git a/src/modules/textopsx/README b/src/modules/textopsx/README
index a72249f1be..3824577860 100644
--- a/src/modules/textopsx/README
+++ b/src/modules/textopsx/README
@@ -38,6 +38,7 @@ Daniel-Constantin Mierla
2.17. hf_iterator_end(iname)
2.18. textopsx.f.hf_iterator_next(iname)
2.19. hf_iterator_rm(iname)
+ 2.20. hf_iterator_append(iname, htext)
3. Selects
@@ -66,7 +67,8 @@ Daniel-Constantin Mierla
1.17. hf_iterator_end usage
1.18. hf_iterator_next usage
1.19. hf_iterator_rm usage
- 1.20. @hf_value select usage
+ 1.20. hf_iterator_append usage
+ 1.21. @hf_value select usage
Chapter 1. Admin Guide
@@ -94,6 +96,7 @@ Chapter 1. Admin Guide
2.17. hf_iterator_end(iname)
2.18. textopsx.f.hf_iterator_next(iname)
2.19. hf_iterator_rm(iname)
+ 2.20. hf_iterator_append(iname, htext)
3. Selects
@@ -132,6 +135,7 @@ Chapter 1. Admin Guide
2.17. hf_iterator_end(iname)
2.18. textopsx.f.hf_iterator_next(iname)
2.19. hf_iterator_rm(iname)
+ 2.20. hf_iterator_append(iname, htext)
2.1. msg_apply_changes()
@@ -493,6 +497,26 @@ hf_iterator_end("i1");
hf_iterator_end("i1");
...
+2.20. hf_iterator_append(iname, htext)
+
+ Add headers after 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.20. hf_iterator_append usage
+...
+ hf_iterator_start("i1");
+ while(hf_iterator_next("i1")) {
+ if($hfitname(i1)=="My-Header") {
+ hf_iterator_append("i1", "My-New-Header: abc\r\n");
+ break;
+ }
+ }
+ hf_iterator_end("i1");
+...
+
3. Selects
3.1. @hf_value
@@ -528,7 +552,7 @@ hf_iterator_end("i1");
* IDX - Value index, negative value counts from bottom
* PARAM_NAME - name of parameter
- Example 1.20. @hf_value select usage
+ Example 1.21. @hf_value select usage
...
$a = @hf_value.my_header[1].my_param;
xplog("L_ERR", "$sel((a)hf_value.via[-1])[-1]),
$sel((a)hf_value.from.tag)\n")uot;);