diff --git a/daemon/call.c b/daemon/call.c index cb82550ce..17e5d49e7 100644 --- a/daemon/call.c +++ b/daemon/call.c @@ -5241,7 +5241,7 @@ void call_destroy(call_t *c) { mqtt_timer_stop(&c->mqtt_timer); - if (!IS_OWN_CALL(c)) + if (IS_FOREIGN_CALL(c)) goto no_stats_output; ///// stats output diff --git a/daemon/cdr.c b/daemon/cdr.c index b1737535a..83d5e0967 100644 --- a/daemon/cdr.c +++ b/daemon/cdr.c @@ -41,7 +41,7 @@ void cdr_update_entry(call_t * c) { const rtp_payload_type *rtp_pt; struct packet_stream *ps=0; - if (!IS_OWN_CALL(c)) + if (IS_FOREIGN_CALL(c)) return; /* CDRs and statistics */