[Asterisk-cvs] asterisk/apps app_dial.c,1.106,1.107
markster at lists.digium.com
markster at lists.digium.com
Sun Nov 21 15:38:42 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv30053/apps
Modified Files:
app_dial.c
Log Message:
Little fixups for busy
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.106
retrieving revision 1.107
diff -u -d -r1.106 -r1.107
--- app_dial.c 21 Nov 2004 20:27:21 -0000 1.106
+++ app_dial.c 21 Nov 2004 20:38:32 -0000 1.107
@@ -143,13 +143,16 @@
if (bleh->cdr) \
ast_cdr_busy(bleh->cdr); \
numbusy++; \
+ break; \
case AST_CAUSE_CONGESTION: \
case AST_CAUSE_UNREGISTERED: \
if (bleh->cdr) \
ast_cdr_busy(bleh->cdr); \
numcongestion++; \
+ break; \
default: \
numnochan++; \
+ break; \
} \
} while(0)
@@ -162,6 +165,7 @@
int numbusy = busystart;
int numcongestion = congestionstart;
int numnochan = nochanstart;
+ int prestart = busystart + congestionstart + nochanstart;
int cause;
int orig = *to;
struct ast_frame *f;
@@ -185,7 +189,7 @@
o = outgoing;
found = -1;
pos = 1;
- numlines = 0;
+ numlines = prestart;
watchers[0] = in;
while(o) {
/* Keep track of important channels */
@@ -211,7 +215,7 @@
in->priority+=100;
} else {
if (option_verbose > 2)
- ast_verbose( VERBOSE_PREFIX_2 "No one is available to answer at this time\n");
+ ast_verbose( VERBOSE_PREFIX_2 "No one is available to answer at this time (%d, %d/%d/%d)\n", numlines, numbusy, numcongestion, numnochan);
}
*to = 0;
return NULL;
More information about the svn-commits
mailing list