From: Mark Spencer Date: Sun, 8 Aug 2004 22:22:30 +0000 (+0000) Subject: Allow on/off (bug #2233) X-Git-Tag: 1.0.0-rc2~7 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7216081447c2dcb4b95ceb4d8d2d86e667248680;p=thirdparty%2Fasterisk.git Allow on/off (bug #2233) git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3597 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/config.c b/config.c index 6a4d106965..a0e290305a 100755 --- 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; }