diff options
author | Russell Bryant <russell@russellbryant.com> | 2007-11-27 23:21:38 +0000 |
---|---|---|
committer | Russell Bryant <russell@russellbryant.com> | 2007-11-27 23:21:38 +0000 |
commit | 63bca744a2eab5a4f48f73ca80554f94f7883f18 (patch) | |
tree | 30de5650e15002a9422fc788b753e7d061c1261d /apps | |
parent | 79bc5ede5f38e1805fa5c0c51649c876c974a43b (diff) |
Merged revisions 89844 via svnmerge from
https://origsvn.digium.com/svn/asterisk/branches/1.4
........
r89844 | russell | 2007-11-27 17:21:13 -0600 (Tue, 27 Nov 2007) | 3 lines
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/trunk@89847 65c4cc65-6c06-0410-ace0-fbb531ad65f3
Diffstat (limited to 'apps')
-rw-r--r-- | apps/app_queue.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/app_queue.c b/apps/app_queue.c index d80641022..b24200c5e 100644 --- a/apps/app_queue.c +++ b/apps/app_queue.c @@ -1112,7 +1112,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); |