[asterisk-commits] irroot: branch irroot/app_queue-trunk r322179 - /team/irroot/app_queue-trunk/...
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 7 03:54:15 CDT 2011
Author: irroot
Date: Tue Jun 7 03:54:10 2011
New Revision: 322179
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=322179
Log:
Some Code Fixups
Modified:
team/irroot/app_queue-trunk/apps/app_queue.c
Modified: team/irroot/app_queue-trunk/apps/app_queue.c
URL: http://svnview.digium.com/svn/asterisk/team/irroot/app_queue-trunk/apps/app_queue.c?view=diff&rev=322179&r1=322178&r2=322179
==============================================================================
--- team/irroot/app_queue-trunk/apps/app_queue.c (original)
+++ team/irroot/app_queue-trunk/apps/app_queue.c Tue Jun 7 03:54:10 2011
@@ -6298,20 +6298,20 @@
} else if (!strcasecmp(args.option, "count") || ast_strlen_zero(args.option)) {
count = q->membercount;
} else if (!strcasecmp(args.option, "penalty") && !ast_strlen_zero(args.interface) &&
- ((m = interface_exists(q, args.interface))) {
+ ((m = interface_exists(q, args.interface)))) {
count = m->penalty;
} else if (!strcasecmp(args.option, "paused") && !ast_strlen_zero(args.interface) &&
- ((m = interface_exists(q, args.interface))) {
+ ((m = interface_exists(q, args.interface)))) {
count = m->paused;
} else if (!strcasecmp(args.option, "ignorebusy") && !ast_strlen_zero(args.interface) &&
- ((m = interface_exists(q, args.interface))) {
+ ((m = interface_exists(q, args.interface)))) {
count = m->ignorebusy;
- }
}
ao2_unlock(q);
queue_t_unref(q, "Done with temporary reference in QUEUE_MEMBER()");
- } else
+ } else {
ast_log(LOG_WARNING, "queue %s was not found\n", args.queuename);
+ }
snprintf(buf, len, "%d", count);
More information about the asterisk-commits
mailing list