clean up output and print that we are unregistering a channel type
authorJeremy McNamara <jj@nufone.net>
Wed, 14 Jan 2004 06:10:53 +0000 (06:10 +0000)
committerJeremy McNamara <jj@nufone.net>
Wed, 14 Jan 2004 06:10:53 +0000 (06:10 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@2025 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 95899a8..1f3541f 100755 (executable)
@@ -6573,7 +6573,6 @@ int unload_module()
        struct sip_pvt *p, *pl;
        
        /* First, take us out of the channel loop */
-       ast_channel_unregister(type);
        ast_unregister_application(app_dtmfmode);
        ast_cli_unregister(&cli_show_users);
        ast_cli_unregister(&cli_show_channels);
@@ -6584,6 +6583,7 @@ int unload_module()
        ast_cli_unregister(&cli_no_debug);
        ast_cli_unregister(&cli_inuse_show);
        ast_rtp_proto_unregister(&sip_rtp);
+       ast_channel_unregister(type);
        if (!ast_mutex_lock(&iflock)) {
                /* Hangup all interfaces if they have an owner */
                p = iflist;