Module: kamailio
Branch: master
Commit: d21836a9cbdcab3b420fe31b1d913564ed7040e1
URL: https://github.com/kamailio/kamailio/commit/d21836a9cbdcab3b420fe31b1d91356…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2025-07-11T08:37:18+02:00
tm: docs update of rpc tm.t_uac_attrs for mode attribute
---
Modified: src/modules/tm/doc/rpc.xml
---
Diff: https://github.com/kamailio/kamailio/commit/d21836a9cbdcab3b420fe31b1d91356…
Patch: https://github.com/kamailio/kamailio/commit/d21836a9cbdcab3b420fe31b1d91356…
---
diff --git a/src/modules/tm/doc/rpc.xml b/src/modules/tm/doc/rpc.xml
index 21b77bab2ec..56925d08c52 100644
--- a/src/modules/tm/doc/rpc.xml
+++ b/src/modules/tm/doc/rpc.xml
@@ -187,7 +187,7 @@
</para>
<itemizedlist>
<listitem><para>
- <emphasis>reply</emphasis> - control how the reply is waited. If
+ <emphasis>mode</emphasis> - control how the command is done. If
not provided, acts like tm.t_uac_start. The values can be:
"wait" - act like tm.t_uac_wait; "block" - act like
tm.t_uac_wait_block.
Kudos go to Pawel Kuzak.
Redis v7.4, hashes support auto-expiry for individual keys. By transforming sets into hashes we can support auto-expiry.
Adding module parameters use_redis_hashes and expires to control the described feature.
<!-- Kamailio Pull Request Template -->
<!--
IMPORTANT:
- for detailed contributing guidelines, read:
https://github.com/kamailio/kamailio/blob/master/.github/CONTRIBUTING.md
- pull requests must be done to master branch, unless they are backports
of fixes from master branch to a stable branch
- backports to stable branches must be done with 'git cherry-pick -x ...'
- code is contributed under BSD for core and main components (tm, sl, auth, tls)
- code is contributed GPLv2 or a compatible license for the other components
- GPL code is contributed with OpenSSL licensing exception
-->
#### Pre-Submission Checklist
<!-- Go over all points below, and after creating the PR, tick all the checkboxes that apply -->
<!-- All points should be verified, otherwise, read the CONTRIBUTING guidelines from above-->
<!-- If you're unsure about any of these, don't hesitate to ask on sr-dev mailing list -->
- [x] Commit message has the format required by CONTRIBUTING guide
- [x] Commits are split per component (core, individual modules, libs, utils, ...)
- [ ] Each component has a single commit (if not, squash them into one commit)
- [ ] No commits to README files for modules (changes must be done to docbook files
in `doc/` subfolder, the README file is autogenerated)
#### Type Of Change
- [ ] Small bug fix (non-breaking change which fixes an issue)
- [x] New feature (non-breaking change which adds new functionality)
- [ ] Breaking change (fix or feature that would change existing functionality)
#### Checklist:
<!-- Go over all points below, and after creating the PR, tick the checkboxes that apply -->
- [ ] PR should be backported to stable branches
- [x] Tested changes locally
- [ ] Related to issue #XXXX (replace XXXX with an open issue number)
#### Description
<!-- Describe your changes in detail -->
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/4306
-- Commit Summary --
* db_redis: add Redis auto expiry support by changing sets to hashes
-- File Changes --
M src/modules/db_redis/db_redis_mod.c (18)
M src/modules/db_redis/doc/db_redis_admin.xml (46)
M src/modules/db_redis/redis_connection.c (47)
M src/modules/db_redis/redis_dbase.c (385)
M src/modules/db_redis/redis_dbase.h (3)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/4306.patchhttps://github.com/kamailio/kamailio/pull/4306.diff
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/4306
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/pull/4306(a)github.com>
Module: kamailio
Branch: master
Commit: 0cf6471045b4ebbc83ef64c026040b26b907df1a
URL: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b2…
Author: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Committer: Lucian Balaceanu <lucian.balaceanu(a)1and1.ro>
Date: 2025-07-10T17:18:41+03:00
db_redis: add Redis auto expiry support by changing sets to hashes
Kudos go to Pawel Kuzak.
Redis v7.4, hashes support auto-expiry for individual keys.
By transforming sets into hashes we can support auto-expiry.
Adding module parameters mapping_struct_type, hash_expires, hash_value to control
the described feature.
---
Modified: src/modules/db_redis/db_redis_mod.c
Modified: src/modules/db_redis/db_redis_mod.h
Modified: src/modules/db_redis/doc/db_redis_admin.xml
Modified: src/modules/db_redis/redis_connection.c
Modified: src/modules/db_redis/redis_dbase.c
Modified: src/modules/db_redis/redis_dbase.h
---
Diff: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b2…
Patch: https://github.com/kamailio/kamailio/commit/0cf6471045b4ebbc83ef64c026040b2…
Module: kamailio
Branch: master
Commit: 2131af6464623a6bab1b23489cc1891faf7378b8
URL: https://github.com/kamailio/kamailio/commit/2131af6464623a6bab1b23489cc1891…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2025-07-10T10:51:05+02:00
tm: docs for rpc command tm.t_uac_attrs
---
Modified: src/modules/tm/doc/rpc.xml
---
Diff: https://github.com/kamailio/kamailio/commit/2131af6464623a6bab1b23489cc1891…
Patch: https://github.com/kamailio/kamailio/commit/2131af6464623a6bab1b23489cc1891…
---
diff --git a/src/modules/tm/doc/rpc.xml b/src/modules/tm/doc/rpc.xml
index 00164bc5793..21b77bab2ec 100644
--- a/src/modules/tm/doc/rpc.xml
+++ b/src/modules/tm/doc/rpc.xml
@@ -173,6 +173,46 @@
</para>
</section>
+ <section id="tm.rpc.t_uac_attrs">
+ <title>
+ <function moreinfo="none">tm.t_uac_attrs</function>
+ </title>
+ <para>
+ Combine the tm.t_uac_* variants, by providing the first parameter with
+ attributes, then the other parameters are like for tm.t_uac_start.
+ </para>
+ <para>
+ The attributes are in the format "name1=value1;...;nameX=valueX". The
+ name of the attribute can be:
+ </para>
+ <itemizedlist>
+ <listitem><para>
+ <emphasis>reply</emphasis> - control how the reply is waited. If
+ not provided, acts like tm.t_uac_start. The values can be:
+ "wait" - act like tm.t_uac_wait; "block" - act like
+ tm.t_uac_wait_block.
+ </para></listitem>
+ <listitem><para>
+ <emphasis>cbflags</emphasis> - the transaction callback flags. The
+ values can be: "noack" - to not automatically send ACK for local
+ INVITE requests
+ </para></listitem>
+ <listitem><para>
+ <emphasis>rpflags</emphasis> - RPC parameters flags. The values
+ can be: 1 - the body is hexa-encoded value.
+ </para></listitem>
+ </itemizedlist>
+ <example>
+ <title>Using <quote>tm.t_uac_attrs</quote></title>
+ <programlisting format="linespecific">
+...
+kamcli rpc tm.t_uac_attrs 'reply=wait;cbflags=noack;rpflags=1' 'INVITE' ...
+...
+</programlisting>
+ </example>
+ </section>
+
+
<section id="tm.rpc.cancel">
<title>
<function moreinfo="none">tm.cancel</function>