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

Author: Daniel-Constantin Mierla <[email protected]>
Committer: Daniel-Constantin Mierla <[email protected]>
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);
 


_______________________________________________
sr-dev mailing list
[email protected]
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev

Reply via email to