diff options
Diffstat (limited to 'apps/app_txtcidname.c')
-rwxr-xr-x | apps/app_txtcidname.c | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/apps/app_txtcidname.c b/apps/app_txtcidname.c index 25547c20b..f1970adf6 100755 --- a/apps/app_txtcidname.c +++ b/apps/app_txtcidname.c @@ -96,17 +96,18 @@ static int txtcidname_exec(struct ast_channel *chan, void *data) int unload_module(void) { + int res; + + res = ast_unregister_application(app); + STANDARD_HANGUP_LOCALUSERS; - return ast_unregister_application(app); + + return res; } int load_module(void) { - int res; - - res = ast_register_application(app, txtcidname_exec, synopsis, descrip); - - return res; + return ast_register_application(app, txtcidname_exec, synopsis, descrip); } char *description(void) |