<!-- Common registrar modparams-->

	<section id="param_expires_max_deviation" xreflabel="expires_max_deviation">
		<title><varname>expires_max_deviation</varname> (integer)</title>
		<para>
		Set this parameter in order to add a random +/- deviation up to
		and including the given value to the expiration interval of a
		newly registered contact.  For example, if this parameter is set to
		<emphasis>100</emphasis> and a phone registers for 1800 sec, the final
		expiry will be a random number in the [1700, 1900] interval.
		<para>
		By randomizing the registration lifetimes of the contacts, the
		server is better equipped to deal with a post-restart <emphasis>registration
		storm</emphasis>, when all TCP connections are lost and a significant portion of
		UAs will re-register at the same time.  Thanks to the contact lifetime
		randomization, the registration storm will only happen once rather
		than, e.g., every 1800 seconds following the restart.
		</para>
		</para>
		<para>
		<emphasis>
			Default value is 0 (no deviation).
		</emphasis>
		</para>
		<example>
		<title>Setting the <varname>expires_max_deviation</varname> parameter</title>
		<programlisting format="linespecific">
...
# add a random +/- 0-100 seconds to each registration lifetime
modparam("&reg_module;", "expires_max_deviation", 100)
...
		</programlisting>
		</example>
	</section>


	<section id="param_max_contacts" xreflabel="max_contacts">
		<title><varname>max_contacts</varname> (integer)</title>
		<para>
		The parameter can be used to limit the number of contacts per
		AOR (Address of Record) in the user location database. Value 0
		disables the check.
		<para>
		This is the default value and will be used only if no other value
		(for max_contacts) is passed as parameter to the save() function.
		That's it - the function parameter overwride this global parameter.
		</para>
		</para>
		<para>
		<emphasis>
			Default value is 0.
		</emphasis>
		</para>
		<example>
		<title>Set <varname>max_contacts</varname> parameter</title>
		<programlisting format="linespecific">
...
# Allow no more than 10 contacts per AOR
modparam("&reg_module;", "max_contacts", 10)
...
		</programlisting>
		</example>
	</section>


	<section id="param_max_username_len" xreflabel="max_username_len">
		<title><varname>max_username_len</varname> (integer)</title>
		<para>
		The maximum length of the "username" part of an Address-of-Record SIP URI.
		</para>
		<para>
			Default value is <emphasis role='bold'>64</emphasis>.
		</para>
		<example>
		<title>Setting the <emphasis>max_username_len</emphasis> module parameter</title>
		<programlisting format="linespecific">
modparam("&reg_module;", "max_username_len", 128)
</programlisting>
		</example>
	</section>


	<section id="param_max_domain_len" xreflabel="max_domain_len">
		<title><varname>max_domain_len</varname> (integer)</title>
		<para>
		The maximum length of the "domain" part of an Address-of-Record SIP URI.
		</para>
		<para>
			Default value is <emphasis role='bold'>64</emphasis>.
		</para>
		<example>
		<title>Setting the <emphasis>max_domain_len</emphasis> module parameter</title>
		<programlisting format="linespecific">
modparam("&reg_module;", "max_domain_len", 128)
</programlisting>
		</example>
	</section>


	<section id="param_max_aor_len" xreflabel="max_aor_len">
		<title><varname>max_aor_len</varname> (integer)</title>
		<para>
		The maximum length of an Address-of-Record SIP URI.
		</para>
		<para>
			Default value is <emphasis role='bold'>256</emphasis>.
		</para>
		<example>
		<title>Setting the <emphasis>max_aor_len</emphasis> module parameter</title>
		<programlisting format="linespecific">
modparam("&reg_module;", "max_aor_len", 512)
</programlisting>
		</example>
	</section>


	<section id="param_max_contact_len" xreflabel="max_contact_len">
		<title><varname>max_contact_len</varname> (integer)</title>
		<para>
		The maximum length of a Contact header field SIP URI.
		</para>
		<para>
			Default value is <emphasis role='bold'>255</emphasis>.
		</para>
		<example>
		<title>Setting the <emphasis>max_contact_len</emphasis> module parameter</title>
		<programlisting format="linespecific">
modparam("&reg_module;", "max_contact_len", 512)
</programlisting>
		</example>
	</section>
