dect
/
asterisk
Archived
13
0
Fork 0

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/trunk@219412 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
tilghman 2009-09-18 13:54:51 +00:00
parent 443c110821
commit 4fce81f48a
1 changed files with 1 additions and 0 deletions

View 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;