Module: kamailio
Branch: master
Commit: 6b27844460e0de475d9546db122ff1ba9d9be6d8
URL:
https://github.com/kamailio/kamailio/commit/6b27844460e0de475d9546db122ff1b…
Author: Henning Westerholt <hw(a)skalatan.de>
Committer: Henning Westerholt <hw(a)skalatan.de>
Date: 2020-06-14T15:13:31Z
dialog: fix error in debug logging, properly log both sockets
---
Modified: src/modules/dialog/dlg_db_handler.c
---
Diff:
https://github.com/kamailio/kamailio/commit/6b27844460e0de475d9546db122ff1b…
Patch:
https://github.com/kamailio/kamailio/commit/6b27844460e0de475d9546db122ff1b…
---
diff --git a/src/modules/dialog/dlg_db_handler.c b/src/modules/dialog/dlg_db_handler.c
index 1325469675..1bfcb2cad7 100644
--- a/src/modules/dialog/dlg_db_handler.c
+++ b/src/modules/dialog/dlg_db_handler.c
@@ -870,8 +870,10 @@ int update_dialog_dbinfo_unsafe(struct dlg_cell * cell)
SET_STR_VALUE(values+6, cell->tag[DLG_CALLEE_LEG]);
SET_PROPER_NULL_FLAG(cell->tag[DLG_CALLEE_LEG], values, 6);
- LM_DBG("sock_info is %.*s\n",
+ LM_DBG("caller sock_info is %.*s, callee sock_info is %.*s\n",
cell->bind_addr[DLG_CALLER_LEG]->sock_str.len,
+ cell->bind_addr[DLG_CALLER_LEG]->sock_str.s,
+ cell->bind_addr[DLG_CALLEE_LEG]->sock_str.len,
cell->bind_addr[DLG_CALLEE_LEG]->sock_str.s);
SET_STR_VALUE(values+7, cell->bind_addr[DLG_CALLER_LEG]->sock_str);