Module: sip-router Branch: alexh/dialog-sync-wip Commit: e73aa4032873b3fca88bb809d6d4ce4f28c0f237 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=e73aa4032873b3fca88bb809d6d4ce4f28c0f237
Author: Alex Hermann <[email protected]> Committer: Alex Hermann <[email protected]> Date: Tue Aug 26 16:37:08 2014 +0200 dmq: Don't delete the original notification_peer on timeout --- 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 4a76934..2f459e1 100644 --- a/modules/dmq/notification_peer.c +++ b/modules/dmq/notification_peer.c @@ -295,9 +295,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; } - _______________________________________________ sr-dev mailing list [email protected] http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev
