]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Merged revisions 219412 via svnmerge from
authorTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Sep 2009 13:57:07 +0000 (13:57 +0000)
committerTilghman Lesher <tilghman@meg.abyt.es>
Fri, 18 Sep 2009 13:57:07 +0000 (13:57 +0000)
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.0@219413 65c4cc65-6c06-0410-ace0-fbb531ad65f3

apps/app_voicemail.c

index c8d90bb59abad81cf3ffadefe38e917f2ab36b55..8c9877d31360b39c15b88a2af41acea1b0e3aa6c 100644 (file)
@@ -769,6 +769,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(LOG_WARNING, "Invalid max message length of %s. Using global value %d\n", value, vmmaxsecs);
                        vmu->maxsecs = vmmaxsecs;