[sr-dev] git:4:1ec00b13: dialog: completed previous commit for spiral handling

Daniel-Constantin Mierla miconda at gmail.com
Thu Oct 1 16:53:31 CEST 2015


Module: kamailio
Branch: 4
Commit: 1ec00b13bb7069a0a4dba44bac0eb95fd271f9f1
URL: https://github.com/kamailio/kamailio/commit/1ec00b13bb7069a0a4dba44bac0eb95fd271f9f1

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-01T16:32:40+02:00

dialog: completed previous commit for spiral handling

(cherry picked from commit b198b390106924df2279d94f28305c25c86b435e)

---

Modified: modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/1ec00b13bb7069a0a4dba44bac0eb95fd271f9f1.diff
Patch: https://github.com/kamailio/kamailio/commit/1ec00b13bb7069a0a4dba44bac0eb95fd271f9f1.patch

---

diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index 86f82a7..b93dfaa 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -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",




More information about the sr-dev mailing list