Browse code

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

Kamailio Dev authored on 08/07/2020 16:01:26
Showing 1 changed files
... ...
@@ -67,7 +67,7 @@ Ovidiu Sas
67 67
               5.6. is_rfc1918(ip_address)
68 68
               5.7. add_contact_alias([ip_addr, port, proto])
69 69
               5.8. handle_ruri_alias()
70
-              5.9. set_contact_alias()
70
+              5.9. set_contact_alias([trim])
71 71
               5.10. set_alias_to_pv(target_avp)
72 72
 
73 73
         6. Exported Pseudo Variables
... ...
@@ -158,7 +158,7 @@ Chapter 1. Admin Guide
158 158
         5.6. is_rfc1918(ip_address)
159 159
         5.7. add_contact_alias([ip_addr, port, proto])
160 160
         5.8. handle_ruri_alias()
161
-        5.9. set_contact_alias()
161
+        5.9. set_contact_alias([trim])
162 162
         5.10. set_alias_to_pv(target_avp)
163 163
 
164 164
    6. Exported Pseudo Variables
... ...
@@ -498,7 +498,7 @@ modparam("nathelper", "nat_addr_mode", 0)
498 498
    5.6. is_rfc1918(ip_address)
499 499
    5.7. add_contact_alias([ip_addr, port, proto])
500 500
    5.8. handle_ruri_alias()
501
-   5.9. set_contact_alias()
501
+   5.9. set_contact_alias([trim])
502 502
    5.10. set_alias_to_pv(target_avp)
503 503
 
504 504
 5.1.  fix_nated_contact()
... ...
@@ -700,13 +700,19 @@ if(is_rfc1918("$rd")) {
700 700
     };
701 701
 ...
702 702
 
703
-5.9.  set_contact_alias()
703
+5.9.  set_contact_alias([trim])
704 704
 
705 705
    Adds an “;alias=ip~port~transport” parameter to the contact URI
706 706
    containing the received ip, port, and transport protocol. The new
707 707
    contact URI is immediately visible to other modules in the way the
708 708
    fix_nated_contact() does it.
709 709
 
710
+   Meaning of parameters:
711
+     * trim - by default, set_contact_alias() will not detect and trim an
712
+       already existing alias parameter. If this optional parameter is set
713
+       to "1", set_contact_alias() will trim the existing alias before
714
+       adding a new one.
715
+
710 716
    This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE,
711 717
    BRANCH_ROUTE, and FAILURE_ROUTE.
712 718