Module: kamailio
Branch: master
Commit: be55865fb2601cc9141d6f3fb5ad0affd7507102
URL:
https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2018-09-04T11:31:32+02:00
modules: readme files regenerated - htable ... [skip ci]
---
Modified: src/modules/htable/README
---
Diff:
https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
Patch:
https://github.com/kamailio/kamailio/commit/be55865fb2601cc9141d6f3fb5ad0af…
---
diff --git a/src/modules/htable/README b/src/modules/htable/README
index 2d393d8761..1fd1fbdf5b 100644
--- a/src/modules/htable/README
+++ b/src/modules/htable/README
@@ -68,6 +68,8 @@ Ovidiu Sas
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
5. Exported pseudo-variables
6. RPC Commands
@@ -117,6 +119,8 @@ Ovidiu Sas
1.27. sht_iterator_start usage
1.28. sht_iterator_end usage
1.29. sht_iterator_next usage
+ 1.30. sht_has_name usage
+ 1.31. sht_has_name usage
Chapter 1. Admin Guide
@@ -160,6 +164,8 @@ Chapter 1. Admin Guide
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
5. Exported pseudo-variables
6. RPC Commands
@@ -675,6 +681,8 @@ modparam("htable", "event_callback_mode", 1)
4.9. sht_iterator_start(iname, hname)
4.10. sht_iterator_end(iname)
4.11. sht_iterator_next(iname)
+ 4.12. sht_has_name(htable, op, mval)
+ 4.13. sht_has_str_value(htable, op, mval)
4.1. sht_print()
@@ -852,6 +860,50 @@ sht_iterator_end("i1");
sht_iterator_end("i1");
...
+4.12. sht_has_name(htable, op, mval)
+
+ Return greater than 0 (true) if the htable has an item that matches the
+ name against the mval parameter.
+
+ The op parameter can be:
+ * eq - match the val parameter as string equal expression.
+ * ne - match the val parameter as string not-equal expression.
+ * re - match the val parameter as regular expression.
+ * sw - match the val parameter as 'starts with' expression.
+
+ All parameters can be static strings or contain variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.30. sht_has_name usage
+...
+if(sht_has_name("ha", "eq", "alice")) {
+ ...
+}
+...
+
+4.13. sht_has_str_value(htable, op, mval)
+
+ Return greater than 0 (true) if the htable has an item that matches the
+ string value against the mval parameter.
+
+ The op parameter can be:
+ * eq - match the val parameter as string equal expression.
+ * ne - match the val parameter as string not-equal expression.
+ * re - match the val parameter as regular expression.
+ * sw - match the val parameter as 'starts with' expression.
+
+ All parameters can be static strings or contain variables.
+
+ This function can be used from ANY_ROUTE.
+
+ Example 1.31. sht_has_name usage
+...
+if(sht_has_str_value("ha", "eq", "alice")) {
+ ...
+}
+...
+
5. Exported pseudo-variables
* $sht(htable=>key)