mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-30 02:26:23 +00:00
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:
6
config.c
6
config.c
@@ -109,7 +109,8 @@ int ast_true(char *s)
|
|||||||
!strcasecmp(s, "true") ||
|
!strcasecmp(s, "true") ||
|
||||||
!strcasecmp(s, "y") ||
|
!strcasecmp(s, "y") ||
|
||||||
!strcasecmp(s, "t") ||
|
!strcasecmp(s, "t") ||
|
||||||
!strcasecmp(s, "1"))
|
!strcasecmp(s, "1") ||
|
||||||
|
!strcasecmp(s, "on"))
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
@@ -123,7 +124,8 @@ int ast_false(char *s)
|
|||||||
!strcasecmp(s, "false") ||
|
!strcasecmp(s, "false") ||
|
||||||
!strcasecmp(s, "n") ||
|
!strcasecmp(s, "n") ||
|
||||||
!strcasecmp(s, "f") ||
|
!strcasecmp(s, "f") ||
|
||||||
!strcasecmp(s, "0"))
|
!strcasecmp(s, "0") ||
|
||||||
|
!strcasecmp(s, "off"))
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user