Browse code

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

Kamailio Dev authored on 20/09/2021 05:31:16
Showing 1 changed files
... ...
@@ -11,7 +11,7 @@ Daniel-Constantin Mierla
11 11
 
12 12
    <miconda@gmail.com>
13 13
 
14
-   Copyright � 2021 http://www.asipto.com
14
+   Copyright © 2021 http://www.asipto.com
15 15
      __________________________________________________________________
16 16
 
17 17
    Table of Contents
... ...
@@ -29,12 +29,20 @@ Daniel-Constantin Mierla
29 29
               3.1. pos_append(idx, val)
30 30
               3.2. pos_insert(idx, val)
31 31
               3.3. pos_rm(idx, len)
32
+              3.4. pos_headers_start()
33
+              3.5. pos_headers_end()
34
+              3.6. pos_body_start()
35
+              3.7. pos_body_end()
32 36
 
33 37
    List of Examples
34 38
 
35 39
    1.1. pos_append() usage
36 40
    1.2. pos_insert() usage
37 41
    1.3. pos_rm() usage
42
+   1.4. pos_headers_start() usage
43
+   1.5. pos_headers_end() usage
44
+   1.6. pos_body_start() usage
45
+   1.7. pos_body_end() usage
38 46
 
39 47
 Chapter 1. Admin Guide
40 48
 
... ...
@@ -51,6 +59,10 @@ Chapter 1. Admin Guide
51 59
         3.1. pos_append(idx, val)
52 60
         3.2. pos_insert(idx, val)
53 61
         3.3. pos_rm(idx, len)
62
+        3.4. pos_headers_start()
63
+        3.5. pos_headers_end()
64
+        3.6. pos_body_start()
65
+        3.7. pos_body_end()
54 66
 
55 67
 1. Overview
56 68
 
... ...
@@ -82,8 +94,12 @@ Chapter 1. Admin Guide
82 94
    3.1. pos_append(idx, val)
83 95
    3.2. pos_insert(idx, val)
84 96
    3.3. pos_rm(idx, len)
97
+   3.4. pos_headers_start()
98
+   3.5. pos_headers_end()
99
+   3.6. pos_body_start()
100
+   3.7. pos_body_end()
85 101
 
86
-3.1. pos_append(idx, val)
102
+3.1.  pos_append(idx, val)
87 103
 
88 104
    Append the value val after the position idx in the SIP message buffer.
89 105
 
... ...
@@ -100,7 +116,7 @@ Chapter 1. Admin Guide
100 116
 pos_append("100", "kamailio-$si");
101 117
 ...
102 118
 
103
-3.2. pos_insert(idx, val)
119
+3.2.  pos_insert(idx, val)
104 120
 
105 121
    Insert the value val at the position idx in the SIP message buffer.
106 122
 
... ...
@@ -117,7 +133,7 @@ pos_append("100", "kamailio-$si");
117 133
 pos_insert("100", "kamailio-$si");
118 134
 ...
119 135
 
120
-3.3. pos_rm(idx, len)
136
+3.3.  pos_rm(idx, len)
121 137
 
122 138
    Remove len characters starting at the position idx in the SIP message
123 139
    buffer.
... ...
@@ -135,3 +151,47 @@ pos_insert("100", "kamailio-$si");
135 151
 ...
136 152
 pos_insert("100", "10");
137 153
 ...
154
+
155
+3.4.  pos_headers_start()
156
+
157
+   Return the position in the message buffer where headers start.
158
+
159
+   This function can be used from ANY_ROUTE.
160
+
161
+   Example 1.4. pos_headers_start() usage
162
+...
163
+$var(pos) = pos_headers_start();
164
+...
165
+
166
+3.5.  pos_headers_end()
167
+
168
+   Return the position in the message buffer where headers end.
169
+
170
+   This function can be used from ANY_ROUTE.
171
+
172
+   Example 1.5. pos_headers_end() usage
173
+...
174
+$var(pos) = pos_headers_end();
175
+...
176
+
177
+3.6.  pos_body_start()
178
+
179
+   Return the position in the message buffer where body starts.
180
+
181
+   This function can be used from ANY_ROUTE.
182
+
183
+   Example 1.6. pos_body_start() usage
184
+...
185
+$var(pos) = pos_body_start();
186
+...
187
+
188
+3.7.  pos_body_end()
189
+
190
+   Return the position in the message buffer where body ends.
191
+
192
+   This function can be used from ANY_ROUTE.
193
+
194
+   Example 1.7. pos_body_end() usage
195
+...
196
+$var(pos) = pos_body_end();
197
+...