dect
/
asterisk
Archived
13
0
Fork 0

Debugging improvements (bug #2765)

git-svn-id: http://svn.digium.com/svn/asterisk/trunk@4135 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
markster 2004-11-01 01:44:11 +00:00
parent a28cc1eebd
commit b200ac42b7
3 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);

View File

@ -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;
}