diff options
author | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-13 19:14:54 +0000 |
---|---|---|
committer | russell <russell@f38db490-d61c-443f-a65b-d21fe96a405b> | 2010-07-13 19:14:54 +0000 |
commit | 2b4aa080a83ae36215f88c8576d952311136fa57 (patch) | |
tree | 3bc2ce5907664b223dd03b72afdebbb745ebd71b /res | |
parent | f5592a6cb96ca6a56dbe3d351d1cf9374beaf6ab (diff) |
Only reset a CDR that exists.
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.4@276126 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'res')
-rw-r--r-- | res/res_features.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/res/res_features.c b/res/res_features.c index 80e42fe1c..11e4fa5ed 100644 --- a/res/res_features.c +++ b/res/res_features.c @@ -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 */ } |