[Asterisk-cvs] asterisk/channels chan_agent.c,1.81.2.2,1.81.2.3

russell at lists.digium.com russell at lists.digium.com
Tue Apr 5 03:39:17 CDT 2005


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

Modified Files:
      Tag: v1-0
	chan_agent.c 
Log Message:
don't pass audio until the call has been acked if configured to do so (bug #3677)


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.81.2.2
retrieving revision 1.81.2.3
diff -u -d -r1.81.2.2 -r1.81.2.3
--- chan_agent.c	15 Dec 2004 19:07:10 -0000	1.81.2.2
+++ chan_agent.c	5 Apr 2005 08:32:04 -0000	1.81.2.3
@@ -367,6 +367,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);
 	ast_mutex_unlock(&p->lock);
 	if (recordagentcalls && f == &answer_frame)




More information about the svn-commits mailing list