%docentities; ]> &adminguide;
Overview This module can store and fetch SIP message content in an in-memory hash table.
Dependencies
&kamailio; Modules The following modules must be loaded before this module: None.
External Libraries or Applications The following libraries or applications must be installed before running &kamailio; with this module loaded: None
Parameters
<function moreinfo="none">hash_size (int)</function> Number of slots in the hash table. It should be power of 2. Default value: 256. <function>hash_size</function> usage ... modparam("siprepo", "hash_size", 1024) ...
<function moreinfo="none">expire (int)</function> Number of seconds until the stored message content expires. Default value: 180. <function>expire</function> usage ... modparam("siprepo", "expire", 240) ...
<function moreinfo="none">timer_interval (int)</function> Number of seconds to run the timer routine. Default value: 10. <function>timer_interval</function> usage ... modparam("siprepo", "timer_interval", 5) ...
<function moreinfo="none">timer_procs (int)</function> Number of timer processes. Default value: 1. <function>timer_procs</function> usage ... modparam("siprepo", "timer_procs", 2) ...
Functions
<function moreinfo="none">sr_msg_push(msgid, rmode)</function> 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. This function can be used from ANY_ROUTE. <function>sr_msg_push()</function> usage ... request_route { ... $var(msgid) = $sruid; if(sr_msg_push("$var(msgid)", "0")) { ... } ... } ...
<function moreinfo="none">sr_msg_pull(callid, msgid, rname, rmode)</function> 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. This function can be used from ANY_ROUTE. <function>sr_msg_pull()</function> usage ... request_route { ... if(sr_msg_pull("$var(callid)", "$var(msgid)", "REPOPULL", "1")) { } ... } ...
<function moreinfo="none">sr_msg_async_pull(callid, msgid, gname, rname, rmode)</function> 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. This function can be used from ANY_ROUTE. <function>sr_msg_async_pull()</function> usage ... request_route { ... if(sr_msg_async_pull("$var(callid)", "$var(msgid)", "WG01", "REPOPULL", "1")) { } ... } ...
<function moreinfo="none">sr_msg_rm(callid, msgid)</function> Remove the item of the message from the siprepo storage. This function can be used from ANY_ROUTE. <function>sr_msg_rm()</function> usage ... request_route { ... if(sr_msg_rm("$var(callid)", "$var(msgid)")) { } ... } ...
<function moreinfo="none">sr_msg_check()</function> Check if the message is stored. This function can be used from ANY_ROUTE. <function>sr_msg_check()</function> usage ... request_route { ... if(sr_msg_check()) { } ... } ...