[asterisk-commits] murf: branch murf/CDRfix4 r121075 - /team/murf/CDRfix4/res/res_features.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Fri Jun 6 17:06:07 CDT 2008
Author: murf
Date: Fri Jun 6 17:06:07 2008
New Revision: 121075
URL: http://svn.digium.com/view/asterisk?view=rev&rev=121075
Log:
A fix to the specialized_resets done at the end of the bridge to avoid a crash with sip xfers
Modified:
team/murf/CDRfix4/res/res_features.c
Modified: team/murf/CDRfix4/res/res_features.c
URL: http://svn.digium.com/view/asterisk/team/murf/CDRfix4/res/res_features.c?view=diff&rev=121075&r1=121074&r2=121075
==============================================================================
--- team/murf/CDRfix4/res/res_features.c (original)
+++ team/murf/CDRfix4/res/res_features.c Fri Jun 6 17:06:07 2008
@@ -1595,8 +1595,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