<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.4//EN"
"http://www.oasis-open.org/docbook/xml/4.4/docbookx.dtd" [

<!-- Include general documentation entities -->
<!ENTITY % docentities SYSTEM "../../../docbook/entities.xml">
%docentities;

]>

<section id="presence_b2b.parameters"><title>Parameters</title>

<variablelist>
<varlistentry>
	<term><varname>default_expiration</varname> (integer)</term>
	<listitem>
		<para>Default subscription expiration timeout in seconds.</para>
		<para>Default value is 3600.</para>
	</listitem>
</varlistentry>
<varlistentry>
	<term><varname>on_error_retry_time</varname> (integer)</term>
	<listitem>
		<para>Time in seconds to next attempt at subscription creation after
		receiving an error from peer (for example 404 response on SUBSCRIBE
		request).</para>
		<para>Default value is 120.</para>
	</listitem>
</varlistentry>
<varlistentry>
	<term><varname>presence_route</varname> (string)</term>
	<listitem><para>Route header put into first generated SUBSCRIBE
	request.</para>
	<para>Default value: empty.
	</para></listitem>
</varlistentry>
<varlistentry>
	<term><varname>additional_presence_headers</varname> (string)</term>
	<listitem><para>Additional headers put into sent SUBSCRIBE requests.</para>
	<para>Default value: empty.
	</para></listitem>
</varlistentry>
<varlistentry>
	<term><varname>wait_for_term_notify</varname> (integer)</term>
	<listitem>
		<para>Default timeout for receiving terminating NOTIFY after
		unsubscribe (SUBSCRIBE with Expires: 0). If no NOTIFY is received during
		this time, the subscription is destroyed without processing last notify. 
		</para>
		<para>Default value is 30.</para>
	</listitem>
</varlistentry>
<varlistentry>
	<term><varname>resubscribe_delta</varname> (integer)</term>
	<listitem>
		<para>Number of seconds before subscription expiration when should be
		sent resubscription request. For example if this value is 60 and the
		subscription is for 3600 seconds (Expires in 2xx response), next
		SUBSCRIBE request will be sent after 3540 seconds.</para>
		<para>Default value is 30.</para>
	</listitem>
</varlistentry>
<varlistentry>
	<term><varname>min_resubscribe_time</varname> (integer)</term>
	<listitem>
		<para>Minimum number of seconds between consequent SUBSCRIBE requests.
		(Renewal SUBSCRIBE is sent at least after this number of seconds.)</para>
		<para>Default value is 30.</para>
	</listitem>
</varlistentry>

<varlistentry>
	<term><varname>handle_presence_subscriptions</varname> (integer)</term>
	<listitem>
		<para>If set to nonzero value the module will handle internal (QSA)
		subscriptions to presence events. If not set, these internal
		subscriptions are ignored.</para>
		<para>Default value is 1.</para>
	</listitem>
</varlistentry>

<varlistentry>
	<term><varname>presence_outbound_proxy</varname></term>
	<listitem><para>URI where to send all presence SUBSCRIBEs. It is better to use
	this than <varname>presence_route</varname>.
	</para>
	<para>Empty by default.
	</para></listitem>
</varlistentry>

<varlistentry>
	<term><varname>max_subscribe_delay</varname></term>
	<listitem><para>If set to value greater than zero SUBSCRIBE requests are
	sent randomly at most after <varname>max_subscribe_delay</varname> seconds.
	SUBSCRIBE requests are sent immediately when processing internal (QSA)
	subscription when set to 0.</para>
	<para>Default value is 0.</para>
	</listitem>
</varlistentry>

</variablelist>
</section>

