Skip to content

Commit c6ef3a4

Browse files
[mid_]registrar: add missing file from commit ad37cac
1 parent 806381e commit c6ef3a4

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

lib/reg/doc/save_common_flags.xml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
<listitem>
2+
<para><emphasis>'memory-only'</emphasis> - (old <emphasis>m</emphasis> flag)
3+
save the contacts only in memory cache without no DB operation;
4+
</para>
5+
</listitem>
6+
<listitem>
7+
<para><emphasis>'no-reply'</emphasis> - (old <emphasis>r</emphasis> flag)
8+
do not generate a SIP reply to the current REGISTER request.
9+
</para>
10+
</listitem>
11+
<listitem>
12+
<para><emphasis>'max-contacts=[int]'</emphasis> - (old <emphasis>c</emphasis>
13+
flag) this flag can be used to limit the number of contacts for this
14+
AOR (Address of Record) in the user location database.
15+
Value 0 disables the check. This parameter overrides the
16+
global "max_contacts" module parameter.
17+
</para>
18+
</listitem>
19+
<listitem>
20+
<para><emphasis>'force-registration'</emphasis> - (old <emphasis>f</emphasis>
21+
flag) this flag can be used to force the registration of NEW contacts
22+
even if the maximum number of contacts is reached. In such
23+
a case, older contacts will be removed to make space to the
24+
new ones, without exceeding the maximum allowed number.
25+
This flag makes sense only if "max-contacts" is used.
26+
</para>
27+
</listitem>
28+
<listitem>
29+
<para><emphasis>'matching-mode=[val]'</emphasis> - (old <emphasis>M</emphasis>
30+
flag) How the matching should be performed between the uploaded
31+
contacts (by the currently handled REGISTER) and the
32+
already know contacts (in memory or DB). This options will
33+
be used only for the current operation and can be:
34+
<itemizedlist>
35+
<listitem>
36+
<para><emphasis>'0'</emphasis> - contact URI matching
37+
only</para>
38+
</listitem>
39+
<listitem>
40+
<para><emphasis>'1'</emphasis> - contact URI and
41+
SIP Call-ID matching</para>
42+
</listitem>
43+
<listitem>
44+
<para><emphasis>'&lt;param_name&gt;'</emphasis> - only
45+
the value of the given URI param will be used for
46+
matching (for example &lt;rinstance&gt;)</para>
47+
</listitem>
48+
</itemizedlist>
49+
</para>
50+
</listitem>
51+
<listitem>
52+
<para><emphasis>'path-off'</emphasis> - (old <emphasis>p0</emphasis> flag)
53+
(Path support - 'off' mode) - The Path header is saved into usrloc,
54+
but is never included in the reply.
55+
</para>
56+
</listitem>
57+
<listitem>
58+
<para><emphasis>'path-lazy'</emphasis> - (old <emphasis>p1</emphasis> flag)
59+
(Path support - lazy mode) The Path header is saved into usrloc, but is only
60+
included in the reply if path support is indicated in the
61+
registration request by the <quote>path</quote> option
62+
of the <quote>Supported</quote> header.
63+
</para>
64+
</listitem>
65+
<listitem>
66+
<para><emphasis>'path-strict'</emphasis> - (old <emphasis>p2</emphasis> flag)
67+
(Path support - strict mode) - The path header is only saved into usrloc,
68+
if path support is indicated in the registration request by the
69+
<quote>path</quote> option of the <quote>Supported</quote>
70+
header. If no path support is indicated, the request is
71+
rejected with <quote>420 - Bad Extension</quote> and the
72+
header <quote>Unsupported: path</quote> is included in
73+
the reply along with the received <quote>Path</quote>
74+
header. This mode is the one recommended by RFC-3327.
75+
</para>
76+
</listitem>
77+
<listitem>
78+
<para><emphasis>'path-received'</emphasis> - (old <emphasis>v</emphasis> flag)
79+
if set, the <quote>received</quote> parameter of the first Path
80+
URI of a registration is set as received-uri and the NAT
81+
branch flag is set for this contact. This is useful if
82+
the registrar is placed behind a SIP loadbalancer, which
83+
passes the nat'ed UAC address as <quote>received</quote>
84+
parameter in it's Path uri.
85+
</para>
86+
</listitem>
87+
<listitem>
88+
<para><emphasis>'only-request-contacts'</emphasis> - (old <emphasis>o</emphasis>
89+
flag) Only include the REGISTER request's Contacts in the 200 OK
90+
reply, in case the registration is successful. While this
91+
is against RFC 3261, it may be useful in certain scenarios.
92+
</para>
93+
</listitem>

0 commit comments

Comments
 (0)