mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-13 16:21:01 +00:00
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/trunk@219412 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -943,6 +943,7 @@ static void apply_option(struct ast_vm_user *vmu, const char *var, const char *v
|
|||||||
} else if (!strcasecmp(var, "exitcontext")) {
|
} else if (!strcasecmp(var, "exitcontext")) {
|
||||||
ast_copy_string(vmu->exit, value, sizeof(vmu->exit));
|
ast_copy_string(vmu->exit, value, sizeof(vmu->exit));
|
||||||
} else if (!strcasecmp(var, "maxmessage") || !strcasecmp(var, "maxsecs")) {
|
} else if (!strcasecmp(var, "maxmessage") || !strcasecmp(var, "maxsecs")) {
|
||||||
|
vmu->maxsecs = atoi(value);
|
||||||
if (vmu->maxsecs <= 0) {
|
if (vmu->maxsecs <= 0) {
|
||||||
ast_log(AST_LOG_WARNING, "Invalid max message length of %s. Using global value %d\n", value, vmmaxsecs);
|
ast_log(AST_LOG_WARNING, "Invalid max message length of %s. Using global value %d\n", value, vmmaxsecs);
|
||||||
vmu->maxsecs = vmmaxsecs;
|
vmu->maxsecs = vmmaxsecs;
|
||||||
|
Reference in New Issue
Block a user