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:
parent
fcc787b14d
commit
680147f78c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue