[Asterisk-Dev] [patch] Bug in AGI record from functionality
Steven Critchfield
critch at basesys.com
Fri Sep 26 06:41:54 MST 2003
Please, could someone review this patch and either tell me it won't be
accepted, or tell me how to improve it so it will be accepted. The bug
url is
http://bugs.digium.com/bug_view_advanced_page.php?bug_id=255
And this is the patch that is included with the bug report.
Index: apps/app_agi.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_agi.c,v
retrieving revision 1.12
diff -u -r1.12 app_agi.c
--- apps/app_agi.c 8 Sep 2003 16:48:06 -0000 1.12
+++ apps/app_agi.c 11 Sep 2003 23:11:10 -0000
@@ -515,7 +515,7 @@
if (!res)
res = ast_waitstream(chan, argv[4]);
if (!res) {
- fs = ast_writefile(argv[2], argv[3], NULL, O_CREAT | O_WRONLY, 0, 0644);
+ fs = ast_writefile(argv[2], argv[3], NULL, O_CREAT | O_WRONLY | (sample_offset ? O_APPEND : 0) , 0, 0644);
if (!fs) {
res = -1;
fdprintf(agi->fd, "200 result=%d (writefile)\n", res);
--
Steven Critchfield <critch at basesys.com>
More information about the asterisk-dev
mailing list