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

Author: Stefan Mititelu <stefan.mitit...@net2phone.com>
Committer: Daniel-Constantin Mierla <mico...@gmail.com>
Date: 2025-04-11T13:37:55+02:00

dmq_usrloc: use NULL for dmq response callback

---

Modified: src/modules/dmq_usrloc/usrloc_sync.c
Modified: src/modules/dmq_usrloc/usrloc_sync.h

---

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

---

diff --git a/src/modules/dmq_usrloc/usrloc_sync.c 
b/src/modules/dmq_usrloc/usrloc_sync.c
index 87e151b4fa3..79a54eb2b19 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.c
+++ b/src/modules/dmq_usrloc/usrloc_sync.c
@@ -42,7 +42,6 @@ static struct socket_info *dmq_server_socket_local = 0;
 
 dmq_api_t usrloc_dmqb;
 dmq_peer_t *usrloc_dmq_peer = NULL;
-dmq_resp_cback_t usrloc_dmq_resp_callback = {&usrloc_dmq_resp_callback_f, 0};
 
 int usrloc_dmq_send_all();
 int usrloc_dmq_request_sync();
@@ -335,12 +334,12 @@ int usrloc_dmq_send(str *body, dmq_node_t *node)
        }
        if(node) {
                LM_DBG("sending dmq message ...\n");
-               usrloc_dmqb.send_message(usrloc_dmq_peer, body, node,
-                               &usrloc_dmq_resp_callback, 1, 
&usrloc_dmq_content_type);
+               usrloc_dmqb.send_message(
+                               usrloc_dmq_peer, body, node, NULL, 1, 
&usrloc_dmq_content_type);
        } else {
                LM_DBG("sending dmq broadcast...\n");
-               usrloc_dmqb.bcast_message(usrloc_dmq_peer, body, 0,
-                               &usrloc_dmq_resp_callback, 1, 
&usrloc_dmq_content_type);
+               usrloc_dmqb.bcast_message(
+                               usrloc_dmq_peer, body, 0, NULL, 1, 
&usrloc_dmq_content_type);
        }
        return 0;
 }
@@ -1016,13 +1015,6 @@ void srjson_to_xavp(srjson_t *json, sr_xavp_t **xavp)
        }
 }
 
-int usrloc_dmq_resp_callback_f(
-               struct sip_msg *msg, int code, dmq_node_t *node, void *param)
-{
-       LM_DBG("dmq response callback triggered [%p %d %p]\n", msg, code, 
param);
-       return 0;
-}
-
 void dmq_ul_cb_contact(ucontact_t *ptr, int type, void *param)
 {
        str aor;
diff --git a/src/modules/dmq_usrloc/usrloc_sync.h 
b/src/modules/dmq_usrloc/usrloc_sync.h
index 85cfc27e414..ba08cde9372 100644
--- a/src/modules/dmq_usrloc/usrloc_sync.h
+++ b/src/modules/dmq_usrloc/usrloc_sync.h
@@ -43,8 +43,6 @@ typedef enum
        DMQ_SYNC,
 } usrloc_dmq_action_t;
 
-int usrloc_dmq_resp_callback_f(
-               struct sip_msg *msg, int code, dmq_node_t *node, void *param);
 int usrloc_dmq_initialize();
 int usrloc_dmq_handle_msg(
                struct sip_msg *msg, peer_reponse_t *resp, dmq_node_t *node);

_______________________________________________
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