Accept "defaultexpirey" too
authorMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 19:18:49 +0000 (19:18 +0000)
committerMark Spencer <markster@digium.com>
Mon, 14 Apr 2003 19:18:49 +0000 (19:18 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@849 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channels/chan_sip.c

index 9be6056..89b5cf7 100755 (executable)
@@ -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;