Module: kamailio
Branch: master
Commit: a4a55c42aa719f8674ae54d30527acca85763358
URL: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acc…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-09T08:55:41+01:00
htable: docs for rpc commands to set value and expire
---
Modified: src/modules/htable/doc/htable_admin.xml
---
Diff: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acc…
Patch: https://github.com/kamailio/kamailio/commit/a4a55c42aa719f8674ae54d30527acc…
---
diff --git a/src/modules/htable/doc/htable_admin.xml b/src/modules/htable/doc/htable_admin.xml
index 9ea5c183f7..45f41f4561 100644
--- a/src/modules/htable/doc/htable_admin.xml
+++ b/src/modules/htable/doc/htable_admin.xml
@@ -1550,6 +1550,68 @@ kamcmd htable.seti test x[0] 123
# set expire for $sht(test=>x) to 120 secs
kamctl rpc htable.seti test x 120
...
+</programlisting>
+ </section>
+ <section id="htable.rpc.setxs">
+ <title>
+ <function moreinfo="none">htable.setxs htable key value expire</function>
+ </title>
+ <para>
+ Set the string value and expire for an item in hash table.
+ </para>
+ <para>
+ Name: <emphasis>htable.setxs</emphasis>
+ </para>
+ <para>Parameters:</para>
+ <itemizedlist>
+ <listitem><para>htable : name of the hash table</para>
+ </listitem>
+ <listitem><para>key : key name in the hash table</para>
+ </listitem>
+ <listitem><para>value : string value for the item</para>
+ </listitem>
+ <listitem><para>expire : integer value for the expire (seconds)</para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Example:
+ </para>
+<programlisting format="linespecific">
+...
+# set value to 'abc' and expire for $sht(test=>x) to 120 secs
+kamctl rpc htable.setxs test x abc 120
+...
+</programlisting>
+ </section>
+ <section id="htable.rpc.setxi">
+ <title>
+ <function moreinfo="none">htable.setxi htable key value expire</function>
+ </title>
+ <para>
+ Set the integer value and expire for an item in hash table.
+ </para>
+ <para>
+ Name: <emphasis>htable.setxi</emphasis>
+ </para>
+ <para>Parameters:</para>
+ <itemizedlist>
+ <listitem><para>htable : name of the hash table</para>
+ </listitem>
+ <listitem><para>key : key name in the hash table</para>
+ </listitem>
+ <listitem><para>value : integer value for the item</para>
+ </listitem>
+ <listitem><para>expire : integer value for the expire (seconds)</para>
+ </listitem>
+ </itemizedlist>
+ <para>
+ Example:
+ </para>
+<programlisting format="linespecific">
+...
+# set value to 10 and expire for $sht(test=>x) to 120 secs
+kamctl rpc htable.setxi test x 10 120
+...
</programlisting>
</section>
<section id="htable.rpc.dump">
Module: kamailio
Branch: master
Commit: c1335157c53ca014bbeec6de312f42d955221d58
URL: https://github.com/kamailio/kamailio/commit/c1335157c53ca014bbeec6de312f42d…
Author: Adrian Bunk <bunk(a)debian.org>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2022-02-09T08:10:15+01:00
src/Makefile: Also stop compiling kamcmd from here
---
Modified: src/Makefile
---
Diff: https://github.com/kamailio/kamailio/commit/c1335157c53ca014bbeec6de312f42d…
Patch: https://github.com/kamailio/kamailio/commit/c1335157c53ca014bbeec6de312f42d…
---
diff --git a/src/Makefile b/src/Makefile
index 11be15fb2b..a6380c2283 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -202,7 +202,7 @@ cmodules=$(foreach mods,$(modules_dirs), $($(mods)))
# list of utils directories that should be compiled by make utils
-C_COMPILE_UTILS= ../utils/kamcmd
+C_COMPILE_UTILS= # kamcmd is now installed by ctl
# list of binaries that should be installed alongside
# (they should be created after make utils, see C_COMPILE_UTILS)
C_INSTALL_BIN= # kamcmd is now installed by ctl
### Description
We have a couple of Kamailio containers running on AWS ECS Fargate. Using a Cloudwatch Agent sidecar container I should be able to collect metrics from the Kamailio containers and push them to Cloudwatch for monitoring.
```
xHTTP_PROM exposes the metrics like this:
# Kamailio whole internal statistics
kamailio_app_python3_traced_replies 0 1640265350616
kamailio_app_python3_traced_requests 0 1640265350616
kamailio_core_bad_URIs_rcvd 0 1640265350616
kamailio_core_bad_msg_hdr 0 1640265350616
```
While other prometheus metrics I have seen are throwing metrics like this:
```
# HELP kamailio_core_shmmem_free Free shared memory.
# TYPE kamailio_core_shmmem_free gauge
```
### Troubleshooting
#### Reproduction
<!--
If the issue can be reproduced, describe how it can be done.
-->
#### Debugging Data
<!--
If you got a core dump, use gdb to extract troubleshooting data - full backtrace,
local variables and the list of the code at the issue location.
gdb /path/to/kamailio /path/to/corefile
bt full
info locals
list
If you are familiar with gdb, feel free to attach more of what you consider to
be relevant.
-->
```
(paste your debugging data here)
```
#### Log Messages
<!--
Check the syslog file and if there are relevant log messages printed by Kamailio, add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your log messages here)
```
#### SIP Traffic
<!--
If the issue is exposed by processing specific SIP messages, grab them with ngrep or save in a pcap file, then add them next, or attach to issue, or provide a link to download them (e.g., to a pastebin site).
-->
```
(paste your sip traffic here)
```
### Possible Solutions
<!--
If you found a solution or workaround for the issue, describe it. Ideally, provide a pull request with a fix.
-->
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
(paste your output here)
```
* **Operating System**:
<!--
Details about the operating system, the type: Linux (e.g.,: Debian 8.4, Ubuntu 16.04, CentOS 7.1, ...), MacOS, xBSD, Solaris, ...;
Kernel details (output of `lsb_release -a` and `uname -a`)
-->
```
(paste your output here)
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3001
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3001(a)github.com>
#### Pre-Submission Checklist
- [X] Commit message has the format required by CONTRIBUTING guide
- [X] Commits are split per component (core, individual modules, libs, utils, ...)
- [X] Each component has a single commit (if not, squash them into one commit)
- [X] 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
EPEL now includes a openssl11 package for CentOS 7. This feature is for users who want to build kamailio-tls with OpenSSL 1.1.1 instead of OpenSSL 1.0.2.
It is implemented as a `--with=openssl11` conditional (the default os off), so should not affect/change the regular CentOS 7 builds as distributed by kamailio.org.
This is for adventurous users on CentOS 7 willing to maintain their own OpenSSL 1.1.1-enabled TLS package. EPEL dependencies( openssl11-libs, openssl11-devel) are required at runtime and for build.
You can view, comment on, or merge this pull request online at:
https://github.com/kamailio/kamailio/pull/2779
-- Commit Summary --
* pkg: enable CentOS 7 to build with OpenSSL 1.1.1
-- File Changes --
M pkg/kamailio/obs/kamailio.spec (32)
-- Patch Links --
https://github.com/kamailio/kamailio/pull/2779.patchhttps://github.com/kamailio/kamailio/pull/2779.diff
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/pull/2779
**1**
```
CC (gcc) [kamailio] core/crypto/rijndael.o
CC (gcc) [kamailio] core/crypto/sha256.o
core/crypto/sha256.c:573:32: warning: argument 1 of type 'sha2_byte[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=]
573 | void sr_SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
| ~~~~~~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:157:22: note: previously declared as 'u_int8_t[32]' {aka 'unsigned char[32]'}
157 | void sr_SHA256_Final(u_int8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/crypto/sha256.c:636:47: warning: argument 2 of type 'char[]' with mismatched bound [-Warray-parameter=]
636 | char *sr_SHA256_End(SHA256_CTX* context, char buffer[]) {
| ~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:158:34: note: previously declared as 'char[65]'
158 | char* sr_SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/crypto/sha256.c:936:32: warning: argument 1 of type 'sha2_byte[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=]
936 | void sr_SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
| ~~~~~~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:169:22: note: previously declared as 'u_int8_t[64]' {aka 'unsigned char[64]'}
169 | void sr_SHA512_Final(u_int8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/crypto/sha256.c:965:47: warning: argument 2 of type 'char[]' with mismatched bound [-Warray-parameter=]
965 | char *sr_SHA512_End(SHA512_CTX* context, char buffer[]) {
| ~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:170:34: note: previously declared as 'char[129]'
170 | char* sr_SHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/crypto/sha256.c:1011:32: warning: argument 1 of type 'sha2_byte[]' {aka 'unsigned char[]'} with mismatched bound [-Warray-parameter=]
1011 | void sr_SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
| ~~~~~~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:163:22: note: previously declared as 'u_int8_t[48]' {aka 'unsigned char[48]'}
163 | void sr_SHA384_Final(u_int8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/crypto/sha256.c:1040:47: warning: argument 2 of type 'char[]' with mismatched bound [-Warray-parameter=]
1040 | char *sr_SHA384_End(SHA384_CTX* context, char buffer[]) {
| ~~~~~^~~~~~~~
In file included from core/crypto/sha256.c:36:
core/crypto/sha256.h:164:34: note: previously declared as 'char[97]'
164 | char* sr_SHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC (gcc) [kamailio] core/crypto/shautils.o
CC (gcc) [kamailio] core/cfg/cfg.o
CC (gcc) [kamailio] core/cfg/cfg_ctx.o
core/cfg/cfg_ctx.c: In function 'cfg_update_defaults':
core/cfg/cfg_ctx.c:287:28: warning: the comparison will always evaluate as 'true' for the pointer operand in '(unsigned char *)&ginst->vars + (sizetype)var->offset' must not be NULL [-Waddress]
287 | if(ginst->vars + var->offset) {
| ^~~~~
CC (gcc) [kamailio] core/cfg/cfg_script.o
CC (gcc) [kamailio] core/cfg/cfg_select.o
CC (gcc) [kamailio] core/cfg/cfg_struct.o
CC (gcc) [kamailio] core/utils/srjson.o
CC (gcc) [kamailio] core/utils/sruid.o
CC (gcc) [kamailio] core/utils/tmrec.o
```
**2**
```
LD (gcc) [M nat_traversal.so] nat_traversal.so
CC (gcc) [M nathelper.so] nathelper.o
nathelper.c: In function 'nh_alias_to_uri':
nathelper.c:2840:12: warning: the comparison will always evaluate as 'true' for the pointer operand in 'memchr_pointer + 1' must not be NULL [-Waddress]
2840 | if(&memchr_pointer[1]){
| ^
CC (gcc) [M nathelper.so] nhelpr_funcs.o
LD (gcc) [M nathelper.so] nathelper.so
CC (gcc) [M path.so] path.o
```
**3**
```
CC (gcc) [M ims_dialog.so] dlg_handlers.o
CC (gcc) [M ims_dialog.so] dlg_hash.o
dlg_hash.c: In function 'destroy_dlg':
dlg_hash.c:256:9: warning: the comparison will always evaluate as 'true' for the address of 'dlg_entry_out' will never be NULL [-Waddress]
256 | if (&(dlg->dlg_entry_out)) {
| ^
In file included from dlg_var.h:26,
from dlg_hash.c:15:
dlg_hash.h:124:26: note: 'dlg_entry_out' declared here
124 | struct dlg_entry_out dlg_entry_out; /*!< list of dialog_out entries */
| ^~~~~~~~~~~~~
CC (gcc) [M ims_dialog.so] dlg_ng_stats.o
CC (gcc) [M ims_dialog.so] dlg_profile.o
```
**4**
```
CC (gcc) [M app_lua_sr.so] app_lua_sr_api.o
CC (gcc) [M app_lua_sr.so] app_lua_sr_exp.o
app_lua_sr_exp.c: In function 'lua_sr_exp_openlibs':
app_lua_sr_exp.c:3686:17: warning: implicit declaration of function 'luaL_openlib'; did you mean 'luaL_openlibs'? [-Wimplicit-function-declaration]
3686 | luaL_openlib(L, "sr.sl", _sr_sl_Map, 0);
| ^~~~~~~~~~~~
| luaL_openlibs
CC (gcc) [M app_lua_sr.so] app_lua_sr_mod.o
LD (gcc) [M app_lua_sr.so] app_lua_sr.so
CC (gcc) [M lwsc.so] lwsc_mod.o
LD (gcc) [M lwsc.so] lwsc.so
```
**5**
```
CC (gcc) [M nats.so] nats_pub.o
In file included from nats_pub.c:25:
defs.h:49:24: warning: '_nats_rts' defined but not used [-Wunused-variable]
49 | static nats_evroutes_t _nats_rts;
| ^~~~~~~~~
LD (gcc) [M nats.so] nats.so
CC (gcc) [M app_perl.so] app_perl_mod.o
CC (gcc) [M app_perl.so] perlfunc.o
xsubpp -typemap `perl -MConfig -e 'print $Config{installprivlib}'`/ExtUtils/typemap -typemap typemap kamailioxs.xs > kamailioxs.c
CC (gcc) [M app_perl.so] kamailioxs.o
LD (gcc) [M app_perl.so] app_perl.so
CC (gcc) [M db_perlvdb.so] db_perlvdb.o
CC (gcc) [M db_perlvdb.so] perlvdb_conv.o
perlvdb_conv.c: In function 'conds2perlarray':
perlvdb_conv.c:60:29: warning: the comparison will always evaluate as 'true' for the pointer operand in 'ops + (sizetype)((long unsigned int)i * 8)' must not be NULL [-Waddress]
60 | if (ops + i)
| ^~~
CC (gcc) [M db_perlvdb.so] perlvdb_oohelpers.o
CC (gcc) [M db_perlvdb.so] perlvdbfunc.o
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M db_perlvdb.so] db_perlvdb.so
CC (gcc) [M phonenum.so] phonenum_mod.o
CC (gcc) [M phonenum.so] phonenum_pv.o
Compiling cphonenumber.cpp
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3014
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3014(a)github.com>