Skip to content

Commit

Permalink
ims_dialog: fix warning: ‘dlg_terminated_confirmed’ defined but not u…
Browse files Browse the repository at this point in the history
…sed [-Wunused-function]
  • Loading branch information
ovidiusas committed Jan 30, 2017
1 parent c293df8 commit 96203c3
Showing 1 changed file with 28 additions and 28 deletions.
56 changes: 28 additions & 28 deletions src/modules/ims_dialog/dlg_handlers.c
Expand Up @@ -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,
Expand Down

0 comments on commit 96203c3

Please sign in to comment.