[sr-dev] git:4.3:bf0efda9: dialog: avoid useless re-entrant locking when linking the new dialog
Daniel-Constantin Mierla
miconda at gmail.com
Fri Oct 2 11:03:01 CEST 2015
Module: kamailio
Branch: 4.3
Commit: bf0efda9cbd3ab02e1cdefb187ae2ac3089e1b18
URL: https://github.com/kamailio/kamailio/commit/bf0efda9cbd3ab02e1cdefb187ae2ac3089e1b18
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: 2015-10-02T11:00:53+02:00
dialog: avoid useless re-entrant locking when linking the new dialog
(cherry picked from commit 02fa3bf1b62cb10a33a8b216cfe7baa9e1b84054)
---
Modified: modules/dialog/dlg_handlers.c
---
Diff: https://github.com/kamailio/kamailio/commit/bf0efda9cbd3ab02e1cdefb187ae2ac3089e1b18.diff
Patch: https://github.com/kamailio/kamailio/commit/bf0efda9cbd3ab02e1cdefb187ae2ac3089e1b18.patch
---
diff --git a/modules/dialog/dlg_handlers.c b/modules/dialog/dlg_handlers.c
index b93dfaa..75dc86f 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