**1**
```
CC (gcc) [M sms.so] libsms_putsms.o
CC (gcc) [M sms.so] sms.o
CC (gcc) [M sms.so] sms_funcs.o
sms_funcs.c: In function 'modem_process':
sms_funcs.c:884:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
884 | if (used_mem)
| ^~
sms_funcs.c:886:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
886 | for(i=1,k=1;k<=used_mem && i<=max_mem;i++) {
| ^~~
CC (gcc) [M sms.so] sms_report.o
LD (gcc) [M sms.so] sms.so
CC (gcc) [M sst.so] parse_sst.o
```
**2**
```
CC (gcc) [M ims_charging.so] ims_charging_stats.o
CC (gcc) [M ims_charging.so] ims_ro.o
ims_ro.c: In function 'create_cca_fui_avps':
ims_ro.c:1622:5: warning: this 'else' clause does not guard... [-Wmisleading-indentation]
1622 | else
| ^~~~
ims_ro.c:1625:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'else'
1625 | if (redirecturi && redirecturi->len >0 && redirecturi->s) {
| ^~
CC (gcc) [M ims_charging.so] ro_avp.o
CC (gcc) [M ims_charging.so] ro_db_handler.o
CC (gcc) [M ims_charging.so] ro_fixup.o
```
**3**
```
CC (gcc) [M kazoo.so] kazoo.o
CC (gcc) [M kazoo.so] kz_amqp.o
kz_amqp.c: In function 'kz_amqp_channel_close':
kz_amqp.c:802:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
802 | if (!rmq)
| ^~
In file included from ../../core/mem/pkg.h:32,
from ../../core/mem/mem.h:41,
from kz_amqp.c:38:
../../core/mem/../dprint.h:298:25: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
298 | do { \
| ^~
../../core/mem/../dprint.h:345:25: note: in expansion of macro 'LOG_FX'
345 | LOG_FX(facility, level, lname, prefix, _FUNC_NAME_, fmt, ## args)
| ^~~~~~
../../core/mem/../dprint.h:351:25: note: in expansion of macro 'LOG_FL'
351 | LOG_FL(facility, level, NULL, prefix, fmt, ## args)
| ^~~~~~
../../core/mem/../dprint.h:354:25: note: in expansion of macro 'LOG_FP'
354 | LOG_FP(DEFAULT_FACILITY, (level), LOC_INFO, fmt, ## args)
| ^~~~~~
../../core/mem/../dprint.h:401:45: note: in expansion of macro 'LOG'
401 | # define DBG(fmt, args...) LOG(L_DBG, fmt , ## args)
| ^~~
../../core/mem/../dprint.h:405:36: note: in expansion of macro 'DBG'
405 | # define DEBUG(fmt, args...) DBG(fmt , ## args)
| ^~~
../../core/mem/../dprint.h:422:16: note: in expansion of macro 'DEBUG'
422 | #define LM_DBG DEBUG
| ^~~~~
kz_amqp.c:805:9: note: in expansion of macro 'LM_DBG'
805 | LM_DBG("close channel: %d rmq(%p)->channel(%d)\n", getpid(), (void *)rmq, channel);
| ^~~~~~
kz_amqp.c: In function 'kz_amqp_pipe_send':
kz_amqp.c:1132:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
1132 | if(s_local_routing_key)
| ^~
kz_amqp.c:1135:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
1135 | return ret;
| ^~~~~~
kz_amqp.c: In function 'kz_amqp_subscribe_simple':
kz_amqp.c:2051:5: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
2051 | if(binding != NULL)
| ^~
kz_amqp.c:2054:9: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
2054 | return -1;
| ^~~~~~
CC (gcc) [M kazoo.so] kz_fixup.o
CC (gcc) [M kazoo.so] kz_hash.o
CC (gcc) [M kazoo.so] kz_json.o
CC (gcc) [M kazoo.so] kz_pua.o
CC (gcc) [M kazoo.so] kz_trans.o
```
**4**
```
CC (gcc) [M ndb_redis.so] ndb_redis_mod.o
CC (gcc) [M ndb_redis.so] redis_client.o
redis_client.c: In function 'redisc_init':
redis_client.c:43:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~
redis_client.c:235:21: note: in expansion of macro 'redisCommandNR'
235 | if (redisCommandNR(rsrv->ctxRedis, "PING")) {
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:235:21: note: in expansion of macro 'redisCommandNR'
235 | if (redisCommandNR(rsrv->ctxRedis, "PING")) {
| ^~~~~~~~~~~~~~
redis_client.c:43:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~
redis_client.c:240:51: note: in expansion of macro 'redisCommandNR'
240 | if ((redis_cluster_param == 0) && redisCommandNR(rsrv->ctxRedis,
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:240:51: note: in expansion of macro 'redisCommandNR'
240 | if ((redis_cluster_param == 0) && redisCommandNR(rsrv->ctxRedis,
| ^~~~~~~~~~~~~~
redis_client.c: In function 'redisc_reconnect_server':
redis_client.c:43:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~
redis_client.c:549:13: note: in expansion of macro 'redisCommandNR'
549 | if (redisCommandNR(rsrv->ctxRedis, "PING"))
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:549:13: note: in expansion of macro 'redisCommandNR'
549 | if (redisCommandNR(rsrv->ctxRedis, "PING"))
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:549:13: note: in expansion of macro 'redisCommandNR'
549 | if (redisCommandNR(rsrv->ctxRedis, "PING"))
| ^~~~~~~~~~~~~~
redis_client.c:43:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~
redis_client.c:551:43: note: in expansion of macro 'redisCommandNR'
551 | if ((redis_cluster_param == 0) && redisCommandNR(rsrv->ctxRedis,
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:551:43: note: in expansion of macro 'redisCommandNR'
551 | if ((redis_cluster_param == 0) && redisCommandNR(rsrv->ctxRedis,
| ^~~~~~~~~~~~~~
redis_client.c:43:17: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~
redis_client.c:555:21: note: in expansion of macro 'redisCommandNR'
555 | if (redisCommandNR(rsrv->ctxRedis, "FLUSHALL"))
| ^~~~~~~~~~~~~~
redis_client.c:43:52: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
43 | if (__tmp) freeReplyObject(__tmp); __tmp ? 0 : -1;})
| ^~~~~
redis_client.c:555:21: note: in expansion of macro 'redisCommandNR'
555 | if (redisCommandNR(rsrv->ctxRedis, "FLUSHALL"))
| ^~~~~~~~~~~~~~
LD (gcc) [M ndb_redis.so] ndb_redis.so
CC (gcc) [M topos_redis.so] topos_redis_mod.o
CC (gcc) [M topos_redis.so] topos_redis_storage.o
```
**5**
```
CC (gcc) [M xhttp_pi.so] xhttp_pi.o
CC (gcc) [M xhttp_pi.so] xhttp_pi_fnc.o
xhttp_pi_fnc.c: In function 'ph_run_pi_cmd':
xhttp_pi_fnc.c:2904:25: warning: this 'if' clause does not guard... [-Wmisleading-indentation]
2904 | if(c_vals) pkg_free(c_vals); c_vals = NULL;
| ^~
xhttp_pi_fnc.c:2904:54: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'if'
2904 | if(c_vals) pkg_free(c_vals); c_vals = NULL;
| ^~~~~~
make[3]: 'libsrdb1.so.1.0' is up to date.
LD (gcc) [M xhttp_pi.so] xhttp_pi.so
CC (gcc) [M xmlrpc.so] http.o
CC (gcc) [M xmlrpc.so] xmlrpc.o
LD (gcc) [M xmlrpc.so] xmlrpc.so
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3012
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3012(a)github.com>
**1**
```
CC (gcc) [M presence.so] notify.o
CC (gcc) [M presence.so] presence.o
presence.c: In function 'child_init':
presence.c:570:62: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 3 [-Wformat-truncation=]
570 | snprintf(tmp, 21, "PRESENCE NOTIFIER %d", i);
| ^~
presence.c:570:43: note: directive argument in the range [-2147483647, 2147483646]
570 | snprintf(tmp, 21, "PRESENCE NOTIFIER %d", i);
| ^~~~~~~~~~~~~~~~~~~~~~
presence.c:570:25: note: 'snprintf' output between 20 and 30 bytes into a destination of size 21
570 | snprintf(tmp, 21, "PRESENCE NOTIFIER %d", i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC (gcc) [M presence.so] presence_dmq.o
CC (gcc) [M presence.so] presentity.o
CC (gcc) [M presence.so] publish.o
CC (gcc) [M presence.so] subscribe.o
CC (gcc) [M presence.so] utils_func.o
```
**2**
```
CC (gcc) [M rls.so] resource_notify.o
CC (gcc) [M rls.so] rls.o
rls.c: In function 'child_init':
rls.c:688:57: warning: '%d' directive output may be truncated writing between 1 and 11 bytes into a region of size 3 [-Wformat-truncation=]
688 | snprintf(tmp, 16, "RLS NOTIFIER %d", i);
| ^~
rls.c:688:43: note: directive argument in the range [-2147483647, 2147483646]
688 | snprintf(tmp, 16, "RLS NOTIFIER %d", i);
| ^~~~~~~~~~~~~~~~~
rls.c:688:25: note: 'snprintf' output between 15 and 25 bytes into a destination of size 16
688 | snprintf(tmp, 16, "RLS NOTIFIER %d", i);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
CC (gcc) [M rls.so] rls_db.o
CC (gcc) [M rls.so] subscribe.o
CC (gcc) [M rls.so] utils.o
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3013
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3013(a)github.com>
### Description
Intermittently the following error is observed when checking if given header is present in SIP INVITE:
SystemError: <built-in function is_present> returned a result with an error set
The complete stack trace is (some names redacted):
11(28) ERROR: {1 195 INVITE nMHZDN.10nOIDt4ldOwz5cqz0XnMepA9} app_python3 [python_support.c:156]: python_handle_exception(): apy_exec: modify_headers((null)): Unhandled exception in the Python code:
TypeError: an integer is required (got type NoneType)
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/etc/kamailio/kamailio.py", line 25, in modify_headers
self.modify_header("SomeHeader")
File "/etc/kamailio/kamailio.py", line 29, in modify_header
present = KSR.hdr.is_present(header_name)
SystemError: <built-in function is_present> returned a result with an error set
### Additional Information
* **Kamailio Version** - output of `kamailio -v`
```
version: kamailio 5.4.6 (x86_64/linux)
flags: USE_TCP, USE_TLS, USE_SCTP, TLS_HOOKS, USE_RAW_SOCKS, DISABLE_NAGLE, USE_MCAST, DNS_IP_HACK, SHM_MMAP, PKG_MALLOC, Q_MALLOC, F_MALLOC, TLSF_MALLOC, DBG_SR_MEMORY, USE_FUTEX, FAST_LOCK-ADAPTIVE_WAIT, USE_DNS_CACHE, USE_DNS_FAILOVER, USE_NAPTR, USE_DST_BLACKLIST, HAVE_RESOLV_RES, TLS_PTHREAD_MUTEX_SHARED
ADAPTIVE_WAIT_LOOPS 1024, MAX_RECV_BUFFER_SIZE 262144, MAX_URI_SIZE 1024, BUF_SIZE 65535, DEFAULT PKG_SIZE 8MB
poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.
id: unknown
compiled with gcc 8.3.0
```
* **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`)
-->
```
Linux kamailio-5c7484c74d-vhhr8 5.4.0-1056-azure #58~18.04.1-Ubuntu SMP Wed Jul 28 23:14:18 UTC 2021 x86_64 GNU/Linux
```
--
Reply to this email directly or view it on GitHub:
https://github.com/kamailio/kamailio/issues/3019
You are receiving this because you are subscribed to this thread.
Message ID: <kamailio/kamailio/issues/3019(a)github.com>