Skip to content

Commit

Permalink
dialog: completed previous commit for spiral handling
Browse files Browse the repository at this point in the history
(cherry picked from commit b198b39)
(cherry picked from commit 1ec00b1)
  • Loading branch information
miconda committed Dec 17, 2015
1 parent c7805a8 commit 493a6c8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/dialog/dlg_handlers.c
Expand Up @@ -818,8 +818,10 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
dlg = dlg_search(&callid, &ftag, &ttag, &dir);
if(dlg) {
if (detect_spirals) {
if (spiral_detected == 1)
if (spiral_detected == 1) {
dlg_hash_release(&callid);
return 0;
}

if ( dlg->state != DLG_STATE_DELETED ) {
LM_DBG("Callid '%.*s' found, must be a spiraled request\n",
Expand Down

0 comments on commit 493a6c8

Please sign in to comment.