aboutsummaryrefslogtreecommitdiffstats
path: root/apps/app_agi.c
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 03:37:47 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-10-22 03:37:47 +0000
commit107bde23f9a705535e1857345a30d520b1e26fff (patch)
treea0a96dfaa488c41e7bee74c1d9ed0c1f714e2e7c /apps/app_agi.c
parent75599c5393eeba613102f3731c7c5b2d9007ce07 (diff)
Set append flag properly
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1649 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_agi.c')
-rwxr-xr-xapps/app_agi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_agi.c b/apps/app_agi.c
index 294b56bd3..4c4110fd0 100755
--- a/apps/app_agi.c
+++ b/apps/app_agi.c
@@ -515,7 +515,7 @@ static int handle_recordfile(struct ast_channel *chan, AGI *agi, int argc, char
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);