Browse code

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

Kamailio Dev authored on 01/06/2021 07:31:20
Showing 1 changed files
... ...
@@ -66,7 +66,7 @@ Ovidiu Sas
66 66
               5.5. nat_uac_test(flags)
67 67
               5.6. is_rfc1918(ip_address)
68 68
               5.7. add_contact_alias([ip_addr, port, proto])
69
-              5.8. handle_ruri_alias()
69
+              5.8. handle_ruri_alias([mode])
70 70
               5.9. set_contact_alias([trim])
71 71
               5.10. set_alias_to_pv(target_avp)
72 72
 
... ...
@@ -157,7 +157,7 @@ Chapter 1. Admin Guide
157 157
         5.5. nat_uac_test(flags)
158 158
         5.6. is_rfc1918(ip_address)
159 159
         5.7. add_contact_alias([ip_addr, port, proto])
160
-        5.8. handle_ruri_alias()
160
+        5.8. handle_ruri_alias([mode])
161 161
         5.9. set_contact_alias([trim])
162 162
         5.10. set_alias_to_pv(target_avp)
163 163
 
... ...
@@ -497,7 +497,7 @@ modparam("nathelper", "nat_addr_mode", 0)
497 497
    5.5. nat_uac_test(flags)
498 498
    5.6. is_rfc1918(ip_address)
499 499
    5.7. add_contact_alias([ip_addr, port, proto])
500
-   5.8. handle_ruri_alias()
500
+   5.8. handle_ruri_alias([mode])
501 501
    5.9. set_contact_alias([trim])
502 502
    5.10. set_alias_to_pv(target_avp)
503 503
 
... ...
@@ -668,7 +668,7 @@ if(is_rfc1918("$rd")) {
668 668
     };
669 669
 ...
670 670
 
671
-5.8.  handle_ruri_alias()
671
+5.8.  handle_ruri_alias([mode])
672 672
 
673 673
    Checks if the Request URI has an “alias” parameter and if so, removes
674 674
    it and sets the “$du” based on its value. Note that this means that
... ...
@@ -677,6 +677,10 @@ if(is_rfc1918("$rd")) {
677 677
    on a request, make sure that you screen the alias parameter value of
678 678
    Request URI the same way as you would screen the Request URI itself.
679 679
 
680
+   The optional parameter mode can be 0 to consume first alias parameter,
681
+   otherwise it consumes the last alias parameter. If the parameter mode
682
+   is not provided, it consumes the first parameter.
683
+
680 684
    Returns 1 if “;alias” parameter was found and “$du” was set and the
681 685
    “$ru” rewritten, 2 if the alias parameter was not found and nothing was
682 686
    done, or -1 in case of error.