Accept "defaultexpirey" too

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@849 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer
2003-04-14 19:18:49 +00:00
parent 4fef1b32cd
commit 3fddf10c3e

View File

@@ -5101,7 +5101,7 @@ static int reload_config(void)
max_expiry = atoi(v->value);
if (max_expiry < 1)
max_expiry = DEFAULT_MAX_EXPIRY;
} else if (!strcasecmp(v->name, "defaultexpiry")) {
} else if (!strcasecmp(v->name, "defaultexpiry") || !strcasecmp(v->name, "defaultexpirey")) {
default_expiry = atoi(v->value);
if (default_expiry < 1)
default_expiry = DEFAULT_DEFAULT_EXPIRY;