diff options
author | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-09-18 13:54:51 +0000 |
---|---|---|
committer | Tilghman Lesher <tilghman@meg.abyt.es> | 2009-09-18 13:54:51 +0000 |
commit | 340d4b1a93aafac49330258036d6755a9fa92d1b (patch) | |
tree | f876ea017cb5d848985b0af22df2714e78a6386d /apps | |
parent | 06782af23825f3496c79728d6f83e350e385d3e0 (diff) |
Missing value setting line for maxsecs/maxmessage
(closes issue #15696)
Reported by: fhackenberger
Patches:
maxsecs.patch uploaded by fhackenberger (license 592)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@219412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_voicemail.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index a48e6f1e8..477ae0741 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -943,6 +943,7 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v } else if (!strcasecmp(var, "exitcontext")) { ast_copy_string(vmu->exit, value, sizeof(vmu->exit)); } else if (!strcasecmp(var, "maxmessage") || !strcasecmp(var, "maxsecs")) { + vmu->maxsecs = atoi(value); if (vmu->maxsecs <= 0) { ast_log(AST_LOG_WARNING, "Invalid max message length of %s. Using global value %d\n", value, vmmaxsecs); vmu->maxsecs = vmmaxsecs; |