← Volver al índice de módulos

jsonrpcc

This module provides access to json-rpc services (operating over TCP/Netstrings). This module uses t_suspend() and t_continue() from the TM module.
🛠️ Utilidades y Varios Kamailio 6.1 4 parámetros 4 funciones

Descripción general

This module provides access to json-rpc services (operating over TCP/Netstrings). This module uses t_suspend() and t_continue() from the TM module. Note that after invoking an asynchronous operation, the processing will continue later, in another application process. Therefore, do not rely on variables stored in private memory, use shared memory if you want to get values after the processing is resumed (e.g., $shv(...) or htable $sht(...)).

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

Parámetros de configuración

ParámetroTipoDescripción
servers string 3.2. max_conn_attempts (int)
max_conn_attempts int 3.1. servers (string)
servers string The servers providing the remote jsonrpc service. Format is "host1:port1,priority1 host2:port2,priority2". Requests to servers of the same priority will be distributed evenly (round robin). Server gro
max_conn_attempts int Max number of connection attempts for a server. -1 will keep reconnecting forever, 0 will skip any attempt to reconnect.

Funciones exportadas

jsonrpc_notification(method, parameters)

4.2. jsonrpc_request(method, parameters, return_route, error_route, result_var)

jsonrpc_request(method, parameters, return_route, error_route, result_var)

4.1. jsonrpc_notification(method, parameters)

jsonrpc_notification(method, parameters)

Invokes the remote 'method' with the given 'parameters' as a notification. Unlike jsonrpc_request (below), notifications do not receive a response. Script processing continues in the usual fashion as soon as the notification has been sent.

jsonrpc_request(method, parameters, return_route, error_route, result_var)

Invokes the remote 'method' with the given 'parameters'. When the response is received, continues processing of the SIP request with the route[return_route]. If a timeout occurs, no servers can be reached, or a jsonrpc error message is received, cont

Autores y contribuidores

Matthew Williams <matthew@flowroute.com>Jordan Levy <jordan@flowroute.com>

Copyright © 2011 Flowroute LLC (flowroute.com)

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj