[Asterisk-cvs] asterisk/channels chan_local.c,1.32.2.3,1.32.2.4
russell at lists.digium.com
russell at lists.digium.com
Tue Jul 26 10:39:52 CDT 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv22307/channels
Modified Files:
Tag: v1-0
chan_local.c
Log Message:
fix masquerading of local channels into the new channel type (bug #4529)
Index: chan_local.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_local.c,v
retrieving revision 1.32.2.3
retrieving revision 1.32.2.4
diff -u -d -r1.32.2.3 -r1.32.2.4
--- chan_local.c 10 May 2005 03:28:01 -0000 1.32.2.3
+++ chan_local.c 26 Jul 2005 14:46:28 -0000 1.32.2.4
@@ -177,12 +177,17 @@
int res = -1;
int isoutbound;
-
/* 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