This module can store and fetch SIP message content in an in-memory hash table.
| Parámetro | Tipo | Descripció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. |
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()
4.3. sr_msg_async_pull(callid, msgid, gname, rname, rmode) 4.4. sr_msg_rm(callid, msgid) 4.5. sr_msg_check()
4.4. sr_msg_rm(callid, msgid) 4.5. sr_msg_check()
4.5. sr_msg_check()
4.1. 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.
usage ... request_route { ... $var(msgid) = $sruid; if(sr_msg_push("$var(msgid)", "0")) { ... } ... } ...
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.
usage ... request_route { ... if(sr_msg_pull("$var(callid)", "$var(msgid)", "REPOPULL", "1")) { } ... } ...
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.
usage ... request_route { ... if(sr_msg_async_pull("$var(callid)", "$var(msgid)", "WG01", "REPOPULL", "1") ) { } ... } ...
Remove the item of the message from the siprepo storage.
usage ... request_route { ... if(sr_msg_rm("$var(callid)", "$var(msgid)")) { } ... } ...
Check if the message is stored.
usage ... request_route { ... if(sr_msg_check()) { } ... } ...
Copyright © 2022 asipto.com