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.
Module: kamailio
Branch: master
Commit: 9c060a66f83a42c46767f5b28b6a3640764ebb87
URL: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a364…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-06-01T09:29:33+02:00
nathelper: docs for mode parameter for handle_ruri_alias()
---
Modified: src/modules/nathelper/doc/nathelper_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a364…
Patch: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a364…
---
diff --git a/src/modules/nathelper/doc/nathelper_admin.xml b/src/modules/nathelper/doc/nathelper_admin.xml
index 5096a676d4..39e61e6856 100644
--- a/src/modules/nathelper/doc/nathelper_admin.xml
+++ b/src/modules/nathelper/doc/nathelper_admin.xml
@@ -794,17 +794,21 @@ if(is_rfc1918("$rd")) {
<section id="nathelper.f.handle_ruri_alias">
<title>
- <function moreinfo="none">handle_ruri_alias()</function>
+ <function moreinfo="none">handle_ruri_alias([mode])</function>
</title>
<para>
Checks if the Request URI has an <quote>alias</quote>
parameter and if so, removes it and sets the <quote>$du</quote> based
- on its value. Note that this means that routing of request is based on
- <quote>;alias</quote> parameter value of the Request URI rather than
+ on its value. Note that this means that routing of request is based on
+ <quote>;alias</quote> parameter value of the Request URI rather than
the Request URI itself. If you call <function>handle_ruri_alias()</function>
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.
+ Request URI the same way as you would screen the Request URI itself.
+ </para>
+ <para>
+ 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.
</para>
<para>
Returns <emphasis>1</emphasis> if <quote>;alias</quote> parameter was