[asterisk-commits] mmichelson: branch 1.4 r156167 -	/branches/1.4/apps/app_dial.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Nov 12 11:38:33 CST 2008
    
    
  
Author: mmichelson
Date: Wed Nov 12 11:38:33 2008
New Revision: 156167
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156167
Log:
When doing some tests, I was having a crash at the end of every call
if an attended transfer occurred during the call. I traced the cause to
the CDR on one of the channels being NULL. murf suggested a check in
the end bridge callback to be sure the CDR is non-NULL before proceeding,
so that's what I'm adding.
Modified:
    branches/1.4/apps/app_dial.c
Modified: branches/1.4/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_dial.c?view=diff&rev=156167&r1=156166&r2=156167
==============================================================================
--- branches/1.4/apps/app_dial.c (original)
+++ branches/1.4/apps/app_dial.c Wed Nov 12 11:38:33 2008
@@ -838,6 +838,10 @@
 	time_t end;
 	struct ast_channel *chan = data;
 
+	if (!chan->cdr) {
+		return;
+	}
+
 	time(&end);
 
 	ast_channel_lock(chan);
    
    
More information about the asterisk-commits
mailing list