mirror of
https://github.com/asterisk/asterisk.git
synced 2025-11-02 03:48:02 +00:00
Use zaptel timers to wake up processes
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@1002 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user