diff --git a/apps/app_dial.c b/apps/app_dial.c index ecf09e8688..4739e16923 100644 --- a/apps/app_dial.c +++ b/apps/app_dial.c @@ -1468,6 +1468,10 @@ static void end_bridge_callback(void *data) time_t end; struct ast_channel *chan = data; + if (!chan->cdr) { + return; + } + time(&end); ast_channel_lock(chan);