This module implements various utility functions that are not SIP related. The forward functionality allows Kamailio to configure forwarding at runtime with FIFO commands. The forwarding is executed in the pre script call back and therefore handled before the routing script is executed on the current message. The callback is not installed on default, thus this functionality has no runtime overhead when its deactivated. Function xcap_auth_status can be used to check from presence server database, if watcher is authorized to subscribe event “presence” of presentity.
| Parámetro | Tipo | Descripción |
|---|---|---|
| forward_active | int | 3.2. pres_db_url (string) 3.3. xcap_table (string) |
| pres_db_url | string | 3.3. xcap_table (string) |
| xcap_table | string | 3.1. forward_active (int) |
| forward_active | int | Defines if the forwarding callback should be installed. |
| pres_db_url | string | Defines presence server database URL. If not given, the xcap_auth_status function is disabled. |
| xcap_table | string | Defines the name of the xcap table in the presence server database. See the xcap_server module documentation for more information. |
4.1. xcap_auth_status(watcher_uri, presentity_uri)
Function checks in the presence server database if a watcher is authorized to subscribe to event “presence” of presentity. Sphere checking is not included.
usage ... if (method=="MESSAGE") { xcap_auth_status("$fu", $ru"); if ($retcode == 1) { t_relay(); } else { send_reply("403", "Forbidden"); } } ...
Copyright © 2008-2009 Juha Heinanen
Copyright © 2013-2015 Carsten Bock, ng-voice GmbH