[sr-dev] git:master:02fa3bf1: dialog: avoid useless re-entrant locking when linking the new dialog

Daniel-Constantin Mierla miconda at gmail.com
Fri Oct 2 11:00:28 CEST 2015


Module: kamailio
Branch: master
Commit: 02fa3bf1b62cb10a33a8b216cfe7baa9e1b84054
URL: https://github.com/kamailio/kamailio/commit/02fa3bf1b62cb10a33a8b216cfe7baa9e1b84054

Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-02T11:00:15+02:00

dialog: avoid useless re-entrant locking when linking the new dialog

---

Modified: modules/dialog/dlg_handlers.c

---

Diff:  https://github.com/kamailio/kamailio/commit/02fa3bf1b62cb10a33a8b216cfe7baa9e1b84054.diff
Patch: https://github.com/kamailio/kamailio/commit/02fa3bf1b62cb10a33a8b216cfe7baa9e1b84054.patch

---

diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index 123330b..ef7a336 100644
--- a/modules/dialog/dlg_handlers.c
+++ b/modules/dialog/dlg_handlers.c
@@ -847,7 +847,7 @@ int dlg_new_dialog(sip_msg_t *req, struct cell *t, const int run_initial_cbs)
 	dlg->vars = get_local_varlist_pointer(req, 1);
 
 	/* after dlg_search() slot was kept locked */
-	link_dlg(dlg, 0, 0);
+	link_dlg(dlg, 0, 1);
 	/* unlock after dlg_search() */
 	dlg_hash_release(&callid);
 




More information about the sr-dev mailing list