Browse code

dmq: Don't delete the original notification_peer on timeout

(cherry picked from commit e73aa4032873b3fca88bb809d6d4ce4f28c0f237)

Alex Hermann authored on 26/08/2014 14:37:08 • Charles Chance committed on 13/11/2014 21:57:34
Showing 1 changed files
... ...
@@ -296,9 +296,12 @@ int notification_resp_callback_f(struct sip_msg* msg, int code,
296 296
 	if(code == 408) {
297 297
 		/* deleting node - the server did not respond */
298 298
 		LM_ERR("deleting server %.*s because of failed request\n", STR_FMT(&node->orig_uri));
299
+		if (STR_EQ(node->orig_uri, dmq_notification_address)) {
300
+			LM_ERR("not deleting notification_peer\n");
301
+			return 0;
302
+		}
299 303
 		ret = del_dmq_node(node_list, node);
300 304
 		LM_DBG("del_dmq_node returned %d\n", ret);
301 305
 	}
302 306
 	return 0;
303 307
 }
304
-