[asterisk-commits] mmichelson: branch 1.4 r89837 - /branches/1.4/apps/app_queue.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Nov 27 17:10:05 CST 2007
Author: mmichelson
Date: Tue Nov 27 17:10:05 2007
New Revision: 89837
URL: http://svn.digium.com/view/asterisk?view=rev&rev=89837
Log:
Two changes with regards to the 'eventwhencalled' option of queues.conf
1) Due to some signed vs. unsigned silliness, setting 'eventwhencalled' to
'vars' or 'yes' did exactly the same thing. Thus the sign change of the
ast_true call.
2) The vars2manager function overwrote a \n for every channel variable it parsed, resulting
in bizarre output for the channel variables. This patch remedies this.
(related to issue #11385, however I'm not sure if this will actually be enough to close it)
Modified:
branches/1.4/apps/app_queue.c
Modified: branches/1.4/apps/app_queue.c
URL: http://svn.digium.com/view/asterisk/branches/1.4/apps/app_queue.c?view=diff&rev=89837&r1=89836&r2=89837
==============================================================================
--- branches/1.4/apps/app_queue.c (original)
+++ branches/1.4/apps/app_queue.c Tue Nov 27 17:10:05 2007
@@ -1016,7 +1016,7 @@
if (!strcasecmp(val, "vars")) {
q->eventwhencalled = QUEUE_EVENT_VARIABLES;
} else {
- q->eventwhencalled = ast_true(val);
+ q->eventwhencalled = -(ast_true(val));
}
} else if (!strcasecmp(param, "reportholdtime")) {
q->reportholdtime = ast_true(val);
@@ -1739,8 +1739,8 @@
if (tmp[i + 1] == '\0')
break;
if (tmp[i] == '\n') {
- vars[j] = '\r';
- vars[++j] = '\n';
+ vars[j++] = '\r';
+ vars[j++] = '\n';
ast_copy_string(&(vars[j]), "Variable: ", len - j);
j += 9;
More information about the asterisk-commits
mailing list