Module: kamailio Branch: master Commit: a2c9b9ba8861bfc95ca995c491d2c32ac8e59579 URL: https://github.com/kamailio/kamailio/commit/a2c9b9ba8861bfc95ca995c491d2c32a...
Author: Daniel-Constantin Mierla miconda@gmail.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2022-02-01T11:44:50+01:00
htable: docs for sht_setxs() and sht_setxi()
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/a2c9b9ba8861bfc95ca995c491d2c32a... Patch: https://github.com/kamailio/kamailio/commit/a2c9b9ba8861bfc95ca995c491d2c32a...
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml index e39482acd3..9ea5c183f7 100644 --- a/src/modules/htable/doc/htable_admin.xml +++ b/src/modules/htable/doc/htable_admin.xml @@ -926,6 +926,52 @@ sht_rm_name("ha", "re", ".*"); ... sht_rm_value("ha", "re", ".*"); ... +</programlisting> + </example> + </section> + <section id="htable.f.sht_setxs"> + <title> + <function moreinfo="none">sht_setxs(htname, itname, itval, exval)</function> + </title> + <para> + Set the item with the name 'itname' from hash table 'htname' to string + value 'itval' and expire property to 'exval'. + </para> + <para> + The parameters can be with variables. + </para> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>sht_setxs</function> usage</title> + <programlisting format="linespecific"> +... +sht_setxs("ha", "test", "abc", "10"); +... +</programlisting> + </example> + </section> + <section id="htable.f.sht_setxi"> + <title> + <function moreinfo="none">sht_setxi(htname, itname, itval, exval)</function> + </title> + <para> + Set the item with the name 'itname' from hash table 'htname' to integer + value 'itval' and expire property to 'exval'. + </para> + <para> + The parameters can be with variables. + </para> + <para> + This function can be used from ANY_ROUTE. + </para> + <example> + <title><function>sht_setxi</function> usage</title> + <programlisting format="linespecific"> +... +sht_setxs("ha", "test", "100", "10"); +... </programlisting> </example> </section>