[asterisk-commits] murf: branch murf/cdr-debug-1.4 r160423 - /team/murf/cdr-debug-1.4/main/

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Dec 2 18:44:41 CST 2008


Author: murf
Date: Tue Dec  2 18:44:41 2008
New Revision: 160423

URL: http://svn.digium.com/view/asterisk?view=rev&rev=160423
Log:
Inserted a few debugs


Modified:
    team/murf/cdr-debug-1.4/main/cdr.c
    team/murf/cdr-debug-1.4/main/channel.c

Modified: team/murf/cdr-debug-1.4/main/cdr.c
URL: http://svn.digium.com/view/asterisk/team/murf/cdr-debug-1.4/main/cdr.c?view=diff&rev=160423&r1=160422&r2=160423
==============================================================================
--- team/murf/cdr-debug-1.4/main/cdr.c (original)
+++ team/murf/cdr-debug-1.4/main/cdr.c Tue Dec  2 18:44:41 2008
@@ -707,14 +707,18 @@
 {
 
 	for (; cdr; cdr = cdr->next) {
-		if (ast_test_flag(cdr, AST_CDR_FLAG_ANSLOCKED)) 
+		if (ast_test_flag(cdr, AST_CDR_FLAG_ANSLOCKED)) {
+			ast_log(LOG_NOTICE,"Skip Channel %s, CDR %p; ANSLOCKED set\n", cdr->channel, cdr);
 			continue;
-		if (ast_test_flag(cdr, AST_CDR_FLAG_DONT_TOUCH) && ast_test_flag(cdr, AST_CDR_FLAG_LOCKED))
+		}
+		if (ast_test_flag(cdr, AST_CDR_FLAG_DONT_TOUCH) && ast_test_flag(cdr, AST_CDR_FLAG_LOCKED)) {
+			ast_log(LOG_NOTICE,"Skip Channel %s, CDR %p; DONT_TOUCH && LOCKED set\n", cdr->channel, cdr);
 			continue;
+		}
 		check_post(cdr);
 		if (cdr->disposition < AST_CDR_ANSWERED) {
 			cdr->disposition = AST_CDR_ANSWERED;
-			ast_log(LOG_NOTICE,"answer CDR %s (%p) disposition = ANSWERED(%d)\n", cdr->channel, cdr, (int)cdr->disposition);
+			ast_log(LOG_NOTICE,"set answer CDR %s (%p) disposition = ANSWERED(%d)\n", cdr->channel, cdr, (int)cdr->disposition);
 		}
 		if (ast_tvzero(cdr->answer)) {
 			ast_log(LOG_NOTICE,"answer CDR %s (%p) = %d\n", cdr->channel, cdr, (int)cdr->start.tv_sec);

Modified: team/murf/cdr-debug-1.4/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/murf/cdr-debug-1.4/main/channel.c?view=diff&rev=160423&r1=160422&r2=160423
==============================================================================
--- team/murf/cdr-debug-1.4/main/channel.c (original)
+++ team/murf/cdr-debug-1.4/main/channel.c Tue Dec  2 18:44:41 2008
@@ -1280,6 +1280,7 @@
 	ast_jb_destroy(chan);
 
 	if (chan->cdr) {
+		ast_log(LOG_NOTICE,"About to discard CDRs %p\n", chan->cdr);
 		ast_cdr_discard(chan->cdr);
 		chan->cdr = NULL;
 	}




More information about the asterisk-commits mailing list