Module: kamailio
Branch: master
Commit: 8ced2d76fda260f7a3a746a9d4820f84eb260618
URL:
https://github.com/kamailio/kamailio/commit/8ced2d76fda260f7a3a746a9d4820f8…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2021-03-16T12:55:46+01:00
dmq: log the address of notification peer on failure callback
---
Modified: src/modules/dmq/notification_peer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/8ced2d76fda260f7a3a746a9d4820f8…
Patch:
https://github.com/kamailio/kamailio/commit/8ced2d76fda260f7a3a746a9d4820f8…
---
diff --git a/src/modules/dmq/notification_peer.c b/src/modules/dmq/notification_peer.c
index 83da389269..c991acbf5f 100644
--- a/src/modules/dmq/notification_peer.c
+++ b/src/modules/dmq/notification_peer.c
@@ -600,13 +600,14 @@ int notification_resp_callback_f(
}
} else if(code == 408) {
if(STR_EQ(node->orig_uri, dmq_notification_address)) {
- LM_ERR("not deleting notification_peer\n");
- update_dmq_node_status(dmq_node_list, node, DMQ_NODE_PENDING);
+ LM_ERR("not deleting notification peer [%.*s]\n",
+ STR_FMT(&dmq_notification_address));
+ update_dmq_node_status(dmq_node_list, node, DMQ_NODE_PENDING);
return 0;
}
if (node->status == DMQ_NODE_DISABLED) {
/* deleting node - the server did not respond */
- LM_ERR("deleting server %.*s because of failed request\n",
+ LM_ERR("deleting server node %.*s because of failed request\n",
STR_FMT(&node->orig_uri));
ret = del_dmq_node(dmq_node_list, node);
LM_DBG("del_dmq_node returned %d\n", ret);