← Volver al índice de módulos

maxfwd

The module implements all of the operations that handle the Max-Forward SIP header field, like adding it (if not present) or decrementing and checking the value of the existent one. The SIP Max-Forwar
🔀 Enrutamiento y Proxy SIP Kamailio 6.1 2 parámetros 12 funciones

Descripción general

The module implements all of the operations that handle the Max-Forward SIP header field, like adding it (if not present) or decrementing and checking the value of the existent one. The SIP Max-Forward header is used to prevent loops in a SIP network. Every server that process and forward a SIP request lowers the Max-Forward value with one. When the value reaches zero, the request is not forwarded and an error response is sent to the UAC.

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

Parámetros de configuración

ParámetroTipoDescripción
max_limit integer 3.1. max_limit (integer)
max_limit integer Set an upper limit for the max-forward value in the outgoing requests. If the header is present, the decremented value is not allowed to exceed this max_limits - if it does, the header value will by d

Funciones exportadas

maxfwd_process(max_value)

4.2. mf_process_maxfwd_header(max_value) 4.3. process_maxfwd(max_value) 4.4. is_maxfwd_lt(max_value) 4.5. maxfwd_at_least(max_value) 4.6. mf_lowlimit(max_value)

mf_process_maxfwd_header(max_value)

4.3. process_maxfwd(max_value) 4.4. is_maxfwd_lt(max_value) 4.5. maxfwd_at_least(max_value) 4.6. mf_lowlimit(max_value)

process_maxfwd(max_value)

4.4. is_maxfwd_lt(max_value) 4.5. maxfwd_at_least(max_value) 4.6. mf_lowlimit(max_value)

is_maxfwd_lt(max_value)

4.5. maxfwd_at_least(max_value) 4.6. mf_lowlimit(max_value)

maxfwd_at_least(max_value)

4.6. mf_lowlimit(max_value)

mf_lowlimit(max_value)

4.1. maxfwd_process(max_value)

maxfwd_process(max_value)

If no Max-Forward header is present in the received request, a header will be added having the original value equal with “max_value”. If a Max-Forward header is already present, its value will be decremented (if not 0). The parameter can be a variabl

mf_process_maxfwd_header(max_value)

Same as maxfwd_process(max_value).

process_maxfwd(max_value)

Same as maxfwd_process(max_value).

is_maxfwd_lt(max_value)

Checks if the Max-Forward header value is less than the “max_value” parameter value. It considers also the value of the new inserted header (if locally added). The parameter can be a variable.

maxfwd_at_least(max_value)

Same as is_maxfwd_lt(max_value).

mf_lowlimit(max_value)

Same as is_maxfwd_lt(max_value).

Autores y contribuidores

Bogdan-Andrei IancuVoice Sistem SRL

Copyright © 2003 FhG FOKUS

Módulos relacionados

acc acc_diameter acc_json acc_radius alias_db app_jsdt carrierroute cfgt