clean up our mess on unload. Bug #799
authorJeremy McNamara <jj@nufone.net>
Mon, 12 Jan 2004 18:08:34 +0000 (18:08 +0000)
committerJeremy McNamara <jj@nufone.net>
Mon, 12 Jan 2004 18:08:34 +0000 (18:08 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1984 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_iax.c
channels/chan_iax2.c

index fee5f77..f9a37b1 100755 (executable)
@@ -5352,10 +5352,15 @@ static int __unload_module(void)
        ast_cli_unregister(&cli_show_users);
        ast_cli_unregister(&cli_show_channels);
        ast_cli_unregister(&cli_show_peers);
+       ast_cli_unregister(&cli_show_registry);
+       ast_cli_unregister(&cli_debug);
+       ast_cli_unregister(&cli_no_debug);
        ast_cli_unregister(&cli_set_jitter);
        ast_cli_unregister(&cli_show_stats);
        ast_cli_unregister(&cli_show_cache);
        ast_unregister_switch(&iax_switch);
+       ast_channel_unregister(type);
+       ast_channel_unregister(ctype);
        delete_users();
        return 0;
 }
index 3858cc5..85fc30e 100755 (executable)
@@ -6045,10 +6045,15 @@ static int __unload_module(void)
        ast_cli_unregister(&cli_show_users);
        ast_cli_unregister(&cli_show_channels);
        ast_cli_unregister(&cli_show_peers);
+       ast_cli_unregister(&cli_show_registry);
+       ast_cli_unregister(&cli_debug);
+       ast_cli_unregister(&cli_trunk_debug);
+       ast_cli_unregister(&cli_no_debug);
        ast_cli_unregister(&cli_set_jitter);
        ast_cli_unregister(&cli_show_stats);
        ast_cli_unregister(&cli_show_cache);
        ast_unregister_switch(&iax2_switch);
+       ast_channel_unregister(type);
        delete_users();
        return 0;
 }