[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sr-dev
Subject:    git:master:96203c3a: ims_dialog: fix warning: â??dlg_terminated_confirmedâ?? defined but not used [-
From:       Ovidiu Sas <osas () voipembedded ! com>
Date:       2017-01-30 20:19:44
Message-ID: E1cYIQS-0008Sg-Ip () www ! kamailio ! org
[Download RAW message or body]

Module: kamailio
Branch: master
Commit: 96203c3a6ae56987c2020c8d1c4d95f5f7959a43
URL: https://github.com/kamailio/kamailio/commit/96203c3a6ae56987c2020c8d1c4d95f5f7959a43

Author: Ovidiu Sas <osas@voipembedded.com>
Committer: Ovidiu Sas <osas@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/96203c3a6ae56987c2020c8d1c4d95f5f7959a43.diff
Patch: https://github.com/kamailio/kamailio/commit/96203c3a6ae56987c2020c8d1c4d95f5f7959a43.patch

---

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,



[Attachment #3 (text/plain)]

_______________________________________________
sr-dev mailing list
sr-dev@lists.sip-router.org
http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-dev


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic