mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-06 12:36:58 +00:00
make sure a reponse is sent when setting the EventMask to on (bug #4799)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6214 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -402,7 +402,7 @@ static int ast_strings_to_mask(char *string)
|
|||||||
else if (!strcasecmp(string, "off") || ast_false(string))
|
else if (!strcasecmp(string, "off") || ast_false(string))
|
||||||
ret = 0;
|
ret = 0;
|
||||||
else if (!strcasecmp(string, "on") || ast_true(string))
|
else if (!strcasecmp(string, "on") || ast_true(string))
|
||||||
ret = -1;
|
ret = 1;
|
||||||
else {
|
else {
|
||||||
ret = 0;
|
ret = 0;
|
||||||
for (x=0; x<sizeof(perms) / sizeof(perms[0]); x++) {
|
for (x=0; x<sizeof(perms) / sizeof(perms[0]); x++) {
|
||||||
|
Reference in New Issue
Block a user