[Asterisk-cvs] asterisk/apps app_dial.c,1.111,1.112
markster at lists.digium.com
markster at lists.digium.com
Sun Dec 12 00:01:03 CST 2004
Update of /usr/cvsroot/asterisk/apps
In directory mongoose.digium.com:/tmp/cvs-serv27030/apps
Modified Files:
app_dial.c
Log Message:
fix DIALSTATUS issue (bug #2989)
Index: app_dial.c
===================================================================
RCS file: /usr/cvsroot/asterisk/apps/app_dial.c,v
retrieving revision 1.111
retrieving revision 1.112
diff -u -d -r1.111 -r1.112
--- app_dial.c 6 Dec 2004 17:12:21 -0000 1.111
+++ app_dial.c 12 Dec 2004 04:58:07 -0000 1.112
@@ -146,17 +146,17 @@
#define AST_MAX_WATCHERS 256
-#define HANDLE_CAUSE(blah, bleh) do { \
+#define HANDLE_CAUSE(cause, chan) do { \
switch(cause) { \
case AST_CAUSE_BUSY: \
- if (bleh->cdr) \
- ast_cdr_busy(bleh->cdr); \
+ if (chan->cdr) \
+ ast_cdr_busy(chan->cdr); \
numbusy++; \
break; \
case AST_CAUSE_CONGESTION: \
case AST_CAUSE_UNREGISTERED: \
- if (bleh->cdr) \
- ast_cdr_busy(bleh->cdr); \
+ if (chan->cdr) \
+ ast_cdr_busy(chan->cdr); \
numcongestion++; \
break; \
default: \
@@ -212,7 +212,7 @@
if (found < 0) {
if (numlines == (numbusy + numcongestion + numnochan)) {
if (option_verbose > 2)
- ast_verbose( VERBOSE_PREFIX_2 "Everyone is busy/congested at this time\n");
+ ast_verbose( VERBOSE_PREFIX_2 "Everyone is busy/congested at this time (%d:%d/%d/%d)\n", numlines, numbusy, numcongestion, numnochan);
if (numbusy)
strncpy(status, "BUSY", statussize - 1);
else if (numcongestion)
@@ -224,7 +224,7 @@
in->priority+=100;
} else {
if (option_verbose > 2)
- ast_verbose( VERBOSE_PREFIX_2 "No one is available to answer at this time (%d, %d/%d/%d)\n", numlines, numbusy, numcongestion, numnochan);
+ 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