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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
Date: 2026-06-24T10:31:50+02:00

dmq: propagate return code

---

Modified: src/modules/dmq/dmq_funcs.c

---

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

---

diff --git a/src/modules/dmq/dmq_funcs.c b/src/modules/dmq/dmq_funcs.c
index 5a71d16ca33..0c2da126dff 100644
--- a/src/modules/dmq/dmq_funcs.c
+++ b/src/modules/dmq/dmq_funcs.c
@@ -741,9 +741,11 @@ int dmq_sl_send_message(dmq_peer_t *peer, str *body, 
dmq_node_t *node,
 int dmq_send_message(dmq_peer_t *peer, str *body, dmq_node_t *node,
                dmq_resp_cback_t *resp_cback, int max_forwards, str 
*content_type)
 {
-       if(dmq_sl_send && !resp_cback)
-               dmq_sl_send_message(peer, body, node, max_forwards, 
content_type);
-       else
-               dmq_tm_send_message(
+       if(dmq_sl_send && !resp_cback) {
+               return dmq_sl_send_message(
+                               peer, body, node, max_forwards, content_type);
+       } else {
+               return dmq_tm_send_message(
                                peer, body, node, resp_cback, max_forwards, 
content_type);
+       }
 }

_______________________________________________
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