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

Author: Daniel-Constantin Mierla <mico...@gmail.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-07-21T17:57:21+02:00

dmq: ensure headers are parsed for dmq_process_message()

---

Modified: src/modules/dmq/message.c

---

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

---

diff --git a/src/modules/dmq/message.c b/src/modules/dmq/message.c
index fc74b50944a..59800c83f56 100644
--- a/src/modules/dmq/message.c
+++ b/src/modules/dmq/message.c
@@ -146,6 +146,11 @@ int ki_dmq_process_message_rc(sip_msg_t *msg, int 
returnval)
        dmq_node_t *dmq_node = NULL;
        int ret;
 
+       if(parse_headers(msg, HDR_EOH_F, 0) < 0) {
+               LM_ERR("failed to parse sip message headers\n");
+               goto error;
+       }
+
        if((parse_sip_msg_uri(msg) < 0) || (!msg->parsed_uri.user.s)) {
                LM_ERR("error parsing msg uri\n");
                goto error;

_______________________________________________
Kamailio - Development Mailing List -- sr-dev@lists.kamailio.org
To unsubscribe send an email to sr-dev-le...@lists.kamailio.org
Important: keep the mailing list in the recipients, do not reply only to the 
sender!

Reply via email to