[asterisk-commits] mmichelson: trunk r156169 - in /trunk: ./	apps/app_dial.c
    SVN commits to the Asterisk project 
    asterisk-commits at lists.digium.com
       
    Wed Nov 12 11:41:56 CST 2008
    
    
  
Author: mmichelson
Date: Wed Nov 12 11:41:56 2008
New Revision: 156169
URL: http://svn.digium.com/view/asterisk?view=rev&rev=156169
Log:
Merged revisions 156167 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r156167 | mmichelson | 2008-11-12 11:38:33 -0600 (Wed, 12 Nov 2008) | 7 lines
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:
    trunk/   (props changed)
    trunk/apps/app_dial.c
Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.
Modified: trunk/apps/app_dial.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_dial.c?view=diff&rev=156169&r1=156168&r2=156169
==============================================================================
--- trunk/apps/app_dial.c (original)
+++ trunk/apps/app_dial.c Wed Nov 12 11:41:56 2008
@@ -1468,6 +1468,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