[Asterisk-cvs] asterisk/channels chan_agent.c, 1.88, 1.89 chan_zap.c, 1.371, 1.372

markster at lists.digium.com markster at lists.digium.com
Sun Oct 31 20:41:32 CST 2004


Update of /usr/cvsroot/asterisk/channels
In directory mongoose.digium.com:/tmp/cvs-serv17460/channels

Modified Files:
	chan_agent.c chan_zap.c 
Log Message:
Debugging improvements (bug #2765)


Index: chan_agent.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_agent.c,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -d -r1.88 -r1.89
--- chan_agent.c	26 Oct 2004 22:25:43 -0000	1.88
+++ chan_agent.c	1 Nov 2004 01:44:11 -0000	1.89
@@ -1401,6 +1401,7 @@
 									exten = NULL;
 									pos = 0;
 								} else {
+									ast_log(LOG_WARNING, "Extension '%s@%s' is not valid for automatic login of agent '%s'\n", tmpchan, context && !ast_strlen_zero(context) ? context : "default", p->agent);
 									res = ast_streamfile(chan, "invalid", chan->language);
 									if (!res)
 										res = ast_waitstream(chan, AST_DIGIT_ANY);

Index: chan_zap.c
===================================================================
RCS file: /usr/cvsroot/asterisk/channels/chan_zap.c,v
retrieving revision 1.371
retrieving revision 1.372
diff -u -d -r1.371 -r1.372
--- chan_zap.c	31 Oct 2004 23:34:22 -0000	1.371
+++ chan_zap.c	1 Nov 2004 01:44:11 -0000	1.372
@@ -1232,7 +1232,7 @@
 			ast_log(LOG_DEBUG, "Enabled echo cancellation on channel %d\n", p->channel);
 		}
 	} else
-		ast_log(LOG_DEBUG, "No echocancellation requested\n");
+		ast_log(LOG_DEBUG, "No echo cancellation requested\n");
 }
 
 static void zt_train_ec(struct zt_pvt *p)
@@ -4225,6 +4225,7 @@
 	int index;
 	ast_mutex_lock(&p->lock);
 	index = zt_get_index(chan, p, 0);
+	ast_log(LOG_DEBUG, "Requested indication %d on channel %s\n", condition, chan->name);
 	if (index == SUB_REAL) {
 		switch(condition) {
 		case AST_CONTROL_BUSY:
@@ -6214,7 +6215,7 @@
 					return NULL;
 				}
 				if (p.sigtype != (signalling & 0x3ffff)) {
-					ast_log(LOG_ERROR, "Signalling requested is %s but line is in %s signalling\n", sig2str(signalling), sig2str(p.sigtype));
+					ast_log(LOG_ERROR, "Signalling requested on channel %d is %s but line is in %s signalling\n", channel, sig2str(signalling), sig2str(p.sigtype));
 					destroy_zt_pvt(&tmp);
 					return tmp;
 				}




More information about the svn-commits mailing list