From: Tilghman Lesher Date: Fri, 18 Sep 2009 13:57:13 +0000 (+0000) Subject: Merged revisions 219412 via svnmerge from X-Git-Tag: 1.6.1.7-rc2~44 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f7ea3005d22d8636699a9282f8d6567a5f8bc99f;p=thirdparty%2Fasterisk.git 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: https://origsvn.digium.com/svn/asterisk/branches/1.6.1@219414 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/apps/app_voicemail.c b/apps/app_voicemail.c index 641f5ecb36..429ed3e295 100644 --- a/apps/app_voicemail.c +++ b/apps/app_voicemail.c @@ -820,6 +820,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;