mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-04 11:58:52 +00:00
Instead of depending on the return value of ast_true(), explicitly set the
eventwhencalled variable to 1. git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.4@89844 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -1016,7 +1016,7 @@ static void queue_set_param(struct call_queue *q, const char *param, const char
|
||||
if (!strcasecmp(val, "vars")) {
|
||||
q->eventwhencalled = QUEUE_EVENT_VARIABLES;
|
||||
} else {
|
||||
q->eventwhencalled = -(ast_true(val));
|
||||
q->eventwhencalled = ast_true(val) ? 1 : 0;
|
||||
}
|
||||
} else if (!strcasecmp(param, "reportholdtime")) {
|
||||
q->reportholdtime = ast_true(val);
|
||||
|
Reference in New Issue
Block a user