Fix: chan_lcr will suppress audio traffic until ref is received
authorAndreas Eversberg <jolly@eversberg.eu>
Thu, 16 Aug 2012 06:22:32 +0000 (08:22 +0200)
committerAndreas Eversberg <jolly@eversberg.eu>
Sun, 16 Dec 2012 09:10:34 +0000 (10:10 +0100)
If no ref is received from LCR, the traffic may not be sent to LCR.

chan_lcr.c

index 302716e..332cc7f 100644 (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);