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)
  • Loading branch information
miconda committed Oct 1, 2015
1 parent 39d1b8f commit 1ec00b1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/dialog/dlg_handlers.c
Expand Up @@ -796,8 +796,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 1ec00b1

Please sign in to comment.