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.
This commit is contained in:
Andreas Eversberg 2012-08-16 08:22:32 +02:00
parent fcc787b14d
commit 680147f78c
1 changed files with 1 additions and 1 deletions

View File

@ -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);