← Volver al índice de módulos

siprepo

This module can store and fetch SIP message content in an in-memory hash table.
🛠️ Utilidades y Varios Kamailio 6.1 8 parámetros 15 funciones

Descripción general

This module can store and fetch SIP message content in an in-memory hash table.

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

Parámetros de configuración

ParámetroTipoDescripción
hash_size int 3.2. expire (int) 3.3. timer_interval (int) 3.4. timer_procs (int)
expire int 3.3. timer_interval (int) 3.4. timer_procs (int)
timer_interval int 3.4. timer_procs (int)
timer_procs int 3.1. hash_size (int)
hash_size int Number of slots in the hash table. It should be power of 2.
expire int Number of seconds until the stored message content expires.
timer_interval int Number of seconds to run the timer routine.
timer_procs int Number of timer processes.

Funciones exportadas

sr_msg_push(msgid, rmode)

4.2. sr_msg_pull(callid, msgid, rname, rmode) 4.3. sr_msg_async_pull(callid, msgid, gname, rname, rmode) 4.4. sr_msg_rm(callid, msgid) 4.5. sr_msg_check()

sr_msg_pull(callid, msgid, rname, rmode)

4.3. sr_msg_async_pull(callid, msgid, gname, rname, rmode) 4.4. sr_msg_rm(callid, msgid) 4.5. sr_msg_check()

sr_msg_async_pull(callid, msgid, gname, rname, rmode)

4.4. sr_msg_rm(callid, msgid) 4.5. sr_msg_check()

sr_msg_rm(callid, msgid)

4.5. sr_msg_check()

sr_msg_check()

4.1. sr_msg_push(msgid, rmode)

sr_msg_push(msgid, rmode)

Push the message content to hash table and associate it with `msgid`. The Call-Id and msgid are needed to pull the message. The rmode is reserved for repo mode, use 0.

sr_msg_push()

usage ... request_route { ... $var(msgid) = $sruid; if(sr_msg_push("$var(msgid)", "0")) { ... } ... } ...

sr_msg_pull(callid, msgid, rname, rmode)

Pull the message content and execute the route block 'rname'. If rmode is set to "1", the item of the message is removed from siprepo storage, use "0" to keep it.

sr_msg_pull()

usage ... request_route { ... if(sr_msg_pull("$var(callid)", "$var(msgid)", "REPOPULL", "1")) { } ... } ...

sr_msg_async_pull(callid, msgid, gname, rname, rmode)

Pull the message content and execute the route block 'rname' via async group 'gname'. If rmode is set to "1", the item of the message is removed from siprepo storage, use "0" to keep it.

sr_msg_async_pull()

usage ... request_route { ... if(sr_msg_async_pull("$var(callid)", "$var(msgid)", "WG01", "REPOPULL", "1") ) { } ... } ...

sr_msg_rm(callid, msgid)

Remove the item of the message from the siprepo storage.

sr_msg_rm()

usage ... request_route { ... if(sr_msg_rm("$var(callid)", "$var(msgid)")) { } ... } ...

sr_msg_check()

Check if the message is stored.

sr_msg_check()

usage ... request_route { ... if(sr_msg_check()) { } ... } ...

Autores y contribuidores

Daniel-Constantin Mierla <miconda@gmail.com>

Copyright © 2022 asipto.com

Módulos relacionados

auth_web3 auth_xkeys avp avpops benchmark blst call_control call_obj