Missing value setting line for maxsecs/maxmessage
[asterisk/asterisk.git] / apps / app_voicemail.c
index a48e6f1..477ae07 100644 (file)
@@ -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;