diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-18 13:57:18 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2009-09-18 13:57:18 +0000 |
commit | 65be14756db891f0980bafbf5eb9f5686a8006db (patch) | |
tree | 187af3793785ce844a9913f1dcec4a5fd218adaa /apps/app_voicemail.c | |
parent | 6fe15ad0f2f29b84ff55ddc330fd5a5240b53441 (diff) |
Merged revisions 219412 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk
........
r219412 | tilghman | 2009-09-18 08:54:51 -0500 (Fri, 18 Sep 2009) | 6 lines
Missing value setting line for maxsecs/maxmessage
(closes issue #15696)
Reported by: fhackenberger
Patches:
maxsecs.patch uploaded by fhackenberger (license 592)
........
git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@219415 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'apps/app_voicemail.c')
-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 7a04c5456..18dea02bc 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -936,6 +936,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; |