The module is a XCAP client for Kamailio that can be used by other modules. It fetches XCAP elements, either documents or part of them, by sending HTTP GET requests to an XCAP server. It also offers support for conditional queries. It uses the libcurl library as a client-side HTTP transfer library. The module offers a XCAP client interface with general functions that allow requesting for a specific element from a XCAP server. In addition to that it also offers the service of storing and updating the documents it receives. In this case only an initial request to the module is required - xcapGetNewDoc - which is like a request to the module to handle from that point on the referenced document so as to promise that the newest version will always be present in database. The update method is also configurable, either through periodical queries, applicable to any kind of XCAP server or with a management command that should be sent by the server upon an update. The module is currently used by the “presence_xml” module, if the 'integrated_xcap_server' parameter is not set.
| Parámetro | Tipo | Descripción |
|---|---|---|
| db_url | str | 3.2. xcap_table(str) 3.3. periodical_query(int) 3.4. query_period(int) |
| xcap_table | str | 3.3. periodical_query(int) 3.4. query_period(int) |
| periodical_query | int | 3.4. query_period(int) |
| query_period | int | 3.1. db_url(str) |
| db_url | str | The database url. |
| xcap_table | str | The name of the db table where XCAP documents are stored. |
| periodical_query | int | A flag to disable periodical query as an update method for the documents the module is responsible for. It could be disabled when the XCAP server is capable to send the exported management command whe |
| query_period | int | Should be set if periodical query is not disabled. Represents the time interval the XCAP servers should be queried for an update. |
Copyright © 2007 Voice Sistem SRL