Skip to content

Commit

Permalink
presence_conference: removed empty mi command
Browse files Browse the repository at this point in the history
  • Loading branch information
miconda committed Jan 4, 2017
1 parent 8f2c8c7 commit a2c7572
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 29 deletions.
2 changes: 1 addition & 1 deletion src/modules/presence_conference/Makefile
@@ -1,4 +1,4 @@
#
#
# WARNING: do not run this directly, it should be run by the master Makefile

include ../../Makefile.defs
Expand Down
38 changes: 10 additions & 28 deletions src/modules/presence_conference/presence_conference.c
@@ -1,5 +1,7 @@
/*
* presence_conference module - Presence Handling of "conference" events (handling conference-info+xml doc)
* presence_conference module
*
* Presence Handling of "conference" events (handling conference-info+xml doc)
*
* Copyright (C) 2010 Marius Bucur
*
Expand All @@ -15,8 +17,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*
* History:
Expand Down Expand Up @@ -51,9 +53,6 @@ add_event_t pres_add_event;
/* module parameters */
int use_partial_states = 0;

/* module mi command functions */
static struct mi_root* conference_reset(struct mi_root* cmd, void* param);

/* module exported commands */
static cmd_export_t cmds[] =
{
Expand All @@ -66,12 +65,6 @@ static param_export_t params[] = {
{0, 0, 0}
};

/* module mi commands */
static mi_export_t mi_cmds[] = {
{ "conference_reset", conference_reset, 0, 0, 0},
{ 0, 0, 0, 0, 0 }
};

/* presence api bind structure */
presence_api_t pres;

Expand All @@ -82,15 +75,15 @@ struct module_exports exports= {
cmds, /* exported functions */
params, /* exported parameters */
0, /* exported statistics */
mi_cmds, /* exported MI functions */
0, /* exported MI functions */
0, /* exported pseudo-variables */
0, /* extra processes */
mod_init, /* module initialization function */
0, /* response handling function */
0, /* destroy function */
0 /* per-child init function */
};

/*
* init module function
*/
Expand All @@ -115,19 +108,8 @@ static int mod_init(void)
}
if(conference_add_events() < 0) {
LM_ERR("failed to add conference-info events\n");
return -1;
}

return 0;
}


/* module mi command functions */
return -1;
}

//presence_conference reset mi command
static struct mi_root* conference_reset(struct mi_root* cmd, void* param)
{
LM_ERR("Conference received mi command [reason %*.s] [code %d]...\n", cmd->reason.len, cmd->reason.s, cmd->code);
//reset subscriptions to the event package for some presentity (conference)
return cmd;
return 0;
}

0 comments on commit a2c7572

Please sign in to comment.