[Asterisk-cvs] asterisk/apps app_queue.c,1.51,1.52
markster at lists.digium.com
markster at lists.digium.com
Tue Mar 23 16:49:09 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv12943/apps
Modified Files:
app_queue.c
Log Message:
Improve verbose messages
Index: app_queue.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_queue.c,v
retrieving revision 1.51
retrieving revision 1.52
diff -u -d -r1.51 -r1.52
--- app_queue.c 13 Mar 2004 06:00:41 -0000 1.51
+++ app_queue.c 23 Mar 2004 21:45:38 -0000 1.52
@@ -371,7 +371,8 @@
/* Round hold time to nearest minute */
avgholdmins = ( (qe->parent->holdtime + 30) - (now - qe->start) ) / 60;
- ast_verbose(VERBOSE_PREFIX_3 "Hold time for %s is %d minutes\n", qe->parent->name, avgholdmins);
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Hold time for %s is %d minutes\n", qe->parent->name, avgholdmins);
/* If the hold time is >1 min, if it's enabled, and if it's not
supposed to be only once and we have already said it, say it */
@@ -386,7 +387,8 @@
qe->last_pos = now;
qe->last_pos_said = qe->pos;
- ast_verbose(VERBOSE_PREFIX_3 "Told %s in %s their queue position (which was %d)\n", qe->chan->name, qe->parent->name, qe->pos);
+ if (option_verbose > 2)
+ ast_verbose(VERBOSE_PREFIX_3 "Told %s in %s their queue position (which was %d)\n", qe->chan->name, qe->parent->name, qe->pos);
res += play_file(qe->chan, qe->parent->sound_thanks);
ast_moh_start(qe->chan, qe->moh);
@@ -719,7 +721,7 @@
}
if (f && (f->frametype == AST_FRAME_DTMF) && allowdisconnect && (f->subclass == '*')) {
if (option_verbose > 3)
- ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
+ ast_verbose(VERBOSE_PREFIX_3 "User hit %c to disconnect call.\n", f->subclass);
*to=0;
return NULL;
}
@@ -1408,6 +1410,10 @@
}
/* exit after 'timeout' cycle if 'n' option enabled */
if (go_on) {
+ if (option_verbose > 2) {
+ ast_verbose(VERBOSE_PREFIX_3 "Exiting on time-out cycle\n");
+ res = -1;
+ }
ast_queue_log(queuename, chan->uniqueid, "NONE", "EXITWITHTIMEOUT", "%d", qe.pos);
res = 0;
break;
More information about the svn-commits
mailing list