Module: kamailio
Branch: master
Commit: bf4ae4b5f4f4b75c534681c520fa1060f234a18e
URL:
https://github.com/kamailio/kamailio/commit/bf4ae4b5f4f4b75c534681c520fa106…
Author: Kamailio Dev <kamailio.dev(a)kamailio.org>
Committer: Kamailio Dev <kamailio.dev(a)kamailio.org>
Date: 2021-06-01T09:31:20+02:00
modules: readme files regenerated - nathelper ... [skip ci]
---
Modified: src/modules/nathelper/README
---
Diff:
https://github.com/kamailio/kamailio/commit/bf4ae4b5f4f4b75c534681c520fa106…
Patch:
https://github.com/kamailio/kamailio/commit/bf4ae4b5f4f4b75c534681c520fa106…
---
diff --git a/src/modules/nathelper/README b/src/modules/nathelper/README
index 0fa395da20..8e5c790d58 100644
--- a/src/modules/nathelper/README
+++ b/src/modules/nathelper/README
@@ -66,7 +66,7 @@ Ovidiu Sas
5.5. nat_uac_test(flags)
5.6. is_rfc1918(ip_address)
5.7. add_contact_alias([ip_addr, port, proto])
- 5.8. handle_ruri_alias()
+ 5.8. handle_ruri_alias([mode])
5.9. set_contact_alias([trim])
5.10. set_alias_to_pv(target_avp)
@@ -157,7 +157,7 @@ Chapter 1. Admin Guide
5.5. nat_uac_test(flags)
5.6. is_rfc1918(ip_address)
5.7. add_contact_alias([ip_addr, port, proto])
- 5.8. handle_ruri_alias()
+ 5.8. handle_ruri_alias([mode])
5.9. set_contact_alias([trim])
5.10. set_alias_to_pv(target_avp)
@@ -497,7 +497,7 @@ modparam("nathelper", "nat_addr_mode", 0)
5.5. nat_uac_test(flags)
5.6. is_rfc1918(ip_address)
5.7. add_contact_alias([ip_addr, port, proto])
- 5.8. handle_ruri_alias()
+ 5.8. handle_ruri_alias([mode])
5.9. set_contact_alias([trim])
5.10. set_alias_to_pv(target_avp)
@@ -668,7 +668,7 @@ if(is_rfc1918("$rd")) {
};
...
-5.8. handle_ruri_alias()
+5.8. handle_ruri_alias([mode])
Checks if the Request URI has an “alias” parameter and if so, removes
it and sets the “$du” based on its value. Note that this means that
@@ -677,6 +677,10 @@ if(is_rfc1918("$rd")) {
on a request, make sure that you screen the alias parameter value of
Request URI the same way as you would screen the Request URI itself.
+ The optional parameter mode can be 0 to consume first alias parameter,
+ otherwise it consumes the last alias parameter. If the parameter mode
+ is not provided, it consumes the first parameter.
+
Returns 1 if “;alias” parameter was found and “$du” was set and the
“$ru” rewritten, 2 if the alias parameter was not found and nothing was
done, or -1 in case of error.