[Asterisk-cvs] asterisk/channels chan_agent.c,1.117,1.118
markster at lists.digium.com
markster at lists.digium.com
Sun Feb 27 18:42:53 CST 2005
Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv21145/channels
Modified Files:
chan_agent.c
Log Message:
Don't pass agent audio until call is confirmed (bug #3677)
Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.117
retrieving revision 1.118
diff -u -d -r1.117 -r1.118
--- chan_agent.c 25 Feb 2005 00:25:28 -0000 1.117
+++ chan_agent.c 28 Feb 2005 00:40:35 -0000 1.118
@@ -406,6 +406,11 @@
ast_frfree(f);
f = NULL;
}
+ if (f && (f->frametype == AST_FRAME_VOICE) && !p->acknowledged) {
+ /* Don't pass along agent audio until call is acknowledged */
+ ast_frfree(f);
+ f = &null_frame;
+ }
CLEANUP(ast,p);
if (p->chan && !p->chan->_bridge) {
if (strcasecmp(p->chan->type, "Local")) {
More information about the svn-commits
mailing list