Module: sip-router
Branch: master
Commit: 69dc8ec9fce8628cdf9bf39f7a25136544ae9a29
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=69dc8ec…
Author: Alex Hermann <alex(a)speakup.nl>
Committer: Charles Chance <charles.chance(a)sipcentric.com>
Date: Tue Aug 26 16:37:08 2014 +0200
dmq: Don't delete the original notification_peer on timeout
(cherry picked from commit e73aa4032873b3fca88bb809d6d4ce4f28c0f237)
---
modules/dmq/notification_peer.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
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;
}
-