Browse code

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

Kamailio Dev authored on 21/09/2021 14:01:16
Showing 1 changed files
... ...
@@ -37,6 +37,8 @@ Daniel-Constantin Mierla
37 37
               4.5. pos_headers_end()
38 38
               4.6. pos_body_start()
39 39
               4.7. pos_body_end()
40
+              4.8. pos_find_str(idx, val)
41
+              4.9. pos_findi_str(idx, val)
40 42
 
41 43
    List of Examples
42 44
 
... ...
@@ -48,6 +50,8 @@ Daniel-Constantin Mierla
48 50
    1.6. pos_headers_end() usage
49 51
    1.7. pos_body_start() usage
50 52
    1.8. pos_body_end() usage
53
+   1.9. pos_find_str() usage
54
+   1.10. pos_findi_str() usage
51 55
 
52 56
 Chapter 1. Admin Guide
53 57
 
... ...
@@ -72,6 +76,8 @@ Chapter 1. Admin Guide
72 76
         4.5. pos_headers_end()
73 77
         4.6. pos_body_start()
74 78
         4.7. pos_body_end()
79
+        4.8. pos_find_str(idx, val)
80
+        4.9. pos_findi_str(idx, val)
75 81
 
76 82
 1. Overview
77 83
 
... ...
@@ -124,6 +130,8 @@ modparam("posops", "idx0", -200)
124 130
    4.5. pos_headers_end()
125 131
    4.6. pos_body_start()
126 132
    4.7. pos_body_end()
133
+   4.8. pos_find_str(idx, val)
134
+   4.9. pos_findi_str(idx, val)
127 135
 
128 136
 4.1.  pos_append(idx, val)
129 137
 
... ...
@@ -221,3 +229,38 @@ $var(pos) = pos_body_start();
221 229
 ...
222 230
 $var(pos) = pos_body_end();
223 231
 ...
232
+
233
+4.8.  pos_find_str(idx, val)
234
+
235
+   Return the position of the val in message buffer starting at idx. In
236
+   case of not finding it or error, the return code is negative. If val is
237
+   at index 0, it returns the value specified by modparam idx0.
238
+
239
+   The idx can be an integer value or a variable holding an integer.
240
+
241
+   The val can be a static string or variables.
242
+
243
+   This function can be used from ANY_ROUTE.
244
+
245
+   Example 1.9. pos_find_str() usage
246
+...
247
+$var(idx) = pos_find_str("100", "kamailio");
248
+...
249
+
250
+4.9.  pos_findi_str(idx, val)
251
+
252
+   Return the position of the val (matching case insensitive) in message
253
+   buffer starting at idx. In case of not finding it or error, the return
254
+   code is negative. If val is at index 0, it returns the value specified
255
+   by modparam idx0.
256
+
257
+   The idx can be an integer value or a variable holding an integer.
258
+
259
+   The val can be a static string or variables.
260
+
261
+   This function can be used from ANY_ROUTE.
262
+
263
+   Example 1.10. pos_findi_str() usage
264
+...
265
+$var(idx) = pos_findi_str("100", "kamailio");
266
+...