[svn-commits] murf: branch group/CDRfix5 r121076 - /team/group/CDRfix5/main/features.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Jun 6 17:06:46 CDT 2008


Author: murf
Date: Fri Jun  6 17:06:46 2008
New Revision: 121076

URL: http://svn.digium.com/view/asterisk?view=rev&rev=121076
Log:
A fix to the specialized_resets done at the end of the bridge to avoid a crash with sip xfers

Modified:
    team/group/CDRfix5/main/features.c

Modified: team/group/CDRfix5/main/features.c
URL: http://svn.digium.com/view/asterisk/team/group/CDRfix5/main/features.c?view=diff&rev=121076&r1=121075&r2=121076
==============================================================================
--- team/group/CDRfix5/main/features.c (original)
+++ team/group/CDRfix5/main/features.c Fri Jun  6 17:06:46 2008
@@ -2355,8 +2355,10 @@
 		ast_cdr_detach(bridge_cdr);
 		
 		/* just in case, these channels get bridged again before hangup */
-		ast_cdr_sortof_reset(chan->cdr,0);
-		ast_cdr_sortof_reset(peer->cdr,0);
+		if (chan->cdr)
+			ast_cdr_sortof_reset(chan->cdr,0);
+		if (peer->cdr)
+			ast_cdr_sortof_reset(peer->cdr,0);
 	}
 	return res;
 }




More information about the svn-commits mailing list