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:
Mark Spencer
2003-04-09 02:10:29 +00:00
parent 2758349cae
commit be1d78a3ea
4 changed files with 13 additions and 5 deletions

View File

@@ -1471,7 +1471,11 @@ forward_message(struct ast_channel *chan, struct ast_config *cfg, char *dir, int
#define WAITFILE(file) do { \
if (ast_streamfile(chan, file, chan->language)) \
ast_log(LOG_WARNING, "Unable to play message %s\n", file); \
d = ast_waitstream_fr(chan, AST_DIGIT_ANY, "#", "*"); \
if ((s = ast_variable_retrieve(cfg, "general", "skipms"))) { \
if (sscanf(s, "%d", &x) == 1) \
ms = x; \
} \
d = ast_waitstream_fr(chan, AST_DIGIT_ANY, "#", "*",ms); \
if (!d) { \
repeats = 0; \
goto instructions; \
@@ -1721,6 +1725,7 @@ static int vm_execmain(struct ast_channel *chan, void *data)
int useadsi = 0;
int skipuser = 0;
char *s;
int ms = 3000;
int maxgreet = 0;
char tmp[256], *ext;
struct ast_config *cfg;