diff options
author | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-09 02:10:29 +0000 |
---|---|---|
committer | markster <markster@f38db490-d61c-443f-a65b-d21fe96a405b> | 2003-04-09 02:10:29 +0000 |
commit | 6275b6092f595030b029ad7cbe665fa03ebddf50 (patch) | |
tree | 105ace4a237f8b32917d78da8e1199987fdac22b /file.c | |
parent | 34a25ffc0a705b36c862afa3454c060793b846cd (diff) |
Make voicemail timeout configurable
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@790 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'file.c')
-rwxr-xr-x | file.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |