mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-02 19:16:15 +00:00
Make voicemail timeout configurable
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@790 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
6
file.c
6
file.c
@@ -659,7 +659,7 @@ char ast_waitstream(struct ast_channel *c, char *breakon)
|
||||
return (c->_softhangup ? -1 : 0);
|
||||
}
|
||||
|
||||
char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char *rewind)
|
||||
char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char *rewind, int ms)
|
||||
{
|
||||
int res;
|
||||
struct ast_frame *fr;
|
||||
@@ -687,9 +687,9 @@ char ast_waitstream_fr(struct ast_channel *c, char *breakon, char *forward, char
|
||||
case AST_FRAME_DTMF:
|
||||
res = fr->subclass;
|
||||
if (strchr(forward,res)) {
|
||||
ast_stream_fastforward(c->stream, 3000);
|
||||
ast_stream_fastforward(c->stream, ms);
|
||||
} else if (strchr(rewind,res)) {
|
||||
ast_stream_rewind(c->stream, 3000);
|
||||
ast_stream_rewind(c->stream, ms);
|
||||
} else if (strchr(breakon, res)) {
|
||||
ast_frfree(fr);
|
||||
return res;
|
||||
|
Reference in New Issue
Block a user