Browse code

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

Kamailio Dev authored on 10/01/2022 14:01:23
Showing 1 changed files
... ...
@@ -52,58 +52,56 @@ Gabriel Vasile
52 52
 
53 53
         3. Parameters
54 54
 
55
-              3.1. ring_timeout (int)
56
-              3.2. options_accept (string)
57
-              3.3. options_accept_encoding (string)
58
-              3.4. contact_flds_separator (string)
59
-              3.5. options_accept_language (string)
60
-              3.6. options_support (string)
61
-              3.7. rpid_prefix (string)
62
-              3.8. rpid_suffix (string)
63
-              3.9. rpid_avp (string)
55
+              3.1. options_accept (string)
56
+              3.2. options_accept_encoding (string)
57
+              3.3. contact_flds_separator (string)
58
+              3.4. options_accept_language (string)
59
+              3.5. options_support (string)
60
+              3.6. rpid_prefix (string)
61
+              3.7. rpid_suffix (string)
62
+              3.8. rpid_avp (string)
64 63
 
65 64
         4. Functions
66 65
 
67
-              4.1. ring_insert_callid()
68
-              4.2. options_reply()
69
-              4.3. is_user(username)
70
-              4.4. has_totag()
71
-              4.5. uri_param(param)
72
-              4.6. uri_param(param,value)
73
-              4.7. uri_param_any(param)
74
-              4.8. add_uri_param(param)
75
-              4.9. get_uri_param(name, var)
76
-              4.10. uri_param_rm(param)
77
-              4.11. tel2sip(uri, hostpart, result)
78
-              4.12. is_e164(pseudo-variable)
79
-              4.13. is_uri_user_e164(pseudo-variable)
80
-              4.14. is_uri(pseudo-variable)
81
-              4.15. is_tel_number(tval)
82
-              4.16. is_numeric(tval)
83
-              4.17. is_alphanum(tval)
84
-              4.18. is_alphanumex(tval, eset)
85
-              4.19. encode_contact(encoding_prefix,hostpart)
86
-              4.20. decode_contact()
87
-              4.21. decode_contact_header()
88
-              4.22. cmp_uri(str1, str2)
89
-              4.23. cmp_aor(str1, str2)
90
-              4.24. cmp_hdr_name(str1, str2)
91
-              4.25. append_rpid_hf()
92
-              4.26. append_rpid_hf(prefix, suffix)
93
-              4.27. is_rpid_user_e164()
94
-              4.28. set_uri_user(uri, user)
95
-              4.29. set_uri_host(uri, host)
96
-              4.30. is_request()
97
-              4.31. is_reply()
98
-              4.32. is_gruu([uri])
99
-              4.33. is_supported(option)
100
-              4.34. is_first_hop([mode])
101
-              4.35. sip_p_charging_vector(flags)
102
-              4.36. contact_param_encode(pname, saddr)
103
-              4.37. contact_param_decode(pname)
104
-              4.38. contact_param_decode_uri(pname)
105
-              4.39. contact_param_rm(pname)
106
-              4.40. hdr_date_check(tdiff)
66
+              4.1. options_reply()
67
+              4.2. is_user(username)
68
+              4.3. has_totag()
69
+              4.4. uri_param(param)
70
+              4.5. uri_param(param,value)
71
+              4.6. uri_param_any(param)
72
+              4.7. add_uri_param(param)
73
+              4.8. get_uri_param(name, var)
74
+              4.9. uri_param_rm(param)
75
+              4.10. tel2sip(uri, hostpart, result)
76
+              4.11. is_e164(pseudo-variable)
77
+              4.12. is_uri_user_e164(pseudo-variable)
78
+              4.13. is_uri(pseudo-variable)
79
+              4.14. is_tel_number(tval)
80
+              4.15. is_numeric(tval)
81
+              4.16. is_alphanum(tval)
82
+              4.17. is_alphanumex(tval, eset)
83
+              4.18. encode_contact(encoding_prefix,hostpart)
84
+              4.19. decode_contact()
85
+              4.20. decode_contact_header()
86
+              4.21. cmp_uri(str1, str2)
87
+              4.22. cmp_aor(str1, str2)
88
+              4.23. cmp_hdr_name(str1, str2)
89
+              4.24. append_rpid_hf()
90
+              4.25. append_rpid_hf(prefix, suffix)
91
+              4.26. is_rpid_user_e164()
92
+              4.27. set_uri_user(uri, user)
93
+              4.28. set_uri_host(uri, host)
94
+              4.29. is_request()
95
+              4.30. is_reply()
96
+              4.31. is_gruu([uri])
97
+              4.32. is_supported(option)
98
+              4.33. is_first_hop([mode])
99
+              4.34. sip_p_charging_vector(flags)
100
+              4.35. contact_param_encode(pname, saddr)
101
+              4.36. contact_param_decode(pname)
102
+              4.37. contact_param_decode_uri(pname)
103
+              4.38. contact_param_rm(pname)
104
+              4.39. hdr_date_check(tdiff)
107 105
 
108 106
         5. Exported pseudo-variables
109 107
 
... ...
@@ -115,55 +113,53 @@ Gabriel Vasile
115 113
 
116 114
    List of Examples
117 115
 
118
-   1.1. Set ring_timeout parameter
119
-   1.2. Set options_accept parameter
120
-   1.3. Set options_accept_encoding parameter
121
-   1.4. Set contact_flds_separator parameter
122
-   1.5. Set options_accept_language parameter
123
-   1.6. Set options_support parameter
124
-   1.7. rpid_prefix parameter example
125
-   1.8. rpid_suffix parameter example
126
-   1.9. rpid_avp parameter example
127
-   1.10. ring_insert_callid() usage
128
-   1.11. options_reply usage
129
-   1.12. is_user usage
130
-   1.13. has_totag usage
131
-   1.14. uri_param usage
132
-   1.15. uri_param usage
133
-   1.16. uri_param_any usage
134
-   1.17. add_uri_param usage
135
-   1.18. add_uri_param usage
136
-   1.19. uri_param_rm usage
137
-   1.20. tel2sip usage
138
-   1.21. is_e164 usage
139
-   1.22. is_uri_user_e164 usage
140
-   1.23. is_uri usage
141
-   1.24. is_tel_number usage
142
-   1.25. is_numeric usage
143
-   1.26. is_alphanum usage
144
-   1.27. is_alphanumex usage
145
-   1.28. encode_contact usage
146
-   1.29. decode_contact usage
147
-   1.30. decode_contact_header usage
148
-   1.31. cmp_uri usage
149
-   1.32. cmp_aor usage
150
-   1.33. cmp_hdr_name usage
151
-   1.34. append_rpid_hf usage
152
-   1.35. append_rpid_hf(prefix, suffix) usage
153
-   1.36. is_rpid_user_e164 usage
154
-   1.37. set_uri_user usage
155
-   1.38. set_uri_host usage
156
-   1.39. is_request usage
157
-   1.40. is_reply usage
158
-   1.41. is_gruu() usage
159
-   1.42. is_supported() usage
160
-   1.43. is_first_hop() usage
161
-   1.44. sip_p_charging_vector() usage
162
-   1.45. contact_param_encode usage
163
-   1.46. contact_param_decode usage
164
-   1.47. contact_param_decode_ruri usage
165
-   1.48. contact_param_rm usage
166
-   1.49. hdr_date_check usage
116
+   1.1. Set options_accept parameter
117
+   1.2. Set options_accept_encoding parameter
118
+   1.3. Set contact_flds_separator parameter
119
+   1.4. Set options_accept_language parameter
120
+   1.5. Set options_support parameter
121
+   1.6. rpid_prefix parameter example
122
+   1.7. rpid_suffix parameter example
123
+   1.8. rpid_avp parameter example
124
+   1.9. options_reply usage
125
+   1.10. is_user usage
126
+   1.11. has_totag usage
127
+   1.12. uri_param usage
128
+   1.13. uri_param usage
129
+   1.14. uri_param_any usage
130
+   1.15. add_uri_param usage
131
+   1.16. add_uri_param usage
132
+   1.17. uri_param_rm usage
133
+   1.18. tel2sip usage
134
+   1.19. is_e164 usage
135
+   1.20. is_uri_user_e164 usage
136
+   1.21. is_uri usage
137
+   1.22. is_tel_number usage
138
+   1.23. is_numeric usage
139
+   1.24. is_alphanum usage
140
+   1.25. is_alphanumex usage
141
+   1.26. encode_contact usage
142
+   1.27. decode_contact usage
143
+   1.28. decode_contact_header usage
144
+   1.29. cmp_uri usage
145
+   1.30. cmp_aor usage
146
+   1.31. cmp_hdr_name usage
147
+   1.32. append_rpid_hf usage
148
+   1.33. append_rpid_hf(prefix, suffix) usage
149
+   1.34. is_rpid_user_e164 usage
150
+   1.35. set_uri_user usage
151
+   1.36. set_uri_host usage
152
+   1.37. is_request usage
153
+   1.38. is_reply usage
154
+   1.39. is_gruu() usage
155
+   1.40. is_supported() usage
156
+   1.41. is_first_hop() usage
157
+   1.42. sip_p_charging_vector() usage
158
+   1.43. contact_param_encode usage
159
+   1.44. contact_param_decode usage
160
+   1.45. contact_param_decode_ruri usage
161
+   1.46. contact_param_rm usage
162
+   1.47. hdr_date_check usage
167 163
 
168 164
 Chapter 1. Admin Guide
169 165
 
... ...
@@ -177,58 +173,56 @@ Chapter 1. Admin Guide
177 173
 
178 174
    3. Parameters
179 175
 
180
-        3.1. ring_timeout (int)
181
-        3.2. options_accept (string)
182
-        3.3. options_accept_encoding (string)
183
-        3.4. contact_flds_separator (string)
184
-        3.5. options_accept_language (string)
185
-        3.6. options_support (string)
186
-        3.7. rpid_prefix (string)
187
-        3.8. rpid_suffix (string)
188
-        3.9. rpid_avp (string)
176
+        3.1. options_accept (string)
177
+        3.2. options_accept_encoding (string)
178
+        3.3. contact_flds_separator (string)
179
+        3.4. options_accept_language (string)
180
+        3.5. options_support (string)
181
+        3.6. rpid_prefix (string)
182
+        3.7. rpid_suffix (string)
183
+        3.8. rpid_avp (string)
189 184
 
190 185
    4. Functions
191 186
 
192
-        4.1. ring_insert_callid()
193
-        4.2. options_reply()
194
-        4.3. is_user(username)
195
-        4.4. has_totag()
196
-        4.5. uri_param(param)
197
-        4.6. uri_param(param,value)
198
-        4.7. uri_param_any(param)
199
-        4.8. add_uri_param(param)
200
-        4.9. get_uri_param(name, var)
201
-        4.10. uri_param_rm(param)
202
-        4.11. tel2sip(uri, hostpart, result)
203
-        4.12. is_e164(pseudo-variable)
204
-        4.13. is_uri_user_e164(pseudo-variable)
205
-        4.14. is_uri(pseudo-variable)
206
-        4.15. is_tel_number(tval)
207
-        4.16. is_numeric(tval)
208
-        4.17. is_alphanum(tval)
209
-        4.18. is_alphanumex(tval, eset)
210
-        4.19. encode_contact(encoding_prefix,hostpart)
211
-        4.20. decode_contact()
212
-        4.21. decode_contact_header()
213
-        4.22. cmp_uri(str1, str2)
214
-        4.23. cmp_aor(str1, str2)
215
-        4.24. cmp_hdr_name(str1, str2)
216
-        4.25. append_rpid_hf()
217
-        4.26. append_rpid_hf(prefix, suffix)
218
-        4.27. is_rpid_user_e164()
219
-        4.28. set_uri_user(uri, user)
220
-        4.29. set_uri_host(uri, host)
221
-        4.30. is_request()
222
-        4.31. is_reply()
223
-        4.32. is_gruu([uri])
224
-        4.33. is_supported(option)
225
-        4.34. is_first_hop([mode])
226
-        4.35. sip_p_charging_vector(flags)
227
-        4.36. contact_param_encode(pname, saddr)
228
-        4.37. contact_param_decode(pname)
229
-        4.38. contact_param_decode_uri(pname)
230
-        4.39. contact_param_rm(pname)
231
-        4.40. hdr_date_check(tdiff)
187
+        4.1. options_reply()
188
+        4.2. is_user(username)
189
+        4.3. has_totag()
190
+        4.4. uri_param(param)
191
+        4.5. uri_param(param,value)
192
+        4.6. uri_param_any(param)
193
+        4.7. add_uri_param(param)
194
+        4.8. get_uri_param(name, var)
195
+        4.9. uri_param_rm(param)
196
+        4.10. tel2sip(uri, hostpart, result)
197
+        4.11. is_e164(pseudo-variable)
198
+        4.12. is_uri_user_e164(pseudo-variable)
199
+        4.13. is_uri(pseudo-variable)
200
+        4.14. is_tel_number(tval)
201
+        4.15. is_numeric(tval)
202
+        4.16. is_alphanum(tval)
203
+        4.17. is_alphanumex(tval, eset)
204
+        4.18. encode_contact(encoding_prefix,hostpart)
205
+        4.19. decode_contact()
206
+        4.20. decode_contact_header()
207
+        4.21. cmp_uri(str1, str2)
208
+        4.22. cmp_aor(str1, str2)
209
+        4.23. cmp_hdr_name(str1, str2)
210
+        4.24. append_rpid_hf()
211
+        4.25. append_rpid_hf(prefix, suffix)
212
+        4.26. is_rpid_user_e164()
213
+        4.27. set_uri_user(uri, user)
214
+        4.28. set_uri_host(uri, host)
215
+        4.29. is_request()
216
+        4.30. is_reply()
217
+        4.31. is_gruu([uri])
218
+        4.32. is_supported(option)
219
+        4.33. is_first_hop([mode])
220
+        4.34. sip_p_charging_vector(flags)
221
+        4.35. contact_param_encode(pname, saddr)
222
+        4.36. contact_param_decode(pname)
223
+        4.37. contact_param_decode_uri(pname)
224
+        4.38. contact_param_rm(pname)
225
+        4.39. hdr_date_check(tdiff)
232 226
 
233 227
    5. Exported pseudo-variables
234 228
 
... ...
@@ -243,12 +237,6 @@ Chapter 1. Admin Guide
243 237
    This module implement various functions and checks related to SIP
244 238
    message handling and URI handling.
245 239
 
246
-   It offers some functions related to handle ringing. In a parallel
247
-   forking scenario you get several 183s with SDP. You don't want that
248
-   your customers hear more than one ringtone or answer machine in
249
-   parallel on the phone. So its necessary to drop the 183 in this cases
250
-   and send a 180 instead.
251
-
252 240
    This module also provides a function to answer OPTIONS requests which
253 241
    are directed to the server itself. This means an OPTIONS request which
254 242
    has the address of the server in the request URI, and no username in
... ...
@@ -277,30 +265,16 @@ Chapter 1. Admin Guide
277 265
 
278 266
 3. Parameters
279 267
 
280
-   3.1. ring_timeout (int)
281
-   3.2. options_accept (string)
282
-   3.3. options_accept_encoding (string)
283
-   3.4. contact_flds_separator (string)
284
-   3.5. options_accept_language (string)
285
-   3.6. options_support (string)
286
-   3.7. rpid_prefix (string)
287
-   3.8. rpid_suffix (string)
288
-   3.9. rpid_avp (string)
289
-
290
-3.1. ring_timeout (int)
291
-
292
-   Timeout value in seconds, define how long the call-id is stored in the
293
-   internal list kept for replacing 183 messages with 180. A reasonable
294
-   value is “30”.
295
-
296
-   Default value is “0”. This means functionality is disabled.
297
-
298
-   Example 1.1. Set ring_timeout parameter
299
-...
300
-modparam("siputils", "ring_timeout", 30)
301
-...
268
+   3.1. options_accept (string)
269
+   3.2. options_accept_encoding (string)
270
+   3.3. contact_flds_separator (string)
271
+   3.4. options_accept_language (string)
272
+   3.5. options_support (string)
273
+   3.6. rpid_prefix (string)
274
+   3.7. rpid_suffix (string)
275
+   3.8. rpid_avp (string)
302 276
 
303
-3.2. options_accept (string)
277
+3.1. options_accept (string)
304 278
 
305 279
    This parameter is the content of the Accept header field. Note: it is
306 280
    not clearly written in RFC3261 if a proxy should accept any content
... ...
@@ -309,12 +283,12 @@ modparam("siputils", "ring_timeout", 30)
309 283
 
310 284
    Default value is “*/*”.
311 285
 
312
-   Example 1.2. Set options_accept parameter
286
+   Example 1.1. Set options_accept parameter
313 287
 ...
314 288
 modparam("siputils", "options_accept", "application/*")
315 289
 ...
316 290
 
317
-3.3. options_accept_encoding (string)
291
+3.2. options_accept_encoding (string)
318 292
 
319 293
    This parameter is the content of the Accept-Encoding header field.
320 294
    Please do not change the default value because Kamailio does not
... ...
@@ -322,12 +296,12 @@ modparam("siputils", "options_accept", "application/*")
322 296
 
323 297
    Default value is “”.
324 298
 
325
-   Example 1.3. Set options_accept_encoding parameter
299
+   Example 1.2. Set options_accept_encoding parameter
326 300
 ...
327 301
 modparam("siputils", "options_accept_encoding", "gzip")
328 302
 ...
329 303
 
330
-3.4. contact_flds_separator (string)
304
+3.3. contact_flds_separator (string)
331 305
 
332 306
    First char of this parameter is used as separator for encoding/decoding
333 307
    Contact header.
... ...
@@ -340,7 +314,7 @@ Warning
340 314
 
341 315
    Default value is “*”.
342 316
 
343
-   Example 1.4. Set contact_flds_separator parameter
317
+   Example 1.3. Set contact_flds_separator parameter
344 318
 ...
345 319
 modparam("siputils", "contact_flds_separator", "-")
346 320
 ...
... ...
@@ -348,7 +322,7 @@ modparam("siputils", "contact_flds_separator", "-")
348 322
    then an encoded uri might look
349 323
    sip:user-password-ip-port-protocol@PublicIP
350 324
 
351
-3.5. options_accept_language (string)
325
+3.4. options_accept_language (string)
352 326
 
353 327
    This parameter is the content of the Accept-Language header field. You
354 328
    can set any language code which you prefer for error descriptions from
... ...
@@ -357,12 +331,12 @@ modparam("siputils", "contact_flds_separator", "-")
357 331
 
358 332
    Default value is “en”.
359 333
 
360
-   Example 1.5. Set options_accept_language parameter
334
+   Example 1.4. Set options_accept_language parameter
361 335
 ...
362 336
 modparam("siputils", "options_accept_language", "de")
363 337
 ...
364 338
 
365
-3.6. options_support (string)
339
+3.5. options_support (string)
366 340
 
367 341
    This parameter is the content of the Support header field, indicating
368 342
    SIP extensions. Please do not change the default value, because
... ...
@@ -371,32 +345,32 @@ modparam("siputils", "options_accept_language", "de")
371 345
 
372 346
    Default value is “”.
373 347
 
374
-   Example 1.6. Set options_support parameter
348
+   Example 1.5. Set options_support parameter
375 349
 ...
376 350
 modparam("siputils", "options_support", "100rel")
377 351
 ...
378 352
 
379
-3.7. rpid_prefix (string)
353
+3.6. rpid_prefix (string)
380 354
 
381 355
    Prefix to be added to Remote-Party-ID header field just before the URI
382 356
    returned from either radius or database.
383 357
 
384 358
    Default value is “”.
385 359
 
386
-   Example 1.7. rpid_prefix parameter example
360
+   Example 1.6. rpid_prefix parameter example
387 361
 modparam("auth", "rpid_prefix", "Whatever <")
388 362
 
389
-3.8. rpid_suffix (string)
363
+3.7. rpid_suffix (string)
390 364
 
391 365
    Suffix to be added to Remote-Party-ID header field after the URI
392 366
    returned from either radius or database.
393 367
 
394 368
    Default value is “;party=calling;id-type=subscriber;screen=yes”.
395 369
 
396
-   Example 1.8. rpid_suffix parameter example
370
+   Example 1.7. rpid_suffix parameter example
397 371
 modparam("auth", "rpid_suffix", "@1.2.3.4>")
398 372
 
399
-3.9. rpid_avp (string)
373
+3.8. rpid_avp (string)
400 374
 
401 375
    Full AVP specification for the AVP which stores the RPID value. It used
402 376
    to transport the RPID value from authentication backend modules
... ...
@@ -407,76 +381,52 @@ modparam("auth", "rpid_suffix", "@1.2.3.4>")
407 381
 
408 382
    Default value is “$avp(s:rpid)”.
409 383
 
410
-   Example 1.9. rpid_avp parameter example
384
+   Example 1.8. rpid_avp parameter example
411 385
 modparam("auth", "rpid_avp", "$avp(myrpid)")
412 386
 
413 387
 4. Functions
414 388
 
415
-   4.1. ring_insert_callid()
416
-   4.2. options_reply()
417
-   4.3. is_user(username)
418
-   4.4. has_totag()
419
-   4.5. uri_param(param)
420
-   4.6. uri_param(param,value)
421
-   4.7. uri_param_any(param)
422
-   4.8. add_uri_param(param)
423
-   4.9. get_uri_param(name, var)
424
-   4.10. uri_param_rm(param)
425
-   4.11. tel2sip(uri, hostpart, result)
426
-   4.12. is_e164(pseudo-variable)
427
-   4.13. is_uri_user_e164(pseudo-variable)
428
-   4.14. is_uri(pseudo-variable)
429
-   4.15. is_tel_number(tval)
430
-   4.16. is_numeric(tval)
431
-   4.17. is_alphanum(tval)
432
-   4.18. is_alphanumex(tval, eset)
433
-   4.19. encode_contact(encoding_prefix,hostpart)
434
-   4.20. decode_contact()
435
-   4.21. decode_contact_header()
436
-   4.22. cmp_uri(str1, str2)
437
-   4.23. cmp_aor(str1, str2)
438
-   4.24. cmp_hdr_name(str1, str2)
439
-   4.25. append_rpid_hf()
440
-   4.26. append_rpid_hf(prefix, suffix)
441
-   4.27. is_rpid_user_e164()
442
-   4.28. set_uri_user(uri, user)
443
-   4.29. set_uri_host(uri, host)
444
-   4.30. is_request()
445
-   4.31. is_reply()
446
-   4.32. is_gruu([uri])
447
-   4.33. is_supported(option)
448
-   4.34. is_first_hop([mode])
449
-   4.35. sip_p_charging_vector(flags)
450
-   4.36. contact_param_encode(pname, saddr)
451
-   4.37. contact_param_decode(pname)
452
-   4.38. contact_param_decode_uri(pname)
453
-   4.39. contact_param_rm(pname)
454
-   4.40. hdr_date_check(tdiff)
455
-
456
-4.1.  ring_insert_callid()
457
-
458
-   Inserting the call-id in the internal list, which is checked when
459
-   further replies arrive. Any 183 reply that is received during the
460
-   timeout value will be converted to a 180 message with removed SDP body.
461
-   Please note that you need to set a positive ring_timeout value in order
462
-   to use this function.
463
-
464
-   Note: the change of sip reply can be done only in cases when it is not
465
-   parsed too much before config execution, otherwise it fails. For
466
-   example, setting global parameter "log_prefix" can cause this function
467
-   to fail changing the replies.
468
-
469
-   The function returns TRUE on success, and FALSE during processing
470
-   failures.
471
-
472
-   This function can be used from REQUEST_ROUTE and FAILURE_ROUTE.
473
-
474
-   Example 1.10. ring_insert_callid() usage
475
-...
476
-ring_insert_callid();
477
-...
478
-
479
-4.2.  options_reply()
389
+   4.1. options_reply()
390
+   4.2. is_user(username)
391
+   4.3. has_totag()
392
+   4.4. uri_param(param)
393
+   4.5. uri_param(param,value)
394
+   4.6. uri_param_any(param)
395
+   4.7. add_uri_param(param)
396
+   4.8. get_uri_param(name, var)
397
+   4.9. uri_param_rm(param)
398
+   4.10. tel2sip(uri, hostpart, result)
399
+   4.11. is_e164(pseudo-variable)
400
+   4.12. is_uri_user_e164(pseudo-variable)
401
+   4.13. is_uri(pseudo-variable)
402
+   4.14. is_tel_number(tval)
403
+   4.15. is_numeric(tval)
404
+   4.16. is_alphanum(tval)
405
+   4.17. is_alphanumex(tval, eset)
406
+   4.18. encode_contact(encoding_prefix,hostpart)
407
+   4.19. decode_contact()
408
+   4.20. decode_contact_header()
409
+   4.21. cmp_uri(str1, str2)
410
+   4.22. cmp_aor(str1, str2)
411
+   4.23. cmp_hdr_name(str1, str2)
412
+   4.24. append_rpid_hf()
413
+   4.25. append_rpid_hf(prefix, suffix)
414
+   4.26. is_rpid_user_e164()
415
+   4.27. set_uri_user(uri, user)
416
+   4.28. set_uri_host(uri, host)
417
+   4.29. is_request()
418
+   4.30. is_reply()
419
+   4.31. is_gruu([uri])
420
+   4.32. is_supported(option)
421
+   4.33. is_first_hop([mode])
422
+   4.34. sip_p_charging_vector(flags)
423
+   4.35. contact_param_encode(pname, saddr)
424
+   4.36. contact_param_decode(pname)
425
+   4.37. contact_param_decode_uri(pname)
426
+   4.38. contact_param_rm(pname)
427
+   4.39. hdr_date_check(tdiff)
428
+
429
+4.1.  options_reply()
480 430
 
481 431
    This function checks if the request method is OPTIONS and if the
482 432
    request URI does not contain an username. If both is true the request
... ...
@@ -495,7 +445,7 @@ ring_insert_callid();
495 445
 
496 446
    This function can be used from REQUEST_ROUTE.
497 447
 
498
-   Example 1.11. options_reply usage
448
+   Example 1.9. options_reply usage
499 449
 ...
500 450
 if (uri==myself) {
501 451
         if ((method==OPTIONS) && (! uri=~"sip:.*[@]+.*")) {
... ...
@@ -504,7 +454,7 @@ if (uri==myself) {
504 454
 }
505 455
 ...
506 456
 
507
-4.3.  is_user(username)
457
+4.2.  is_user(username)
508 458
 
509 459
    Check if the username in credentials matches the given username.
510 460
 
... ...
@@ -513,27 +463,27 @@ if (uri==myself) {
513 463
 
514 464
    This function can be used from REQUEST_ROUTE.
515 465
 
516
-   Example 1.12. is_user usage
466
+   Example 1.10. is_user usage
517 467
 ...
518 468
 if (is_user("john")) {
519 469
         ...
520 470
 };
521 471
 ...
522 472
 
523
-4.4.  has_totag()
473
+4.3.  has_totag()
524 474
 
525 475
    Check if To header field uri contains tag parameter.
526 476
 
527 477
    This function can be used from ANY_ROUTE.
528 478
 
529
-   Example 1.13. has_totag usage
479
+   Example 1.11. has_totag usage
530 480
 ...
531 481
 if (has_totag()) {
532 482
         ...
533 483
 };
534 484
 ...
535 485
 
536
-4.5.  uri_param(param)
486
+4.4.  uri_param(param)
537 487
 
538 488
    Find if Request URI has a given parameter with no value
539 489
 
... ...
@@ -542,14 +492,14 @@ if (has_totag()) {
542 492
 
543 493
    This function can be used from REQUEST_ROUTE.
544 494
 
545
-   Example 1.14. uri_param usage
495
+   Example 1.12. uri_param usage
546 496
 ...
547 497
 if (uri_param("param1")) {
548 498
         ...
549 499
 };
550 500
 ...
551 501
 
552
-4.6.  uri_param(param,value)
502
+4.5.  uri_param(param,value)
553 503
 
554 504
    Find if Request URI has a given parameter with matching value
555 505
 
... ...
@@ -559,14 +509,14 @@ if (uri_param("param1")) {
559 509
 
560 510
    This function can be used from REQUEST_ROUTE.
561 511
 
562
-   Example 1.15. uri_param usage
512
+   Example 1.13. uri_param usage
563 513
 ...
564 514
 if (uri_param("param1","value1")) {
565 515
         ...
566 516
 };
567 517
 ...
568 518
 
569
-4.7.  uri_param_any(param)
519
+4.6.  uri_param_any(param)
570 520
 
571 521
    Find if Request URI has a given parameter with or without value.
572 522
 
... ...
@@ -575,14 +525,14 @@ if (uri_param("param1","value1")) {
575 525
 
576 526
    This function can be used from REQUEST_ROUTE.
577 527
 
578
-   Example 1.16. uri_param_any usage
528
+   Example 1.14. uri_param_any usage
579 529
 ...
580 530
 if (uri_param_any("param1")) {
581 531
         ...
582 532
 }
583 533
 ...
584 534
 
585
-4.8.  add_uri_param(param)
535
+4.7.  add_uri_param(param)
586 536
 
587 537
    Add to RURI a parameter (name=value);
588 538
 
... ...
@@ -591,12 +541,12 @@ if (uri_param_any("param1")) {
591 541
 
592 542
    This function can be used from REQUEST_ROUTE.
593 543
 
594
-   Example 1.17. add_uri_param usage
544
+   Example 1.15. add_uri_param usage
595 545
 ...
596 546
 add_uri_param("nat=yes");
597 547
 ...
598 548
 
599
-4.9.  get_uri_param(name, var)
549
+4.8.  get_uri_param(name, var)
600 550
 
601 551
    Get the value of RURI parameter.
602 552
 
... ...
@@ -606,12 +556,12 @@ add_uri_param("nat=yes");
606 556
 
607 557
    This function can be used from REQUEST_ROUTE.
608 558
 
609
-   Example 1.18. add_uri_param usage
559
+   Example 1.16. add_uri_param usage
610 560
 ...
611 561
 get_uri_param("nat", "$var(nat)");
612 562
 ...
613 563
 
614
-4.10.  uri_param_rm(param)
564
+4.9.  uri_param_rm(param)
615 565
 
616 566
    Remove parameter from Request URI.
617 567
 
... ...
@@ -620,14 +570,14 @@ get_uri_param("nat", "$var(nat)");
620 570
 
621 571
    This function can be used from REQUEST_ROUTE.
622 572
 
623
-   Example 1.19. uri_param_rm usage
573
+   Example 1.17. uri_param_rm usage
624 574
 ...
625 575
 if (uri_param_rm("param1")) {
626 576
         ...
627 577
 }
628 578
 ...
629 579
 
630
-4.11.  tel2sip(uri, hostpart, result)
580
+4.10.  tel2sip(uri, hostpart, result)
631 581
 
632 582
    Converts URI in first param (pseudo variable or string) to SIP URI, if
633 583
    it is a tel URI. If conversion was done, writes resulting SIP URI to
... ...
@@ -646,7 +596,7 @@ if (uri_param_rm("param1")) {
646 596
    This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
647 597
    BRANCH_ROUTE, or ONREPLY_ROUTE.
648 598
 
649
-   Example 1.20. tel2sip usage
599
+   Example 1.18. tel2sip usage
650 600
 ...
651 601
 # $ru: tel:+(34)-999-888-777
652 602
 # $fu: sip:test@foo.com
... ...
@@ -659,14 +609,14 @@ tel2sip("$ru", $fd", "$ru");
659 609
 # $ru:  sip:+12345678;ext=200;isub=+123-456@foo.com;user=phone
660 610
 ...
661 611
 
662
-4.12.  is_e164(pseudo-variable)
612
+4.11.  is_e164(pseudo-variable)
663 613
 
664 614
    Checks if string value of pseudo variable argument is an E164 number.
665 615
 
666 616
    This function can be used from REQUEST_ROUTE, FAILURE_ROUTE, and
667 617
    LOCAL_ROUTE.
668 618
 
669
-   Example 1.21. is_e164 usage
619
+   Example 1.19. is_e164 usage
670 620
 ...
671 621
 if (is_e164("$fU")) {  # Check From header URI user part
672 622
    ...
... ...
@@ -677,13 +627,13 @@ if (is_e164("$avp(i:705)") {
677 627
 };
678 628
 ...
679 629
 
680
-4.13.  is_uri_user_e164(pseudo-variable)
630
+4.12.  is_uri_user_e164(pseudo-variable)
681 631
 
682 632
    Checks if userpart of URI stored in pseudo variable is E164 number.
683 633
 
684 634
    This function can be used from ANY_ROUTE.
685 635
 
686
-   Example 1.22. is_uri_user_e164 usage
636
+   Example 1.20. is_uri_user_e164 usage
687 637
 ...
688 638
 if (is_uri_user_e164("$fu")) {  # Check From header URI user part
689 639
    ...
... ...
@@ -694,13 +644,13 @@ if (is_uri_user_e164("$avp(i:705)") {
694 644
 };
695 645
 ...
696 646
 
697
-4.14.  is_uri(pseudo-variable)
647
+4.13.  is_uri(pseudo-variable)
698 648
 
699 649
    Checks if string value of pseudo variable argument is a valid uri.
700 650
 
701 651
    This function can be used from ANY_ROUTE.
702 652
 
703
-   Example 1.23. is_uri usage
653
+   Example 1.21. is_uri usage
704 654
 ...
705 655
 if (is_uri("$var(x)")) {  # Check if variable contains a uri
706 656
    ...
... ...
@@ -711,14 +661,14 @@ if (is_uri("$avp(i:705)") {
711 661
 };
712 662
 ...
713 663
 
714
-4.15.  is_tel_number(tval)
664
+4.14.  is_tel_number(tval)
715 665
 
716 666
    Checks if the parameter value is a telephone number: starting with one
717 667
    optional +, followed by digits. The parameter can include variables.
718 668
 
719 669
    This function can be used from ANY_ROUTE.
720 670
 
721
-   Example 1.24. is_tel_number usage
671
+   Example 1.22. is_tel_number usage
722 672
 ...
723 673
 if (is_tel_number("$rU")) {  # Test if R-URI user is telephone number
724 674
    ...
... ...
@@ -728,35 +678,35 @@ if (is_tel_number("+24242424")) {
728 678
 }
729 679
 ...
730 680
 
731
-4.16.  is_numeric(tval)
681
+4.15.  is_numeric(tval)
732 682
 
733 683
    Checks if the parameter value consists solely of decimal digits. The
734 684
    parameter can include variables.
735 685
 
736 686
    This function can be used from ANY_ROUTE.
737 687
 
738
-   Example 1.25. is_numeric usage
688
+   Example 1.23. is_numeric usage
739 689
 ...
740 690
 if (is_numeric("$rU")) {  # Test if R-URI user consists of decimal digits
741 691
    ...
742 692
 }
743 693
 ...
744 694
 
745
-4.17.  is_alphanum(tval)
695
+4.16.  is_alphanum(tval)
746 696
 
747 697
    Checks if the parameter value consists solely of decimal digits or
748 698
    alphabetic ASCII characters. The parameter can include variables.
749 699
 
750 700
    This function can be used from ANY_ROUTE.
751 701
 
752
-   Example 1.26. is_alphanum usage
702
+   Example 1.24. is_alphanum usage
753 703
 ...
754 704
 if (is_alphanum("$rU")) {
755 705
    ...
756 706
 }
757 707
 ...
758 708
 
759
-4.18.  is_alphanumex(tval, eset)
709
+4.17.  is_alphanumex(tval, eset)
760 710
 
761 711
    Checks if the value of parameter 'tval' consists solely of decimal
762 712
    digits, alphabetic ASCII characters and the characters in the second
... ...
@@ -764,14 +714,14 @@ if (is_alphanum("$rU")) {
764 714
 
765 715
    This function can be used from ANY_ROUTE.
766 716
 
767
-   Example 1.27. is_alphanumex usage
717
+   Example 1.25. is_alphanumex usage
768 718
 ...
769 719
 if (is_alphanumex("$rU", "+.-_")) {
770 720
    ...
771 721
 }
772 722
 ...
773 723
 
774
-4.19.  encode_contact(encoding_prefix,hostpart)
724
+4.18.  encode_contact(encoding_prefix,hostpart)
775 725
 
776 726
    This function will encode uri-s inside Contact header in the following
777 727
    manner sip:username:password@ip:port;transport=protocol goes
... ...
@@ -793,12 +743,12 @@ if (is_alphanumex("$rU", "+.-_")) {
793 743
 
794 744
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
795 745
 
796
-   Example 1.28. encode_contact usage
746
+   Example 1.26. encode_contact usage
797 747
 ...
798 748
 if (src_ip == 10.0.0.0/8) encode_contact("natted_client","1.2.3.4");
799 749
 ...
800 750
 
801
-4.20.  decode_contact()
751
+4.19.  decode_contact()
802 752
 
803 753
    This function will decode the request URI. If the RURI is in the format
804 754
    sip:encoding_prefix*username*password*ip*port*protocol@hostpart it will
... ...
@@ -811,12 +761,12 @@ if (src_ip == 10.0.0.0/8) encode_contact("natted_client","1.2.3.4");
811 761
 
812 762
    This function can be used from REQUEST_ROUTE.
813 763
 
814
-   Example 1.29. decode_contact usage
764
+   Example 1.27. decode_contact usage
815 765
 ...
816 766
 if (uri =~ "^sip:natted_client") { decode_contact(); }
817 767
 ...
818 768
 
819
-4.21.  decode_contact_header()
769
+4.20.  decode_contact_header()
820 770
 
821 771
    This function will decode URIs inside Contact header. If the URI in the
822 772
    format sip:encoding_prefix*username*ip*port*protocol@hostpart it will
... ...
@@ -829,7 +779,7 @@ if (uri =~ "^sip:natted_client") { decode_contact(); }
829 779
 
830 780
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
831 781
 
832
-   Example 1.30. decode_contact_header usage
782
+   Example 1.28. decode_contact_header usage
833 783
 ...
834 784
 reply_route[2] {
835 785
         ...
... ...
@@ -838,13 +788,13 @@ reply_route[2] {
838 788
 }
839 789
 ...
840 790
 
841
-4.22.  cmp_uri(str1, str2)
791
+4.21.  cmp_uri(str1, str2)
842 792
 
843 793
    The function returns true if the two parameters matches as SIP URI.
844 794
 
845 795
    This function can be used from ANY_ROUTE.
846 796
 
847
-   Example 1.31. cmp_uri usage
797
+   Example 1.29. cmp_uri usage
848 798
 ...
849 799
 if(cmp_uri("$ru", "sip:kamailio@kamailio.org"))
850 800
 {
... ...
@@ -852,14 +802,14 @@ if(cmp_uri("$ru", "sip:kamailio@kamailio.org"))
852 802
 }
853 803
 ...
854 804
 
855
-4.23.  cmp_aor(str1, str2)
805
+4.22.  cmp_aor(str1, str2)
856 806
 
857 807
    The function returns true if the two parameters matches as AoR. The
858 808
    parameters have to be SIP URIs.
859 809
 
860 810
    This function can be used from ANY_ROUTE.
861 811
 
862
-   Example 1.32. cmp_aor usage
812
+   Example 1.30. cmp_aor usage
863 813
 ...
864 814
 if(cmp_aor("$rU@KaMaIlIo.org", "sip:kamailio@$fd"))
865 815
 {
... ...
@@ -867,14 +817,14 @@ if(cmp_aor("$rU@KaMaIlIo.org", "sip:kamailio@$fd"))
867 817
 }
868 818
 ...
869 819
 
870
-4.24.  cmp_hdr_name(str1, str2)
820
+4.23.  cmp_hdr_name(str1, str2)
871 821
 
872 822
    The function returns true (return code 1) if the two parameters matches
873 823
    as header names.
874 824
 
875 825
    This function can be used from ANY_ROUTE.
876 826
 
877
-   Example 1.33. cmp_hdr_name usage
827
+   Example 1.31. cmp_hdr_name usage
878 828
 ...
879 829
 if(cmp_hdr_name("$var(hname)", "From"))
880 830
 {
... ...
@@ -882,7 +832,7 @@ if(cmp_hdr_name("$var(hname)", "From"))
882 832
 }
883 833
 ...
884 834
 
885
-4.25.  append_rpid_hf()
835
+4.24.  append_rpid_hf()
886 836
 
887 837
    Appends to the message a Remote-Party-ID header that contains header
888 838
    'Remote-Party-ID: ' followed by the saved value of the SIP URI received
... ...
@@ -893,14 +843,14 @@ if(cmp_hdr_name("$var(hname)", "From"))
893 843
    This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
894 844
    BRANCH_ROUTE.
895 845
 
896
-   Example 1.34. append_rpid_hf usage
846
+   Example 1.32. append_rpid_hf usage
897 847
 ...
898 848
 append_rpid_hf();  # Append Remote-Party-ID header field
899 849
 ...
900 850
 
901
-4.26.  append_rpid_hf(prefix, suffix)
851
+4.25.  append_rpid_hf(prefix, suffix)
902 852
 
903
-   This function is the same as Section 4.25, “ append_rpid_hf()”. The
853
+   This function is the same as Section 4.24, “ append_rpid_hf()”. The
904 854
    only difference is that it accepts two parameters--prefix and suffix to
905 855
    be added to Remote-Party-ID header field. This function ignores
906 856
    rpid_prefix and rpid_suffix parameters, instead of that allows to set
... ...
@@ -917,13 +867,13 @@ append_rpid_hf();  # Append Remote-Party-ID header field
917 867
    This function can be used from REQUEST_ROUTE, FAILURE_ROUTE,
918 868
    BRANCH_ROUTE.
919 869
 
920
-   Example 1.35. append_rpid_hf(prefix, suffix) usage
870
+   Example 1.33. append_rpid_hf(prefix, suffix) usage
921 871
 ...
922 872
 # Append Remote-Party-ID header field
923 873
 append_rpid_hf("", ";party=calling;id-type=subscriber;screen=yes");
924 874
 ...
925 875
 
926
-4.27.  is_rpid_user_e164()
876
+4.26.  is_rpid_user_e164()
927 877
 
928 878
    The function checks if the SIP URI received from the database or radius
929 879
    server and will potentially be used in Remote-Party-ID header field
... ...
@@ -933,68 +883,68 @@ append_rpid_hf("", ";party=calling;id-type=subscriber;screen=yes");
933 883
 
934 884
    This function can be used from REQUEST_ROUTE.
935 885
 
936
-   Example 1.36. is_rpid_user_e164 usage
886
+   Example 1.34. is_rpid_user_e164 usage
937 887
 ...
938 888
 if (is_rpid_user_e164()) {
939 889
     # do something here
940 890
 };
941 891
 ...
942 892
 
943
-4.28.  set_uri_user(uri, user)
893
+4.27.  set_uri_user(uri, user)
944 894
 
945 895
    Sets userpart of SIP URI stored in writable pseudo variable 'uri' to
946 896
    value of pseudo variable 'user'.
947 897
 
948 898
    This function can be used from ANY_ROUTE.
949 899
 
950
-   Example 1.37. set_uri_user usage
900
+   Example 1.35. set_uri_user usage
951 901
 ...
952 902
 $var(uri) = "sip:user@host";
953 903
 $var(user) = "new_user";
954 904
 set_uri_user("$var(uri)", "$var(user)");
955 905
 ...
956 906
 
957
-4.29.  set_uri_host(uri, host)
907
+4.28.  set_uri_host(uri, host)
958 908
 
959 909
    Sets hostpart of SIP URI stored in writable pseudo variable 'uri' to
960 910
    value of pseudo variable 'host'.
961 911
 
962 912
    This function can be used from ANY_ROUTE.
963 913
 
964
-   Example 1.38. set_uri_host usage
914
+   Example 1.36. set_uri_host usage
965 915
 ...
966 916
 $var(uri) = "sip:user@host";
967 917
 $var(host) = "new_host";
968 918
 set_uri_host("$var(uri)", "$var(host)");
969 919
 ...
970 920
 
971
-4.30.  is_request()
921
+4.29.  is_request()
972 922
 
973 923
    Return true if the SIP message is a request.
974 924
 
975 925
    This function can be used from ANY_ROUTE.
976 926
 
977
-   Example 1.39. is_request usage
927
+   Example 1.37. is_request usage
978 928
 ...
979 929
 if (is_request()) {
980 930
         ...
981 931
 }
982 932
 ...
983 933
 
984
-4.31.  is_reply()
934
+4.30.  is_reply()
985 935
 
986 936
    Return true if the SIP message is a reply.
987 937
 
988 938
    This function can be used from ANY_ROUTE.
989 939
 
990
-   Example 1.40. is_reply usage
940
+   Example 1.38. is_reply usage
991 941
 ...
992 942
 if (is_reply()) {
993 943
         ...
994 944
 }
995 945
 ...
996 946
 
997
-4.32.  is_gruu([uri])
947
+4.31.  is_gruu([uri])
998 948
 
999 949
    The function returns true if the uri is GRUU ('gr' parameter is
1000 950
    present): 1 - pub-gruu; 2 - temp-gruu.
... ...
@@ -1005,12 +955,12 @@ if (is_reply()) {
1005 955
 
1006 956
    This function can be used from ANY_ROUTE.
1007 957
 
1008
-   Example 1.41. is_gruu() usage
958
+   Example 1.39. is_gruu() usage
1009 959
 ...
1010 960
 if(is_gruu()) { ... }
1011 961
 ...
1012 962
 
1013
-4.33.  is_supported(option)
963
+4.32.  is_supported(option)
1014 964
 
1015 965
    Function returns true if given option is listed in Supported header(s)
1016 966
    (if any) of the request. Currently the following options are known:
... ...
@@ -1018,12 +968,12 @@ if(is_gruu()) { ... }
1018 968
 
1019 969
    This function can be used from ANY_ROUTE.
1020 970
 
1021
-   Example 1.42. is_supported() usage
971
+   Example 1.40. is_supported() usage
1022 972
 ...
1023 973
 if (is_supported("outbound")) { ... }
1024 974
 ...
1025 975
 
1026
-4.34.  is_first_hop([mode])
976
+4.33.  is_first_hop([mode])
1027 977
 
1028 978
    The function returns true if the proxy is first hop after the original
1029 979
    sender based on a best effort estimation by checking Via and
... ...
@@ -1048,26 +998,26 @@ if (is_supported("outbound")) { ... }
1048 998
 
1049 999
    This function can be used from ANY_ROUTE.
1050 1000
 
1051
-   Example 1.43. is_first_hop() usage
1001
+   Example 1.41. is_first_hop() usage
1052 1002
 ...
1053 1003
 if(is_first_hop()) { ... }
1054 1004
 ...
1055 1005
 if(is_first_hop_mode("1")) { ... }
1056 1006
 ...
1057 1007
 
1058
-4.35.  sip_p_charging_vector(flags)
1008
+4.34.  sip_p_charging_vector(flags)
1059 1009
 
1060 1010
    Manage the P-Charging-Vector header (RFC7315). The flags can be: 'r' -
1061 1011
    remove; 'g' - generate; 'f' - force (remove + generate).
1062 1012
 
1063 1013
    This function can be used from ANY_ROUTE.
1064 1014
 
1065
-   Example 1.44. sip_p_charging_vector() usage
1015
+   Example 1.42. sip_p_charging_vector() usage
1066 1016
 ...
1067 1017
 sip_p_charging_vector("g");
1068 1018
 ...
1069 1019
 
1070
-4.36.  contact_param_encode(pname, saddr)
1020
+4.35.  contact_param_encode(pname, saddr)
1071 1021
 
1072 1022
    This function encodes URI inside Contact headers by building a new URI
1073 1023
    from 'saddr' parameter and adding a parameter with the name 'pname'
... ...
@@ -1080,14 +1030,14 @@ sip_p_charging_vector("g");
1080 1030
 
1081 1031
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
1082 1032
 
1083
-   Example 1.45. contact_param_encode usage
1033
+   Example 1.43. contact_param_encode usage
1084 1034
 ...
1085 1035
 if (is_method("REGISTER") and src_ip == 10.0.0.0/8) {
1086 1036
     contact_param_encode("ksu", "sip:1.2.3.4:5060;transport=tcp");
1087 1037
 }
1088 1038
 ...
1089 1039
 
1090
-4.37.  contact_param_decode(pname)
1040
+4.36.  contact_param_decode(pname)
1091 1041
 
1092 1042
    This function decodes URI inside Contact headers by building a new URI
1093 1043
    from 'pname' parameter, decoding its value from Base64URL.
... ...
@@ -1098,14 +1048,14 @@ if (is_method("REGISTER") and src_ip == 10.0.0.0/8) {
1098 1048
 
1099 1049
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
1100 1050
 
1101
-   Example 1.46. contact_param_decode usage
1051
+   Example 1.44. contact_param_decode usage
1102 1052
 ...
1103 1053
 if (is_method("REGISTER") and src_ip == 1.2.3.4) {
1104 1054
     contact_param_decode("ksu");
1105 1055
 }
1106 1056
 ...
1107 1057
 
1108
-4.38.  contact_param_decode_uri(pname)
1058
+4.37.  contact_param_decode_uri(pname)
1109 1059
 
1110 1060
    This function decodes R-URI (request URI) by building a new R-URI from
1111 1061
    'pname' parameter, decoding its value from Base64URL.
... ...
@@ -1116,14 +1066,14 @@ if (is_method("REGISTER") and src_ip == 1.2.3.4) {
1116 1066
 
1117 1067
    This function can be used from REQUEST_ROUTE.
1118 1068
 
1119
-   Example 1.47. contact_param_decode_ruri usage
1069
+   Example 1.45. contact_param_decode_ruri usage
1120 1070
 ...
1121 1071
 if (is_method("INVITE") and src_ip == 1.2.3.4) {
1122 1072
     contact_param_decode_ruri("ksu");
1123 1073
 }
1124 1074
 ...
1125 1075
 
1126
-4.39.  contact_param_rm(pname)
1076
+4.38.  contact_param_rm(pname)
1127 1077
 
1128 1078
    This function removes the parameter from the URIs inside the Contact
1129 1079
    headers.
... ...
@@ -1133,14 +1083,14 @@ if (is_method("INVITE") and src_ip == 1.2.3.4) {
1133 1083
 
1134 1084
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE.
1135 1085
 
1136
-   Example 1.48. contact_param_rm usage
1086
+   Example 1.46. contact_param_rm usage
1137 1087
 ...
1138 1088
 if (is_method("REGISTER") and src_ip == 1.2.3.4) {
1139 1089
     contact_param_rm("myparam");
1140 1090
 }
1141 1091
 ...
1142 1092
 
1143
-4.40.  hdr_date_check(tdiff)
1093
+4.39.  hdr_date_check(tdiff)
1144 1094
 
1145 1095
    Returns true if sip message has Date header and its value is lower than
1146 1096
    'NOW() - tdiff'.
... ...
@@ -1151,7 +1101,7 @@ if (is_method("REGISTER") and src_ip == 1.2.3.4) {
1151 1101
 
1152 1102
    This function can be used from ANY_ROUTE.
1153 1103
 
1154
-   Example 1.49. hdr_date_check usage
1104
+   Example 1.47. hdr_date_check usage
1155 1105
 ...
1156 1106
 if (!hdr_date_check("10")) {
1157 1107
     sl_send_reply("403", "Outdated date");