Skip to content

Commit

Permalink
dmq: Don't delete the original notification_peer on timeout
Browse files Browse the repository at this point in the history
(cherry picked from commit e73aa40)
(cherry picked from commit 69dc8ec)
  • Loading branch information
gaaf authored and charlesrchance committed Jan 9, 2015
1 parent 120bf4a commit 840d15e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion modules/dmq/notification_peer.c
Expand Up @@ -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;
}

0 comments on commit 840d15e

Please sign in to comment.