Module: kamailio
Branch: 4.2
Commit: 840d15e03523413282426135175e25761488bcac
URL:
https://github.com/kamailio/kamailio/commit/840d15e03523413282426135175e257…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Charles Chance <charles.chance(a)sipcentric.com>
Date: 2015-01-09T15:56:51Z
dmq: Don't delete the original notification_peer on timeout
(cherry picked from commit e73aa4032873b3fca88bb809d6d4ce4f28c0f237)
(cherry picked from commit 69dc8ec9fce8628cdf9bf39f7a25136544ae9a29)
---
Modified: modules/dmq/notification_peer.c
---
Diff:
https://github.com/kamailio/kamailio/commit/840d15e03523413282426135175e257…
Patch:
https://github.com/kamailio/kamailio/commit/840d15e03523413282426135175e257…
---
diff --git a/modules/dmq/notification_peer.c b/modules/dmq/notification_peer.c
index 85584d2..2acb9a8 100644
--- a/modules/dmq/notification_peer.c
+++ b/modules/dmq/notification_peer.c
@@ -296,9 +296,12 @@ int notification_resp_callback_f(struct sip_msg* msg, int code,
if(code == 408) {
/* deleting node - the server did not respond */
LM_ERR("deleting server %.*s because of failed request\n",
STR_FMT(&node->orig_uri));
+ if (STR_EQ(node->orig_uri, dmq_notification_address)) {
+ LM_ERR("not deleting notification_peer\n");
+ return 0;
+ }
ret = del_dmq_node(node_list, node);
LM_DBG("del_dmq_node returned %d\n", ret);
}
return 0;
}
-