]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
Allow on/off (bug #2233)
authorMark Spencer <markster@digium.com>
Sun, 8 Aug 2004 22:22:30 +0000 (22:22 +0000)
committerMark Spencer <markster@digium.com>
Sun, 8 Aug 2004 22:22:30 +0000 (22:22 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3597 65c4cc65-6c06-0410-ace0-fbb531ad65f3

config.c

index 6a4d10696580d14e1b910296c21f0448cec83e17..a0e290305a5b9fae7a011ad19e8ce44022228b28 100755 (executable)
--- a/config.c
+++ b/config.c
@@ -109,7 +109,8 @@ int ast_true(char *s)
            !strcasecmp(s, "true") ||
                !strcasecmp(s, "y") ||
                !strcasecmp(s, "t") ||
-               !strcasecmp(s, "1"))
+               !strcasecmp(s, "1") ||
+               !strcasecmp(s, "on"))
                        return -1;
        return 0;
 }
@@ -123,7 +124,8 @@ int ast_false(char *s)
            !strcasecmp(s, "false") ||
                !strcasecmp(s, "n") ||
                !strcasecmp(s, "f") ||
-               !strcasecmp(s, "0"))
+               !strcasecmp(s, "0") ||
+               !strcasecmp(s, "off"))
                        return -1;
        return 0;
 }