aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authormarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-12 04:23:55 +0000
committermarkster <markster@f38db490-d61c-443f-a65b-d21fe96a405b>2003-05-12 04:23:55 +0000
commit57f1c73396a098a4ae9b93db577f7f13d4bf3a74 (patch)
treeea489daf4f7d64dce260b9e4c59e413de180437a /apps
parent11dc83355e514517f8a7e5bb6b5a9de05a41dca0 (diff)
Use zaptel timers to wake up processes
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@1002 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps')
-rwxr-xr-xapps/app_voicemail2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/apps/app_voicemail2.c b/apps/app_voicemail2.c
index 3d5fb6d6e..f2bb8549e 100755
--- a/apps/app_voicemail2.c
+++ b/apps/app_voicemail2.c
@@ -678,6 +678,8 @@ static int play_and_record(struct ast_channel *chan, char *playfile, char *recor
for (x=0;x<fmtcnt;x++) {
if (!others[x])
break;
+ ast_stream_rewind(others[x], 1000);
+ ast_truncstream(others[x]);
ast_closestream(others[x]);
}
if (outmsg) {
@@ -705,7 +707,6 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
FILE *txt;
int res = 0;
int msgnum;
- int maxmessage=0;
char date[256];
char dir[256];
char fn[256];
@@ -846,7 +847,7 @@ static int leave_voicemail(struct ast_channel *chan, char *ext, int silent, int
fclose(txt);
} else
ast_log(LOG_WARNING, "Error opening text file for output\n");
- res = play_and_record(chan, NULL, fn, maxmessage, fmt);
+ res = play_and_record(chan, NULL, fn, vmmaxmessage, fmt);
if (res > 0)
res = 0;
txt = fopen(txtfile, "a");