# Parameters

`min_expiration` (integer)

  Minimal subscription expiration timeout in seconds.

  If client supplies value, which is less than value of `min_expiration`, the server returns response "423 Interval too small" as described in .

  Default value is 60.

`max_expiration` (integer)

  Maximal subscription expiration timeout in seconds.

  If client supplies value, which is more than value of `max_expiration`, the server shortens this value to value of this variable as described in .

  Default value is 7200.

`default_expiration` (integer)

  Default subscription expiration timeout in seconds.

  If client doesn't supply subscription expiration timeout this value is used.

  Default value is 3761.

`auth` (string)

  This variable specifies authorization type for list watchers. Value can be one of:

  none

    All watchers are always authorized. This is not recommended because it ignores user's wish.

  implicit

    In this case is implicit authorization done. This means, that for list URIs in the form `<username>-list@domain` is subscription allowed only for user with username `<username>`, rejected for others.

    If the URI is not in the form presented above, the subscription is marked as pending.

  Default value is empty. In this case implict authorization is used with an error message.

`reduce_xcap_needs` (int)

  If set to 1 the module tries to do simplify XCAP queries - queries will be done for whole documents, not partial, thus the XCAP server may be simulated using standard web server. It has influence only on querying resource lists and it will work correctly only if there are no links to resource lists containg partial documents URIs (lists should be contained directly in main rls-services document).

  Default value is 0.

`db_mode` (integer)

  If set to 1, RLS module stores all subscription data into database and reloads them on startup. Requires `db_url` to be set.

  Default value is 0.

`db_url` (integer)

  Database connection URL. It has to be specified if `db_mode` is set.

  Default value is empty.

  ## `db_url` settings

      ...
      modparam("rls", "db_mode", 1)
      modparam("rls", "db_url", "mysql://ser:heslo@127.0.0.1:3306/ser")
      ...

max_notifications_at_once

  Max. number of notifications sent within one timer tick (experimental). It might be used to reduce SER's machine load if there are lots of changes in presence status.

  Default value is 1000000. (Too high number which in praxis means unlimited.)

timer_interval

  Interval in seconds when are processed internal notifications and sent NOTIFYs to subscribers.

max_nesting_level

  Maximum number of nested lists. For example if set to 2, it it possible to use "list nested in list nested in root list".

  Default value is -1 what means unlimited.

  It is possible to use this for speedup - if you know, that you will need only flat lists (no nested lists), you can set this to 0. In this case RLS doesn't try to query XCAP server for possibly netsted list URIs and directly creates subscription to URIs in list like if they are URIs of standalone users.

expiration_timer_period

  Interval in seconds of timer which removes expired subscriptions.

ignore_408_on_notify

  If set to 1 and 408 response to NOTIFY arrives, the dialog is NOT destroyed like in the case of other non-2xx responses. Use for testing only. Default value is 0.

init_timer_delay

  Delay in seconds of timer which triggers loading data from database after startup. This is needed due to dependencies on other modules (pa/presence_b2b) - we need that these modules will be successfully initialised before reading data from DB and querying these modules.

  Default value is 3.