Index: channels/chan_sip.c =================================================================== RCS file: /usr/cvsroot/asterisk/channels/chan_sip.c,v retrieving revision 1.278 diff -u -r1.278 chan_sip.c --- channels/chan_sip.c 13 Jan 2004 02:24:36 -0000 1.278 +++ channels/chan_sip.c 14 Jan 2004 02:58:37 -0000 @@ -6573,7 +6573,6 @@ 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 @@ 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;