[sr-dev] git:4.3:3763f689: dialog: mark slot as lock if dialog found in state deleted for spiral detection

Daniel-Constantin Mierla miconda at gmail.com
Mon Sep 14 12:07:08 CEST 2015


Module: kamailio
Branch: 4.3
Commit: 3763f689436b717b323d6d0337317ffc24d180a1
URL: https://github.com/kamailio/kamailio/commit/3763f689436b717b323d6d0337317ffc24d180a1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-09-14T12:06:31+02:00

dialog: mark slot as lock if dialog found in state deleted for spiral detection

(cherry picked from commit 6a9c892fd0a7a526ec6ced4b40479875477d96db)

---

Modified: modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/3763f689436b717b323d6d0337317ffc24d180a1.diff
Patch: https://github.com/kamailio/kamailio/commit/3763f689436b717b323d6d0337317ffc24d180a1.patch

---

diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index ad88faa..bfee1fa 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -823,6 +823,7 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
 		}
 		/* lock the slot - dlg found, but in dlg_state_deleted, do a new one */
 		dlg_hash_lock(&callid);
+		mlock = 1;
     }
     spiral_detected = 0;
 




More information about the sr-dev mailing list