Module: kamailio
Branch: master
Commit: 96203c3a6ae56987c2020c8d1c4d95f5f7959a43
URL:
https://github.com/kamailio/kamailio/commit/96203c3a6ae56987c2020c8d1c4d95f…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: 2017-01-30T15:18:59-05:00
ims_dialog: fix warning: âdlg_terminated_confirmedâ defined but not used
[-Wunused-function]
---
Modified: src/modules/ims_dialog/dlg_handlers.c
---
Diff:
https://github.com/kamailio/kamailio/commit/96203c3a6ae56987c2020c8d1c4d95f…
Patch:
https://github.com/kamailio/kamailio/commit/96203c3a6ae56987c2020c8d1c4d95f…
---
diff --git a/src/modules/ims_dialog/dlg_handlers.c
b/src/modules/ims_dialog/dlg_handlers.c
index 52b0934..27b13c8 100644
--- a/src/modules/ims_dialog/dlg_handlers.c
+++ b/src/modules/ims_dialog/dlg_handlers.c
@@ -286,34 +286,34 @@ void dlg_iuid_sfree(void *iuid) {
}
}
-/*!
- * \brief Function that executes BYE reply callbacks
- * \param t transaction, unused
- * \param type type of the callback, should be TMCB_RESPONSE_FWDED
- * \param param saved dialog structure inside the callback
- */
-static void dlg_terminated_confirmed(struct cell* t,
- int type,
- struct tmcb_params* params) {
- if (!params || !params->req || !params->param) {
- LM_ERR("invalid parameters!\n");
- return;
- }
-
- struct dlg_cell* dlg = (struct dlg_cell*) *params->param;
-
- if (!dlg) {
- LM_ERR("failed to get dialog from params!\n");
- return;
- }
- /* dialog termination confirmed (BYE reply) */
- run_dlg_callbacks(DLGCB_TERMINATED_CONFIRMED,
- dlg,
- params->req,
- params->rpl,
- DLG_DIR_UPSTREAM,
- 0);
-}
+///*!
+// * \brief Function that executes BYE reply callbacks
+// * \param t transaction, unused
+// * \param type type of the callback, should be TMCB_RESPONSE_FWDED
+// * \param param saved dialog structure inside the callback
+// */
+//static void dlg_terminated_confirmed(struct cell* t,
+// int type,
+// struct tmcb_params* params) {
+// if (!params || !params->req || !params->param) {
+// LM_ERR("invalid parameters!\n");
+// return;
+// }
+//
+// struct dlg_cell* dlg = (struct dlg_cell*) *params->param;
+//
+// if (!dlg) {
+// LM_ERR("failed to get dialog from params!\n");
+// return;
+// }
+// /* dialog termination confirmed (BYE reply) */
+// run_dlg_callbacks(DLGCB_TERMINATED_CONFIRMED,
+// dlg,
+// params->req,
+// params->rpl,
+// DLG_DIR_UPSTREAM,
+// 0);
+//}
static void dlg_cancel_confirmed(struct cell* t,
int type,