Discussion:
[sr-dev] git:master:9c060a66: nathelper: docs for mode parameter for handle_ruri_alias()
Daniel-Constantin Mierla
2021-06-01 07:29:47 UTC
Permalink
Content preview: Module: kamailio Branch: master Commit: 9c060a66f83a42c46767f5b28b6a3640764ebb87
URL: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a3640764ebb87
Author: Daniel-Constantin Mierla <***@gmail.com> Committer: Daniel-Constantin
Mierla <***@gmail.com> Date: 2021-06-01T09:29:33+02:00

Content analysis details: (-2.4 points, 5.5 required)

pts rule name description
---- ---------------------- --------------------------------------------------
-1.0 ALL_TRUSTED Passed through trusted hosts only via SMTP
-1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1%
[score: 0.0000]
0.0 DKIM_ADSP_CUSTOM_MED No valid author signature, adsp_override is
CUSTOM_MED
0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail
provider (miconda[at]gmail.com)
0.2 HEADER_FROM_DIFFERENT_DOMAINS From and EnvelopeFrom 2nd level
mail domains are different
1.0 FORGED_GMAIL_RCVD 'From' gmail.com does not match 'Received'
headers
0.2 FREEMAIL_FORGED_FROMDOMAIN 2nd level domains in From and
EnvelopeFrom freemail headers are
different
-1.0 MAILING_LIST_MULTI Multiple indicators imply a widely-seen list
manager

Module: kamailio
Branch: master
Commit: 9c060a66f83a42c46767f5b28b6a3640764ebb87
URL: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a3640764ebb87

Author: Daniel-Constantin Mierla <***@gmail.com>
Committer: Daniel-Constantin Mierla <***@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/9c060a66f83a42c46767f5b28b6a3640764ebb87.diff
Patch: https://github.com/kamailio/kamailio/commit/9c060a66f83a42c46767f5b28b6a3640764ebb87.patch

---

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
Loading...