params.xml 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
  4. <section id="pa.parameters"><title>Parameters</title>
  5. <variablelist>
  6. <varlistentry>
  7. <term><varname>default_expires</varname> (integer)</term>
  8. <listitem>
  9. <para>Default expiration value to be used when the client
  10. doesn't supply one (in seconds). It is used for both subscriptions and
  11. publications.</para>
  12. <para>Default value is 3600.</para>
  13. </listitem>
  14. </varlistentry>
  15. <varlistentry>
  16. <term><varname>max_subscription_expiration</varname> (integer)</term>
  17. <listitem>
  18. <para>Maximal subscription expiration value in seconds.</para>
  19. <para>Default value is 3600.</para>
  20. </listitem>
  21. </varlistentry>
  22. <varlistentry>
  23. <term><varname>max_publish_expiration</varname> (integer)</term>
  24. <listitem>
  25. <para>Maximal expiration of presence status information published via
  26. PUBLISH in seconds.</para>
  27. <para>Default value is 3600.</para>
  28. </listitem>
  29. </varlistentry>
  30. <varlistentry>
  31. <term><varname>use_db</varname> (integer)</term>
  32. <listitem>
  33. <para>If set to 1, PA module stores all subscription data into database
  34. and reloads them on startup. Requires <varname>db_url</varname> to be
  35. set.</para>
  36. <para>Default value is 1.</para>
  37. </listitem>
  38. </varlistentry>
  39. <varlistentry>
  40. <term><varname>db_url</varname> (integer)</term>
  41. <listitem>
  42. <para>Database connection URL. It has to be specified if
  43. <varname>use_db</varname> or <varname>use_offline_winfo</varname> is
  44. set.</para>
  45. <para>Default value is empty.</para>
  46. <example><title><varname>db_url</varname> settings</title>
  47. <programlisting>
  48. ...
  49. modparam("pa", "use_db", 1)
  50. modparam("pa", "db_url", "mysql://ser:[email protected]:3306/ser")
  51. ...
  52. </programlisting>
  53. </example>
  54. </listitem>
  55. </varlistentry>
  56. <varlistentry>
  57. <term><varname>use_callbacks</varname> (integer)</term>
  58. <listitem>
  59. <para>If set to 1 callbacks to registrar/jabber will be used, if set to 0
  60. callbacks will not be used, thus it will work only with published
  61. information.</para>
  62. <para>Default value is 1.</para>
  63. </listitem>
  64. </varlistentry>
  65. <varlistentry>
  66. <term><varname>accept_internal_subscriptions</varname> (integer)</term>
  67. <listitem>
  68. <para>If set to 1 PA module will accept internal subscriptions via
  69. Querry Status API otherwise not. Set this to 1 if you want RLS module
  70. to be using internal subscriptions to PA. You can't use presence B2B UA
  71. in this case!</para>
  72. <para>Default value is 0.</para>
  73. <para><warning>Internal subscriptions are not handled in configuration
  74. script thus they use default values of parameters (like XCAP root
  75. settings for authorization, ...)</warning>
  76. </para>
  77. </listitem>
  78. </varlistentry>
  79. <varlistentry>
  80. <term id="pa.param.watcherinfo_notify"><varname>watcherinfo_notify</varname> (integer)</term>
  81. <listitem>
  82. <para>Set this to 1 if you want to enable subscriptions to
  83. "presence.winfo" events. If set to 0, watcherinfo subscriptions are
  84. denied.</para>
  85. <para>Default value is 1.</para>
  86. </listitem>
  87. </varlistentry>
  88. <varlistentry>
  89. <term><varname>use_offline_winfo</varname> (integer)</term>
  90. <listitem>
  91. <para>Set this to 1 if you want to use offline watcher info
  92. notifications. In such case can be watcher information stored in database
  93. and later dumped to presentity in watcher info notification, requires
  94. <varname>db_url</varname> to be set. See functions for example.</para>
  95. <para>Default value is 0.</para>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry>
  99. <term><varname>offline_winfo_expiration</varname> (integer)</term>
  100. <listitem>
  101. <para>Expiration time of stored "offline watcher information" in seconds.
  102. After this time is the information removed from database.</para>
  103. <para>Default value is 259200.</para>
  104. </listitem>
  105. </varlistentry>
  106. <varlistentry>
  107. <term><varname>offline_winfo_timer</varname> (integer)</term>
  108. <listitem>
  109. <para>Number of seconds after which is triggered automatic cleanup of
  110. expired offline watcherinfo.</para>
  111. <para>Default value is 3600.</para>
  112. </listitem>
  113. </varlistentry>
  114. <varlistentry>
  115. <term><varname>auth</varname> (string)</term>
  116. <listitem>
  117. <para>This variable specifies authorization type for presence watchers (event
  118. package is <quote>presence</quote>). Value can be one of:
  119. <variablelist>
  120. <varlistentry>
  121. <term>none</term>
  122. <listitem><para>All watchers are <emphasis>always authorized</emphasis>. This is not recommended
  123. because it ignores user's wish.</para></listitem>
  124. </varlistentry>
  125. <varlistentry>
  126. <term>implicit</term>
  127. <listitem><para>All watchers are <emphasis>always pending</emphasis>. This is not recommended
  128. because it means, that no presence data is sent to all watchers.</para></listitem>
  129. </varlistentry>
  130. <varlistentry>
  131. <term>xcap</term>
  132. <listitem><para>This type of authorization means, that authorization rules
  133. are read from XCAP server and processed <xref linkend="pres_draft_auth"/>.
  134. In this case the <application>xcap</application> module must be loaded.</para></listitem>
  135. </varlistentry>
  136. </variablelist>
  137. </para>
  138. <para>Default value is empty. In this case <quote>implict</quote> authorization
  139. is used with an error message.</para>
  140. </listitem>
  141. </varlistentry>
  142. <varlistentry>
  143. <term><varname>winfo_auth</varname> (string)</term>
  144. <listitem>
  145. <para>This variable specifies authorization type for watcher info watchers (event
  146. package is <quote>presence.winfo</quote>). Value can be one of:
  147. <variablelist>
  148. <varlistentry>
  149. <term>none</term>
  150. <listitem><para>All watcher info watchers are <emphasis>always authorized</emphasis>.
  151. This is not recommended.</para></listitem>
  152. </varlistentry>
  153. <varlistentry>
  154. <term>implicit</term>
  155. <listitem><para>This value means, that presentity can subscribe to its
  156. own watcher info data and nobody else. This is done via comparing watcher's
  157. and presentity's uri. If these values equals, the subscription is allowed.
  158. In other cases is the subscription rejected.
  159. </para></listitem>
  160. </varlistentry>
  161. </variablelist>
  162. </para>
  163. <para>Default value is <quote>implict</quote></para>
  164. </listitem>
  165. </varlistentry>
  166. <varlistentry>
  167. <term>pres_rules_file</term>
  168. <listitem><para>Name of the file with presence rules on XCAP server. The filename is
  169. by default <quote>presence-rules.xml</quote>. It is common for all
  170. subscriptions/users which seems to be insufficient. It will be replaced by
  171. holding this information for each user separately in user attributes (TODO).
  172. </para></listitem>
  173. </varlistentry>
  174. <varlistentry>
  175. <term>ignore_408_on_notify</term>
  176. <listitem><para>If set to 1 the 408 response to NOTIFY is ignored, otherwise
  177. all 4xx responses including 408 destroys the subscription.</para>
  178. <para>Reason for this parameter is that some clients are not able to process
  179. two NOTIFY requests received shortly in sequence and unresponded NOTIFY
  180. resulting in generated 408 response destroyed subscription created by
  181. them.</para>
  182. <para>Default value is 0.</para></listitem>
  183. </varlistentry>
  184. <varlistentry>
  185. <term>timer_interval</term>
  186. <listitem><para>Interval in seconds when the timer runs and clears expired
  187. watchers/tuples and send NOTIFYs for changed presentities.
  188. </para></listitem>
  189. </varlistentry>
  190. <varlistentry>
  191. <term>default_priority_percentage</term>
  192. <listitem><para>Priority value used for tuples created by registration in
  193. percents. Default value is 0.
  194. </para></listitem>
  195. </varlistentry>
  196. <varlistentry>
  197. <term>auth_rules_refresh_time</term>
  198. <listitem><para>Time interval specifying amount of time between re-reading
  199. of authorization documents stored on XCAP server. In other words it means
  200. the time interval of subscription reauthorization.</para>
  201. <para>Default value is 300.</para></listitem>
  202. </varlistentry>
  203. <varlistentry>
  204. <term>async_auth_queries</term>
  205. <listitem><para>Set to 1 if you want to use asynchronous XCAP queries
  206. (recommended), 0 otherwise.</para>
  207. <para>Default value is 0.</para>
  208. </listitem>
  209. </varlistentry>
  210. <varlistentry>
  211. <term>max_auth_requests_per_tick</term>
  212. <listitem><para>Maximum number of asynchronous XCAP requests done at once
  213. (within one second).</para>
  214. <para>Default value is 600.</para></listitem>
  215. </varlistentry>
  216. </variablelist>
  217. </section>