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
|
#else
|
||||||
call = ast_channel_tech_pvt(ast);
|
call = ast_channel_tech_pvt(ast);
|
||||||
#endif
|
#endif
|
||||||
if (!call) {
|
if (!call || !call->ref) {
|
||||||
ast_mutex_unlock(&chan_lock);
|
ast_mutex_unlock(&chan_lock);
|
||||||
if (f != fr) {
|
if (f != fr) {
|
||||||
ast_frfree(f);
|
ast_frfree(f);
|
||||||
|
|
Loading…
Reference in New Issue