Module: kamailio
Branch: 4.3
Commit: b8a5651dd6ad3d61b46d74c78e651abd2c677442
URL:
https://github.com/kamailio/kamailio/commit/b8a5651dd6ad3d61b46d74c78e651ab…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-03-01T08:48:29+01:00
Merge pull request #518 from phil-lavin/backport-loading-dialogs-from-database
[4.3 BACKPORT] pua_dialoginfo: don't free dlginfo structure in dlg loaded callback
---
Modified: modules/pua_dialoginfo/pua_dialoginfo.c
---
Diff:
https://github.com/kamailio/kamailio/commit/b8a5651dd6ad3d61b46d74c78e651ab…
Patch:
https://github.com/kamailio/kamailio/commit/b8a5651dd6ad3d61b46d74c78e651ab…
---
diff --git a/modules/pua_dialoginfo/pua_dialoginfo.c
b/modules/pua_dialoginfo/pua_dialoginfo.c
index de53e0f..446d980 100644
--- a/modules/pua_dialoginfo/pua_dialoginfo.c
+++ b/modules/pua_dialoginfo/pua_dialoginfo.c
@@ -609,7 +609,11 @@ __dialog_loaded(struct dlg_cell *dlg, int type, struct dlg_cb_params
*_params)
LM_DBG("INVITE dialog loaded: from=%.*s\n", dlg->from_uri.len,
dlg->from_uri.s);
dlginfo=get_dialog_data(dlg, type);
- if(dlginfo!=NULL) free_dlginfo_cell(dlginfo);
+ if(dlginfo!=NULL) {
+ LM_DBG("dialog info initialized (from=%.*s)\n",
+ dlg->from_uri.len, dlg->from_uri.s);
+ /* free_dlginfo_cell(dlginfo); */
+ }
}