Module: kamailio
Branch: master
Commit: 9cc994d57f9a2a298bc4cbd5dda507b2fe261670
URL: 
https://github.com/kamailio/kamailio/commit/9cc994d57f9a2a298bc4cbd5dda507b2fe261670

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-01-21T09:52:13+01:00

corex: use the data type for internal message flags

---

Modified: src/modules/corex/corex_mod.c

---

Diff:  
https://github.com/kamailio/kamailio/commit/9cc994d57f9a2a298bc4cbd5dda507b2fe261670.diff
Patch: 
https://github.com/kamailio/kamailio/commit/9cc994d57f9a2a298bc4cbd5dda507b2fe261670.patch

---

diff --git a/src/modules/corex/corex_mod.c b/src/modules/corex/corex_mod.c
index b7c445db999..ac02108ee88 100644
--- a/src/modules/corex/corex_mod.c
+++ b/src/modules/corex/corex_mod.c
@@ -660,7 +660,7 @@ static int corex_dns_cache_param_add(str *pval)
 typedef struct _msg_iflag_name
 {
        str name;
-       int value;
+       msg_flags_t value;
 } msg_iflag_name_t;
 
 /* clang-format off */
@@ -677,7 +677,7 @@ static msg_iflag_name_t _msg_iflag_list[] = {
 /**
  *
  */
-static unsigned long long msg_lookup_flag(str *fname)
+static msg_flags_t msg_lookup_flag(str *fname)
 {
        int i;
 
@@ -711,7 +711,7 @@ static unsigned long long msg_lookup_flag(str *fname)
  */
 static int w_msg_iflag_set(sip_msg_t *msg, char *pflag, char *p2)
 {
-       unsigned long long fv;
+       msg_flags_t fv;
        str fname;
        if(fixup_get_svalue(msg, (gparam_t *)pflag, &fname)) {
                LM_ERR("cannot get the msg flag name parameter\n");
@@ -731,7 +731,7 @@ static int w_msg_iflag_set(sip_msg_t *msg, char *pflag, 
char *p2)
  */
 static int w_msg_iflag_reset(sip_msg_t *msg, char *pflag, char *p2)
 {
-       unsigned long long fv;
+       msg_flags_t fv;
        str fname;
        if(fixup_get_svalue(msg, (gparam_t *)pflag, &fname)) {
                LM_ERR("cannot get the msg flag name parameter\n");
@@ -751,7 +751,7 @@ static int w_msg_iflag_reset(sip_msg_t *msg, char *pflag, 
char *p2)
  */
 static int w_msg_iflag_is_set(sip_msg_t *msg, char *pflag, char *p2)
 {
-       unsigned long long fv;
+       msg_flags_t fv;
        str fname;
        if(fixup_get_svalue(msg, (gparam_t *)pflag, &fname)) {
                LM_ERR("cannot get the msg flag name parameter\n");

_______________________________________________
Kamailio - Development Mailing List -- [email protected]
To unsubscribe send an email to [email protected]
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to