← Volver al índice de módulos

rtjson

This module facilitates SIP routing based on JSON specifications. The values for R-URI ($ru), outbound proxy ($du) and other attributes used for SIP routing can be retrieved in a JSON document.
📊 Monitorización y Logging Kamailio 6.1 2 parámetros 8 funciones

Descripción general

This module facilitates SIP routing based on JSON specifications. The values for R-URI ($ru), outbound proxy ($du) and other attributes used for SIP routing can be retrieved in a JSON document. It is able to process attributes for more than one destination and prepare for routing in serial or parallel fashion.

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

Parámetros de configuración

ParámetroTipoDescripción
xavp_cfg str 3.1. xavp_cfg (str)
xavp_cfg str The name of the xavp to be used internally by the module.

Funciones exportadas

rtjson_init_routes(rtdoc)

4.2. rtjson_push_routes() 4.3. rtjson_next_route() 4.4. rtjson_update_branch()

rtjson_push_routes()

4.3. rtjson_next_route() 4.4. rtjson_update_branch()

rtjson_next_route()

4.4. rtjson_update_branch()

rtjson_update_branch()

4.1. rtjson_init_routes(rtdoc)

rtjson_init_routes(rtdoc)

Initialize routing based on JSON document stored in rtdoc parameter.

rtjson_push_routes()

Push the routes given in JSON document to rtjson_init_routes(rtdoc) to the internal fields used by Kamailio for routing.

rtjson_next_route()

To be used in failure_route for serial forking, to push the next route to the internal fields used by Kamailio for routing.

rtjson_update_branch()

To be used in branch_route if the JSON document had attributes that needs to be set for each branch.

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2015 asipto.com

Módulos relacionados

debugger dlgs sipcapture siptrace statistics xlog