aboutsummaryrefslogtreecommitdiffstats
path: root/cdr.c
diff options
context:
space:
mode:
authorcitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-21 04:25:44 +0000
committercitats <citats@f38db490-d61c-443f-a65b-d21fe96a405b>2004-04-21 04:25:44 +0000
commit2e6081c64777b1a2fafa8edc5c3053c54da779de (patch)
treea8def89cd6cac0c75979033daa70abbf919582d5 /cdr.c
parent432eb1bc3b2617471a2bd30b797817e82d2ee662 (diff)
Log that we are unregistering cdr module (bug 1460)
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@2729 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'cdr.c')
-rwxr-xr-xcdr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cdr.c b/cdr.c
index 38ff053fd..b80e39552 100755
--- a/cdr.c
+++ b/cdr.c
@@ -20,6 +20,7 @@
#include <asterisk/logger.h>
#include <asterisk/callerid.h>
#include <asterisk/causes.h>
+#include <asterisk/options.h>
#include <unistd.h>
#include <stdlib.h>
#include <string.h>
@@ -94,6 +95,8 @@ void ast_cdr_unregister(char *name)
}
i = i->next;
}
+ if (option_verbose > 1)
+ ast_verbose(VERBOSE_PREFIX_2 "Unregistered '%s' CDR backend\n", name);
ast_mutex_unlock(&cdrlock);
if (i)
free(i);