Selaa lähdekoodia

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

Kamailio Dev 8 vuotta sitten
vanhempi
commit
7fc44593b6
2 muutettua tiedostoa jossa 60 lisäystä ja 13 poistoa
  1. 58 12
      src/modules/path/README
  2. 2 1
      src/modules/rr/README

+ 58 - 12
src/modules/path/README

@@ -32,6 +32,8 @@ Richard Fuchs
         3. Parameters
 
               3.1. use_received (int)
+              3.2. received_format (int)
+              3.3. enable_r2 (int)
 
         4. Functions
 
@@ -46,12 +48,14 @@ Richard Fuchs
 
    1.1. Add Supported header
    1.2. Set use_received parameter
-   1.3. add_path usage
-   1.4. add_path(user) usage
-   1.5. add_path(user, parameters) usage
-   1.6. add_path_received() usage
-   1.7. add_path_received(user) usage
-   1.8. add_path_received(user, parameters) usage
+   1.3. Set received_format parameter
+   1.4. Set use_received parameter
+   1.5. add_path usage
+   1.6. add_path(user) usage
+   1.7. add_path(user, parameters) usage
+   1.8. add_path_received() usage
+   1.9. add_path_received(user) usage
+   1.10. add_path_received(user, parameters) usage
 
 Chapter 1. Admin Guide
 
@@ -70,6 +74,8 @@ Chapter 1. Admin Guide
    3. Parameters
 
         3.1. use_received (int)
+        3.2. received_format (int)
+        3.3. enable_r2 (int)
 
    4. Functions
 
@@ -154,6 +160,8 @@ append_hf("Supported: path\r\n");
 3. Parameters
 
    3.1. use_received (int)
+   3.2. received_format (int)
+   3.3. enable_r2 (int)
 
 3.1. use_received (int)
 
@@ -167,6 +175,44 @@ append_hf("Supported: path\r\n");
 modparam("path", "use_received", 1)
 ...
 
+3.2. received_format (int)
+
+   If set to 0, the “received” parameter value will be in the escaped SIP
+   URI format.
+
+   If set to 1, the “received” parameter value will be in the same format
+   as the “alias” parameter added by set_contact_alias() from “nathelper”
+   module (i.e., “ip~port~protid”). This is a solution with some SIP
+   applications that incorrectly match the transport from received
+   parameter instead of the one from the SIP URI.
+
+   Default value is 0.
+
+   Example 1.3. Set received_format parameter
+...
+modparam("path", "received_format", 1)
+...
+
+3.3. enable_r2 (int)
+
+   If set to 1, the module will add two Path headers, similar to the
+   double Record-Route done by rr module. One Path headers corresponds to
+   incoming network socket and the other to outgoing network socket. The
+   URIs in the Path headers will have the 'r2=on' parameter as well.
+
+   Note: if enabled, the module adds the two Path headers even when the
+   incoming socket is the same as outgoing socket. Improvements to skip
+   the second Path header in this case may be introduced in the future,
+   meanwhile, if you need to enable this parameter but also deal with same
+   socket routing, use 'insert_hf("Path: <$Ru>\r\n")'.
+
+   Default value is 0.
+
+   Example 1.4. Set use_received parameter
+...
+modparam("path", "use_received", 1)
+...
+
 4. Functions
 
    4.1. add_path()
@@ -191,7 +237,7 @@ modparam("path", "use_received", 1)
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.3. add_path usage
+   Example 1.5. add_path usage
 ...
 if (!add_path()) {
         sl_send_reply("503", "Internal Path Error");
@@ -209,7 +255,7 @@ if (!add_path()) {
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.4. add_path(user) usage
+   Example 1.6. add_path(user) usage
 ...
 if (!add_path("loadbalancer")) {
         sl_send_reply("503", "Internal Path Error");
@@ -231,7 +277,7 @@ if (!add_path("loadbalancer")) {
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.5. add_path(user, parameters) usage
+   Example 1.7. add_path(user, parameters) usage
 ...
 if (!add_path("loadbalancer", "ob")) {
         sl_send_reply("503", "Internal Path Error");
@@ -248,7 +294,7 @@ if (!add_path("loadbalancer", "ob")) {
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.6. add_path_received() usage
+   Example 1.8. add_path_received() usage
 ...
 if (!add_path_received()) {
         sl_send_reply("503", "Internal Path Error");
@@ -265,7 +311,7 @@ if (!add_path_received()) {
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.7. add_path_received(user) usage
+   Example 1.9. add_path_received(user) usage
 ...
 if (!add_path_received("inbound")) {
         sl_send_reply("503", "Internal Path Error");
@@ -282,7 +328,7 @@ if (!add_path_received("inbound")) {
 
    This function can be used from REQUEST_ROUTE.
 
-   Example 1.8. add_path_received(user, parameters) usage
+   Example 1.10. add_path_received(user, parameters) usage
 ...
 if (!add_path_received("inbound", "ob")) {
         sl_send_reply("503", "Internal Path Error");

+ 2 - 1
src/modules/rr/README

@@ -170,6 +170,7 @@ Chapter 1. Admin Guide
      * check_route_param() - see Section 5.7, “check_route_param(re)”
 
    Example 1.1. Dialog support in RR module
+...
 UAC                       Kamailio PROXY                          UAS
 
 ---- INVITE ------>       record_route()          ----- INVITE ---->
@@ -183,6 +184,7 @@ UAC                       Kamailio PROXY                          UAS
 
 <------ BYE -------        loose_route()          <----- BYE -------
                     check_route_param(";foo=true")
+...
 
 3. Dependencies
 
@@ -321,7 +323,6 @@ modparam("rr", "custom_user_avp", "$avp(RR_CUSTOMER_USER_AVP)")
 #usage in cfg file
 $avp(RR_CUSTOM_USER_AVP)="mo";
 record_route();
-
 ...
 
 5. Functions