[sr-dev] git:master:91c30dc8: nat_traversal: docs for contact_match parameter
Daniel-Constantin Mierla
miconda at gmail.com
Sat Apr 4 09:59:33 CEST 2020
Module: kamailio
Branch: master
Commit: 91c30dc8650d778851fcf439904557bc7363fcc4
URL: https://github.com/kamailio/kamailio/commit/91c30dc8650d778851fcf439904557bc7363fcc4
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2020-04-04T09:59:06+02:00
nat_traversal: docs for contact_match parameter
---
Modified: src/modules/nat_traversal/doc/nat_traversal_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/91c30dc8650d778851fcf439904557bc7363fcc4.diff
Patch: https://github.com/kamailio/kamailio/commit/91c30dc8650d778851fcf439904557bc7363fcc4.patch
---
diff --git a/src/modules/nat_traversal/doc/nat_traversal_admin.xml b/src/modules/nat_traversal/doc/nat_traversal_admin.xml
index f5e8ef00f5..1143e4a90b 100644
--- a/src/modules/nat_traversal/doc/nat_traversal_admin.xml
+++ b/src/modules/nat_traversal/doc/nat_traversal_admin.xml
@@ -493,6 +493,36 @@ modparam("nat_traversal", "keepalive_extra_headers", "User-Agent: &kamailio;\r\n
<programlisting format="linespecific">
...
modparam("nat_traversal", "keepalive_state_file", "/run/kamailio/keepalive_state")
+...
+ </programlisting>
+ </example>
+ </section>
+
+ <section>
+ <title><varname>contact_match</varname> (integer)</title>
+ <para>
+ Control how to match the contact URIs between requests and replies.
+ </para>
+ <para>
+ If set to 0, do string comparison. Use this mode when the contact URI
+ is not changed by registrar or proxy servers.
+ </para>
+ <para>
+ If set to 1, do light URI comparison (match URI type, user, host,
+ port and proto). Use this mode when the contact URI can be changed
+ by registrar or proxy servers (e.g., new parameters added, or the
+ order of parameters changed).
+ </para>
+ <para>
+ <emphasis>
+ Default value is <quote>0</quote>.
+ </emphasis>
+ </para>
+ <example>
+ <title>Setting the <varname>contact_match</varname> parameter</title>
+ <programlisting format="linespecific">
+...
+modparam("nat_traversal", "contact_match", 1)
...
</programlisting>
</example>
More information about the sr-dev
mailing list