[Asterisk-cvs] asterisk/channels chan_local.c,1.42,1.43

markster at lists.digium.com markster at lists.digium.com
Fri Mar 4 22:38:19 CST 2005


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv23556/channels

Modified Files:
	chan_local.c 
Log Message:
If we're only queueing audio, don't queue when we really want to engage the masquerade


Index: chan_local.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_local.c,v
retrieving revision 1.42
retrieving revision 1.43
diff -u -d -r1.42 -r1.43
--- chan_local.c	4 Mar 2005 06:47:24 -0000	1.42
+++ chan_local.c	5 Mar 2005 04:35:23 -0000	1.43
@@ -206,8 +206,14 @@
 	/* Just queue for delivery to the other side */
 	ast_mutex_lock(&p->lock);
 	isoutbound = IS_OUTBOUND(ast, p);
-	res = local_queue_frame(p, isoutbound, f, ast);
-	check_bridge(p, isoutbound);
+	if (f && (f->frametype == AST_FRAME_VOICE)) 
+		check_bridge(p, isoutbound);
+	if (!p->alreadymasqed)
+		res = local_queue_frame(p, isoutbound, f, ast);
+	else {
+		ast_log(LOG_DEBUG, "Not posting to queue since already masked on '%s'\n", ast->name);
+		res = 0;
+	}
 	ast_mutex_unlock(&p->lock);
 	return res;
 }




More information about the svn-commits mailing list