diff --git a/modules/nathelper/doc/nathelper_admin.xml b/modules/nathelper/doc/nathelper_admin.xml
index 2b948a52c64..f29cf474950 100644
--- a/modules/nathelper/doc/nathelper_admin.xml
+++ b/modules/nathelper/doc/nathelper_admin.xml
@@ -772,16 +772,16 @@ fix_nated_register();
nat_uac_test(flags)
- Tries to guess if client's request originated behind a nat.
- The parameter determines what heuristics is used.
+ Determines whether the received SIP message originated behind a NAT,
+ using one or more pre-defined checks.
- Meaning of the flags (string) parameter
- is as follows:
+ The flags (string) parameter denotes a
+ comma-separated list of checks to be performed, as follows:
private-contact - (old 1 flag)
Contact header field is searched for occurrence of RFC1918 / RFC6598
- addresses.
+ addresses
diff-ip-src-via - (old 2 flag)
@@ -812,17 +812,26 @@ fix_nated_register();
carrier-grade-nat - (old 128
flag) also include RFC 6333 addresses in the checks for
- ct, via and
- sdp flags.
+ Contact, Via and
+ SDP
- A CSV of the above flags can be provided, the test returns true if any of
- the tests identified a NAT.
+ Returns true if any of the tests passed.
This function can be used from REQUEST_ROUTE, ONREPLY_ROUTE, FAILURE_ROUTE, BRANCH_ROUTE.
+
+ nat_uac_test usage
+
+...
+# check for private Contact or SDP media IP addresses
+if (nat_uac_test("private-contact,private-sdp"))
+ xlog("SIP message is NAT'ed (Call-ID: $ci)\n");
+...
+
+