Only reset a CDR that exists.

git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@276126 65c4cc65-6c06-0410-ace0-fbb531ad65f3
1.4
Russell Bryant 15 years ago
parent dca56377a4
commit 26706f51b4

@ -2193,7 +2193,9 @@ int ast_bridge_call(struct ast_channel *chan,struct ast_channel *peer,struct ast
ast_channel_unlock(chan_ptr);
}
/* new channel */
ast_cdr_specialized_reset(new_peer_cdr,0);
if (new_peer_cdr) {
ast_cdr_specialized_reset(new_peer_cdr, 0);
}
} else {
ast_cdr_specialized_reset(peer->cdr, 0); /* nothing changed, reset the peer cdr */
}

Loading…
Cancel
Save