Fix CCSS CLI commands and logger level not unregistered.
authorRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 17:10:40 +0000 (17:10 +0000)
committerRichard Mudgett <rmudgett@digium.com>
Mon, 3 Dec 2012 17:10:40 +0000 (17:10 +0000)
(issue ASTERISK-20649)
Reported by: Corey Farrell
Patches:
      ccss-cleanup-all.patch (license #5909) patch uploaded by Corey Farrell
........

Merged revisions 377037 from http://svn.asterisk.org/svn/asterisk/branches/1.8
........

Merged revisions 377038 from http://svn.asterisk.org/svn/asterisk/branches/10
........

Merged revisions 377039 from http://svn.asterisk.org/svn/asterisk/branches/11

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@377040 65c4cc65-6c06-0410-ace0-fbb531ad65f3

main/ccss.c

index 11e3a00..6ce022d 100644 (file)
@@ -4536,6 +4536,8 @@ static void cc_shutdown(void)
        ast_cc_monitor_unregister(&generic_monitor_cbs);
        ast_unregister_application(cccancel_app);
        ast_unregister_application(ccreq_app);
+       ast_logger_unregister_level(CC_LOGGER_LEVEL_NAME);
+       ast_cli_unregister_multiple(cc_cli, ARRAY_LEN(cc_cli));
 
        if (cc_sched_context) {
                ast_sched_context_destroy(cc_sched_context);