From 2c83f05ebb3060c268c396b5c5fe6a6f7f20a638 Mon Sep 17 00:00:00 2001 From: russell Date: Tue, 18 Oct 2005 22:52:21 +0000 Subject: it's a good idea to unregister everything before calling STANDARD_HANGUP_LOCALUSERS git-svn-id: http://svn.digium.com/svn/asterisk/trunk@6828 f38db490-d61c-443f-a65b-d21fe96a405b --- apps/app_test.c | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) (limited to 'apps/app_test.c') diff --git a/apps/app_test.c b/apps/app_test.c index e1ffdba8b..4ded538d3 100755 --- a/apps/app_test.c +++ b/apps/app_test.c @@ -488,15 +488,24 @@ static int testserver_exec(struct ast_channel *chan, void *data) int unload_module(void) { + int res; + + res = ast_unregister_application(testc_app); + res |= ast_unregister_application(tests_app); + STANDARD_HANGUP_LOCALUSERS; - ast_unregister_application(testc_app); - return ast_unregister_application(tests_app); + + return res; } int load_module(void) { - ast_register_application(testc_app, testclient_exec, testc_synopsis, testc_descrip); - return ast_register_application(tests_app, testserver_exec, tests_synopsis, tests_descrip); + int res; + + res = ast_register_application(testc_app, testclient_exec, testc_synopsis, testc_descrip); + res |= ast_register_application(tests_app, testserver_exec, tests_synopsis, tests_descrip); + + return res; } char *description(void) -- cgit v1.2.3