From: Andreas Eversberg Date: Thu, 16 Aug 2012 06:22:32 +0000 (+0200) Subject: Fix: chan_lcr will suppress audio traffic until ref is received X-Git-Url: http://git.eversberg.eu/gitweb.cgi?p=lcr.git;a=commitdiff_plain;h=680147f78cfba39d1b94f8f2db332e4f271cd077;ds=sidebyside 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. --- 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);