Debugging improvements (bug #2765)
authorMark Spencer <markster@digium.com>
Mon, 1 Nov 2004 01:44:11 +0000 (01:44 +0000)
committerMark Spencer <markster@digium.com>
Mon, 1 Nov 2004 01:44:11 +0000 (01:44 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@4135 65c4cc65-6c06-0410-ace0-fbb531ad65f3

channel.c
channels/chan_agent.c
channels/chan_zap.c

index 9ef5c90..a4a8578 100755 (executable)
--- a/channel.c
+++ b/channel.c
@@ -1556,6 +1556,7 @@ int ast_prod(struct ast_channel *chan)
                ast_log(LOG_DEBUG, "Prodding channel '%s'\n", chan->name);
                a.subclass = chan->pvt->rawwriteformat;
                a.data = nothing + AST_FRIENDLY_OFFSET;
+               a.src = "ast_prod";
                if (ast_write(chan, &a))
                        ast_log(LOG_WARNING, "Prodding channel '%s' failed\n", chan->name);
        }
index 8e596a4..b81a6d8 100755 (executable)
@@ -1401,6 +1401,7 @@ static int __login_exec(struct ast_channel *chan, void *data, int callbackmode)
                                                                        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 b544add..5708c0e 100755 (executable)
@@ -1232,7 +1232,7 @@ static void zt_enable_ec(struct zt_pvt *p)
                        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 @@ static int zt_indicate(struct ast_channel *chan, int condition)
        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 @@ static struct zt_pvt *mkintf(int channel, int signalling, int radio, struct zt_p
                                        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;
                                }