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:
Russell Bryant
2007-11-27 23:21:13 +00:00
parent 3df74ed9ac
commit a5c9a71b4e

View File

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