[asterisk-commits] murf: branch murf/CDRfix6 r121074 - /team/murf/CDRfix6/main/features.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jun 6 17:05:10 CDT 2008


Author: murf
Date: Fri Jun  6 17:05:09 2008
New Revision: 121074

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

Modified:
    team/murf/CDRfix6/main/features.c

Modified: team/murf/CDRfix6/main/features.c
URL: http://svn.digium.com/view/asterisk/team/murf/CDRfix6/main/features.c?view=diff&rev=121074&r1=121073&r2=121074
==============================================================================
--- team/murf/CDRfix6/main/features.c (original)
+++ team/murf/CDRfix6/main/features.c Fri Jun  6 17:05:09 2008
@@ -2292,8 +2292,10 @@
  		ast_cdr_detach(bridge_cdr);
  		
  		/* just in case, these channels get bridged again before hangup */
- 		ast_cdr_specialized_reset(chan->cdr,0);
- 		ast_cdr_specialized_reset(peer->cdr,0);
+		if (chan->cdr)
+			ast_cdr_specialized_reset(chan->cdr,0);
+		if (peer->cdr)
+			ast_cdr_specialized_reset(peer->cdr,0);
   	}
  	
 	return res;




More information about the asterisk-commits mailing list