diff --git a/channels/chan_dahdi.c b/channels/chan_dahdi.c index a07501598a..3a37087d9d 100644 --- a/channels/chan_dahdi.c +++ b/channels/chan_dahdi.c @@ -2415,7 +2415,7 @@ static int my_check_waitingfordt(void *pvt) { struct dahdi_pvt *p = pvt; - if (p->waitingfordt.tv_usec) { + if (p->waitingfordt.tv_sec) { return 1; } @@ -9418,7 +9418,7 @@ static struct ast_frame *dahdi_read(struct ast_channel *ast) #if 0 ast_debug(1, "Read %d of voice on %s\n", p->subs[idx].f.datalen, ast->name); #endif - if (p->dialing || p->radio || /* Transmitting something */ + if ((p->dialing && !p->waitingfordt.tv_sec) || p->radio || /* Transmitting something */ (idx && (ast_channel_state(ast) != AST_STATE_UP)) || /* Three-way or callwait that isn't up */ ((idx == SUB_CALLWAIT) && !p->subs[SUB_CALLWAIT].inthreeway) /* Inactive and non-confed call-wait */ ) {