Allow on/off (bug #2233)

git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@3597 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Mark Spencer 2004-08-08 22:22:30 +00:00
parent 7acee329e1
commit 7216081447
1 changed files with 4 additions and 2 deletions

View File

@ -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;
}