Module: sip-router Branch: mariusbucur/conference Commit: 3495dddeb1fcb9a21630e6baac40edbb6e0801e2 URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=3495ddde...
Author: mariusbucur marius@marius-bucur.ro Committer: mariusbucur marius@marius-bucur.ro Date: Thu Aug 12 18:33:33 2010 +0300
extending support for reseting a conference state.
---
.../presence_conference/presence_conference.c | 23 +++++++++++++------- 1 files changed, 15 insertions(+), 8 deletions(-)
diff --git a/modules_k/presence_conference/presence_conference.c b/modules_k/presence_conference/presence_conference.c index 709fa81..c2c4df0 100644 --- a/modules_k/presence_conference/presence_conference.c +++ b/modules_k/presence_conference/presence_conference.c @@ -52,13 +52,7 @@ add_event_t pres_add_event; int use_partial_states = 0;
/* module mi command functions */ - -//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); - return cmd; -} +static struct mi_root* conference_reset(struct mi_root* cmd, void* param);
/* module exported commands */ static cmd_export_t cmds[] = @@ -78,6 +72,9 @@ static mi_export_t mi_cmds[] = { { 0, 0, 0, 0, 0 } };
+/* presence api bind structure */ +presence_api_t pres; + /* module exports */ struct module_exports exports= { "presence_conference", /* module name */ @@ -99,7 +96,6 @@ struct module_exports exports= { */ static int mod_init(void) { - presence_api_t pres; bind_presence_t bind_presence;
bind_presence= (bind_presence_t)find_export("bind_presence", 1,0); @@ -123,4 +119,15 @@ static int mod_init(void) }
return 0; +} + + +/* module mi command functions */ + +//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; } \ No newline at end of file