--- apps/app_voicemail.c.orig 2009-08-10 21:30:55.000000000 +0200 +++ apps/app_voicemail.c 2009-08-11 16:25:40.000000000 +0200 @@ -819,6 +819,7 @@ } 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;