← Volver al índice de módulos

ctl

This module implements the binrpc transport interface for Kamailio RPCs. It supports various transports over which it speaks binrpc: Unix datagram sockets, Unix stream sockets, UDP and TCP.
🛠️ Utilidades y Varios Kamailio 6.1 14 parámetros

Descripción general

This module implements the binrpc transport interface for Kamailio RPCs. It supports various transports over which it speaks binrpc: Unix datagram sockets, Unix stream sockets, UDP and TCP. It also supports a backward compatible FIFO interface (using the old Kamailio FIFO protocol). By default (if no parameters are changed in the config file) it uses a Unix stream socket under /run/kamailio: /run/kamailio/kamailio_ctl. This socket is also the default for kamcmd. In general it's used in conjunction with kamcmd. kamcmd is a Unix tool for invoking Kamailio RPC functions. It can be used both in interactive mode (supports tab-completion and history) or command line mode. Example 1.1. kamcmd example usage $ kamcmd ps 11262 attendant 11268 udp receiver child=0 sock=127.0.0.1:5060 11269 udp receiver child=1 sock=127.0.0.1:5060 11270 udp receiver child=0 sock=192.168.1.101:5060 11271 udp receiver child=1 sock=192.168.1.101:5060 11272 slow timer 11273 timer 11274 ctl handler 11275 tcp receiver child=0 11276 tcp receiver child=1 11277 tcp main process See utils/kamcmd/EXAMPLES for more examples.

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

Parámetros de configuración

ParámetroTipoDescripción
binrpc string 3.2. binrpc_buffer_size (integer) 3.3. mode (integer) 3.4. user (integer or string) 3.5. group (integer or string) 3.6. fifo (integer) 3.7. autoconversion (integer) 3.8. binrpc_max_body_size (integer)
binrpc_buffer_size integer 3.3. mode (integer) 3.4. user (integer or string) 3.5. group (integer or string) 3.6. fifo (integer) 3.7. autoconversion (integer) 3.8. binrpc_max_body_size (integer) 3.9. binrpc_struct_max_body_size
mode integer 3.4. user (integer or string) 3.5. group (integer or string) 3.6. fifo (integer) 3.7. autoconversion (integer) 3.8. binrpc_max_body_size (integer) 3.9. binrpc_struct_max_body_size (integer)
fifo integer 3.7. autoconversion (integer) 3.8. binrpc_max_body_size (integer) 3.9. binrpc_struct_max_body_size (integer)
autoconversion integer 3.8. binrpc_max_body_size (integer) 3.9. binrpc_struct_max_body_size (integer)
binrpc_max_body_size integer 3.9. binrpc_struct_max_body_size (integer)
binrpc_struct_max_body_size integer 3.1. binrpc (string)
binrpc string Specifies the transport used for the binrpc protocol. The following transport protocol are supported: Unix datagram sockets, Unix stream sockets, UDP and TCP.
binrpc_buffer_size integer The size of the internal buffer used for printing elements of the RPC response (e.g., internal RPC printf()). The value is given in bytes.
mode integer Permissions used for the created Unix sockets or for the fifo.
fifo integer fifo used for the obsolete fifo protocol. The fifo protocol can be run over a real fifo, over UDP or over TCP. Format: [protocol:]path|address. If no protocol is specified the default is "fifo". Examp
autoconversion integer Enable or disable automatic type conversion globally, for all the methods parameters. If on, a type mismatch in a method parameter will not cause a fault if it is possible to automatically convert it
binrpc_max_body_size integer Set the size of binrpc buffer for RPC reply. Value represents kilobytes.
binrpc_struct_max_body_size integer Set the size of binrpc structure buffer for RPC reply. Value represents kilobytes.

Autores y contribuidores

Andrei Pelinescu-Onciul

Copyright © 2009 iptelorg GmbH

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj