Module: kamailio Branch: master Commit: 08f542efffa4845247cc4a4795f1d90bd3957130 URL: https://github.com/kamailio/kamailio/commit/08f542efffa4845247cc4a4795f1d90b...
Author: Stefan Mititelu stefan.mititelu@net2phone.com Committer: Daniel-Constantin Mierla miconda@gmail.com Date: 2025-04-11T13:37:55+02:00
htable: use NULL for dmq response callback
---
Modified: src/modules/htable/ht_dmq.c Modified: src/modules/htable/ht_dmq.h
---
Diff: https://github.com/kamailio/kamailio/commit/08f542efffa4845247cc4a4795f1d90b... Patch: https://github.com/kamailio/kamailio/commit/08f542efffa4845247cc4a4795f1d90b...
---
diff --git a/src/modules/htable/ht_dmq.c b/src/modules/htable/ht_dmq.c index ead9171e17d..a5fd41f3e44 100644 --- a/src/modules/htable/ht_dmq.c +++ b/src/modules/htable/ht_dmq.c @@ -56,7 +56,6 @@ extern int ht_dmq_init_sync;
dmq_api_t ht_dmqb; dmq_peer_t *ht_dmq_peer = NULL; -dmq_resp_cback_t ht_dmq_resp_callback = {&ht_dmq_resp_callback_f, 0};
int ht_dmq_send(str *body, dmq_node_t *node); int ht_dmq_send_sync(dmq_node_t *node, str *htname); @@ -245,12 +244,12 @@ int ht_dmq_send(str *body, dmq_node_t *node) } if(node) { LM_DBG("sending dmq message ...\n"); - ht_dmqb.send_message(ht_dmq_peer, body, node, &ht_dmq_resp_callback, 1, - &ht_dmq_content_type); + ht_dmqb.send_message( + ht_dmq_peer, body, node, NULL, 1, &ht_dmq_content_type); } else { LM_DBG("sending dmq broadcast...\n"); - ht_dmqb.bcast_message(ht_dmq_peer, body, 0, &ht_dmq_resp_callback, 1, - &ht_dmq_content_type); + ht_dmqb.bcast_message( + ht_dmq_peer, body, 0, NULL, 1, &ht_dmq_content_type); } return 0; } @@ -644,13 +643,3 @@ int ht_dmq_handle_sync(srjson_doc_t *jdoc) } return 0; } - -/** - * @brief dmq response callback - */ -int ht_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; -} diff --git a/src/modules/htable/ht_dmq.h b/src/modules/htable/ht_dmq.h index aaa1eb5efc0..e0f3d2279c4 100644 --- a/src/modules/htable/ht_dmq.h +++ b/src/modules/htable/ht_dmq.h @@ -31,7 +31,6 @@
extern dmq_api_t ht_dmqb; extern dmq_peer_t *ht_dmq_peer; -extern dmq_resp_cback_t ht_dmq_resp_callback;
typedef enum { @@ -55,7 +54,5 @@ int ht_dmq_replay_action(ht_dmq_action_t action, str *htname, str *cname, int type, int_str *val, int mode); int ht_dmq_request_sync(str *htname); int ht_dmq_request_sync_all(); -int ht_dmq_resp_callback_f( - struct sip_msg *msg, int code, dmq_node_t *node, void *param);
#endif