[sr-dev] git:master:5590c62e: acc: several log messages fixes related to dialog callback

Henning Westerholt hw at skalatan.de
Sat Apr 13 20:00:47 CEST 2019


Module: kamailio
Branch: master
Commit: 5590c62e4a98d59d542db2bab8f176e07f874d65
URL: https://github.com/kamailio/kamailio/commit/5590c62e4a98d59d542db2bab8f176e07f874d65

Author: Henning Westerholt <hw at skalatan.de>
Committer: Henning Westerholt <hw at skalatan.de>
Date: 2019-04-13T20:00:13+02:00

acc: several log messages fixes related to dialog callback

---

Modified: src/modules/acc/acc_cdr.c

---

Diff:  https://github.com/kamailio/kamailio/commit/5590c62e4a98d59d542db2bab8f176e07f874d65.diff
Patch: https://github.com/kamailio/kamailio/commit/5590c62e4a98d59d542db2bab8f176e07f874d65.patch

---

diff --git a/src/modules/acc/acc_cdr.c b/src/modules/acc/acc_cdr.c
index 09dcaedac0..8a0cdfa2a4 100644
--- a/src/modules/acc/acc_cdr.c
+++ b/src/modules/acc/acc_cdr.c
@@ -809,7 +809,7 @@ static void cdr_on_create( struct dlg_cell* dialog,
 	}
 }
 
-/* callback for loading a dialog frm database */
+/* callback for loading a dialog from database */
 static void cdr_on_load( struct dlg_cell* dialog,
 		int type,
 		struct dlg_cb_params* params)
@@ -863,7 +863,7 @@ static void cdr_on_load( struct dlg_cell* dialog,
 		return;
 	}
 
-	LM_DBG("dialog '%p' loaded!", dialog);
+	LM_DBG("dialog '%p' loaded and callbacks registered\n", dialog);
 
 }
 
@@ -933,7 +933,7 @@ int init_cdr_generation( void)
 
 	if( dlgb.register_dlgcb( 0, DLGCB_LOADED, cdr_on_load, 0, 0) != 0)
 	{
-		LM_ERR("can't register on load callback\n");
+		LM_ERR("can't register create callback\n");
 		return -1;
 	}
 




More information about the sr-dev mailing list