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 /apps | |
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 'apps')
-rwxr-xr-x | apps/app_voicemail.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 0a95e5dd6..b7875d080 100755 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -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; |