← Volver al índice de módulos

utils

This module implements various utility functions that are not SIP related. The forward functionality allows Kamailio to configure forwarding at runtime with FIFO commands.
⚙️ Scripting e Integración Kamailio 6.1 6 parámetros 3 funciones

Descripción general

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.

Documentación oficial: https://www.kamailio.org/docs/modules/stable/modules/utils.html
Código fuente: https://github.com/kamailio/kamailio/tree/master/src/modules/utils

Parámetros de configuración

ParámetroTipoDescripció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.

Funciones exportadas

xcap_auth_status(watcher_uri, presentity_uri)

4.1. xcap_auth_status(watcher_uri, presentity_uri)

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.

xcap_auth_status()

usage ... if (method=="MESSAGE") { xcap_auth_status("$fu", $ru"); if ($retcode == 1) { t_relay(); } else { send_reply("403", "Forbidden"); } } ...

Autores y contribuidores

Juha HeinanenTutPro Inc.Carsten Bock

Copyright © 2008-2009 Juha Heinanen
Copyright © 2013-2015 Carsten Bock, ng-voice GmbH

Módulos relacionados

app_lua app_perl app_python app_python3 app_python3s app_ruby app_ruby_proc async