1; This file configures the presence module 2 3[general] 4 5; listcount: integer: The number of lists created to store presence information 6; The entities advertising presence will be distributed by hash in the apropriate list 7; A larger value will lead to a faster search at the expense of used memory 8; Minimum (default) allowed value is 16 9; Maximum allowed value is 256 10;listcount=16 11 12; expirecheck: integer: The interval (in miliseconds) at which the module will 13; check for presence expiring 14; Minimum allowed value is 1000 15; Maximum allowed value is 10000 16; Defaults to 0 (no check) 17;expirecheck=0 18 19; expiretime: integer: The time to live (in miliseconds) of a presence entry 20; This parameter is ignored if expirecheck is 0 21; Minimum allowed value is 10000 22; Maximum allowed value is 300000 23; Defaults to 60000 24;expiretime=60000 25 26 27[database] 28; This section configures presence database access 29; All queries, except for 'remove_all', will be ignored if presence expiring is disabled 30; All queries will be ignored if database account is empty 31; All queries, except for 'remove_all', must be set if presence expiring is enabled 32; Presence expiring will be automatically disabled otherwise 33 34; account: string: The name of the database account 35;account= 36 37; remove_all: string: Database query used to remove all presences belonging to this node 38; This query is run on startup 39;remove_all=DELETE FROM presence WHERE nodename='${nodename}' 40 41; insert_presence: string: Database query used to add a new contact instance 42;insert_presence=INSERT INTO presence (nodename,contact,instance,data) \ 43;VALUES('${nodename}','${contact}','${instance}','${data}') 44 45; update_presence: string: Database query used to update a contact's instance 46;update_presence=UPDATE presence SET data='${data}' WHERE contact='${contact}' AND instance='${instance}' 47 48; remove_instance: string: Database query used to remove a contact's instance presence 49;remove_instance=DELETE FROM presence WHERE contact='${contact}' AND instance='${instance}' 50 51; remove_presence: string: Database query used to remove all instances belonging to a contact 52;remove_presence=DELETE FROM presence WHERE contact='${contact}' 53 54; select_instance: string: Database query used to load a specific instance 55;select_instance=SELECT * FROM presence WHERE contact='${contact}' AND instance='${instance}' 56 57; select_presence: string: Database query used to load all instances belonging to a given contact 58;select_presence=SELECT * FROM presence WHERE contact='${contact}' 59