← Volver al índice de módulos

lwsc

This module provides a websocket client implementation to interact with external systems, similar to http client. It is not for routing SIP traffic.
🛠️ Utilidades y Varios Kamailio 6.1 8 parámetros 8 funciones

Descripción general

This module provides a websocket client implementation to interact with external systems, similar to http client. It is not for routing SIP traffic. It relies on libwebsockets library (https://libwebsockets.org/).

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

Parámetros de configuración

ParámetroTipoDescripción
protocol str 3.2. timeout_init (int) 3.3. timeout_read (int) 3.4. verbosity (int)
timeout_init int 3.3. timeout_read (int) 3.4. verbosity (int)
timeout_read int 3.4. verbosity (int)
verbosity int 3.1. protocol (str)
protocol str The websocket sub-protocol.
timeout_init int The interval in microseconds to wait for websocket connection to be initialized.
timeout_read int The interval in microseconds to wait for the response of the lwsc_request() group of functions.
verbosity int Control the verbosity of debug messages on libwebsockets events, higher value means more debug messages. It has to be a positive number, currently 2 or higher results in maximum verbosity.

Funciones exportadas

lwsc_notify(wsurl, data)

4.2. lwsc_notify_proto(wsurl, wsproto, data) 4.3. lwsc_request(wsurl, data) 4.4. lwsc_request_proto(wsurl, wsproto, data)

lwsc_notify_proto(wsurl, wsproto, data)

4.3. lwsc_request(wsurl, data) 4.4. lwsc_request_proto(wsurl, wsproto, data)

lwsc_request(wsurl, data)

4.4. lwsc_request_proto(wsurl, wsproto, data)

lwsc_request_proto(wsurl, wsproto, data)

4.1. lwsc_notify(wsurl, data)

lwsc_notify(wsurl, data)

Send data via websockets to the address specified by wsurl. No response is expected. Transmission is not guaranteed (e.g., cannot connect to target).

lwsc_notify_proto(wsurl, wsproto, data)

Send data via websockets to the address specified by wsurl, providing websocket protocol. No response is expected. Transmission is not guaranteed (e.g., cannot connect to target).

lwsc_request(wsurl, data)

Send data via websockets to the address specified by wsurl, a response is expected and made available in $lwsc(rdata).

lwsc_request_proto(wsurl, wsproto, data)

Send data via websockets to the address specified by wsurl, providing websocket protocol. A response is expected and made available in $lwsc(rdata).

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2021 asipto.com

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj