summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/app_meetme.c11
-rw-r--r--main/loader.c6
2 files changed, 15 insertions, 2 deletions
diff --git a/apps/app_meetme.c b/apps/app_meetme.c
index 59bde4012..593ce5b43 100644
--- a/apps/app_meetme.c
+++ b/apps/app_meetme.c
@@ -2892,6 +2892,7 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
ast_channel_setoption(chan, AST_OPTION_TONE_VERIFY, &x, sizeof(char), 0);
}
} else {
+ int lastusers = conf->users;
if (user->dahdichannel && ast_test_flag64(confflags, CONFFLAG_STARMENU)) {
/* Set CONFMUTE mode on DAHDI channel to mute DTMF tones when the menu is enabled */
x = 1;
@@ -3171,7 +3172,15 @@ static int conf_run(struct ast_channel *chan, struct ast_conference *conf, struc
}
break;
}
-
+
+ /* Throw a TestEvent if a user exit did not cause this user to leave the conference */
+ if (conf->users != lastusers) {
+ if (conf->users < lastusers) {
+ ast_test_suite_event_notify("NOEXIT", "Message: CONFFLAG_MARKEDEXIT\r\nLastUsers: %d\r\nUsers: %d", lastusers, conf->users);
+ }
+ lastusers = conf->users;
+ }
+
/* Check if my modes have changed */
/* If I should be muted but am still talker, mute me */
diff --git a/main/loader.c b/main/loader.c
index 5dab43b32..d82408349 100644
--- a/main/loader.c
+++ b/main/loader.c
@@ -55,6 +55,7 @@ ASTERISK_FILE_VERSION(__FILE__, "$Revision$")
#include "asterisk/udptl.h"
#include "asterisk/heap.h"
#include "asterisk/app.h"
+#include "asterisk/test.h"
#include <dlfcn.h>
@@ -572,8 +573,10 @@ int ast_unload_resource(const char *resource_name, enum ast_module_unload_mode f
mod->info->restore_globals();
#ifdef LOADABLE_MODULES
- if (!error)
+ if (!error) {
unload_dynamic_module(mod);
+ ast_test_suite_event_notify("MODULE_UNLOAD", "Message: %s", resource_name);
+ }
#endif
if (!error)
@@ -907,6 +910,7 @@ int ast_load_resource(const char *resource_name)
int res;
AST_LIST_LOCK(&module_list);
res = load_resource(resource_name, 0, NULL, 0);
+ ast_test_suite_event_notify("MODULE_LOAD", "Message: %s", resource_name);
AST_LIST_UNLOCK(&module_list);
return res;