Set enablecdr at the end of re-reading the config file (Closes issue #10852)
authorTilghman Lesher <tilghman@meg.abyt.es>
Sat, 29 Sep 2007 18:21:36 +0000 (18:21 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Sat, 29 Sep 2007 18:21:36 +0000 (18:21 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@84130 65c4cc65-6c06-0410-ace0-fbb531ad65f3

cdr/cdr_manager.c

index 17b4f03..6e3dd87 100644 (file)
@@ -114,6 +114,7 @@ static int load_config(int reload)
                ast_cdr_unregister(name);
        else if (!enablecdr && newenablecdr)
                ast_cdr_register(name, "Asterisk Manager Interface CDR Backend", manager_log);
+       enablecdr = newenablecdr;
 
        return 1;
 }