From 680147f78cfba39d1b94f8f2db332e4f271cd077 Mon Sep 17 00:00:00 2001 From: Andreas Eversberg Date: Thu, 16 Aug 2012 08:22:32 +0200 Subject: [PATCH] Fix: chan_lcr will suppress audio traffic until ref is received If no ref is received from LCR, the traffic may not be sent to LCR. --- chan_lcr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chan_lcr.c b/chan_lcr.c index 302716e..332cc7f 100644 --- a/chan_lcr.c +++ b/chan_lcr.c @@ -2750,7 +2750,7 @@ static int lcr_write(struct ast_channel *ast, struct ast_frame *fr) #else call = ast_channel_tech_pvt(ast); #endif - if (!call) { + if (!call || !call->ref) { ast_mutex_unlock(&chan_lock); if (f != fr) { ast_frfree(f); -- 2.13.6