← Volver al índice de módulos

gzcompress

This module is able to detect compressed body in received SIP message and decompress it as well as compress the body for outgoing SIP message. It works also for received HTTP request and replied HTTP
🛠️ Utilidades y Varios Kamailio 6.1 6 parámetros

Descripción general

This module is able to detect compressed body in received SIP message and decompress it as well as compress the body for outgoing SIP message. It works also for received HTTP request and replied HTTP response (Kamailio cannot work in HTTP proxy mode). The decision of whether to do compression or decompression is made by detecting a special SIP header (default 'Content-Encoding') that matches a given value - both header name and value can be set via module parameters. If a SIP message is received with clear body and you want to compress the body for outgoing, add the header in config file. The header can be added to the local generated replies as well. In other words, if the header is present in incoming SIP message, its body is decompressed. If the header is present in outgoing SIP message, its body is compressed. Therefore inside configuration file, the body is in original format(e.g., plain text). In this way, the existing functions to handle content of the body work as usual (e.g., to strip codecs in sdp via sdpops or do substitutions via textops). The functions used to compress and decompress are from zlib library (http://zlib.net). NOTE: for the moment the module cannot be used with topoh module, overlapping in core event callbacks (will be fixed soon). The immediate benefit of compressing the body is to reduce the size of the SIP message, increasing the chances to stay under MTU for UDP packets. From observation, the compressed body is in between 50% to 67% smaller than

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

Parámetros de configuración

ParámetroTipoDescripción
header_name str 3.2. header_value (str) 3.3. sanity_checks (integer)
header_value str 3.3. sanity_checks (integer)
sanity_checks integer 3.1. header_name (str)
header_name str Name of the header that indicates compression or decompression has to be done.
header_value str Value of the header that indicates compression or decompression has to be done.
sanity_checks integer If set to 1, gzcompress module will bind to sanity module in order to perform sanity checks over received SIP request. Default sanity checks are done. It is useful to check if received request is well

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2013 asipto.com

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj