Browse code

dmq: Don't delete the original notification_peer on timeout

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