diff -u -r orig/asterisk-1.4.21.2/channels/chan_zap.c asterisk-1.4.21.2/channels/chan_zap.c --- orig/asterisk-1.4.21.2/channels/chan_zap.c 2008-09-19 11:47:47.000000000 -0300 +++ asterisk-1.4.21.2/channels/chan_zap.c 2008-09-19 11:38:19.000000000 -0300 @@ -4924,7 +4925,10 @@ } else if (f->frametype == AST_FRAME_VOICE) { f->frametype = AST_FRAME_NULL; f->subclass = 0; - if (ast_dsp_get_tstate(p->dsp) == DSP_TONE_STATE_DIALTONE && ast_dsp_get_tcount(p->dsp) > 9) { + if ((ast_dsp_get_tstate(p->dsp) == DSP_TONE_STATE_DIALTONE && ast_dsp_get_tcount(p->dsp) > 9) || + (ast_dsp_get_tstate(p->dsp) == DSP_TONE_STATE_RINGING && ast_dsp_get_tcount(p->dsp) > 9)) { p->waitingfordt.tv_sec = 0; p->dsp_features &= ~DSP_FEATURE_WAITDIALTONE; ast_dsp_set_features(p->dsp, p->dsp_features); @@ -10106,6 +10111,7 @@ ast_cli(fd, "Fax Handled: %s\n", tmp->faxhandled ? "yes" : "no"); ast_cli(fd, "Pulse phone: %s\n", tmp->pulsedial ? "yes" : "no"); ast_cli(fd, "Echo Cancellation: %d taps%s, currently %s\n", tmp->echocancel, tmp->echocanbridged ? "" : " unless TDM bridged", tmp->echocanon ? "ON" : "OFF"); + ast_cli(fd, "Wait for dialtone: %dms\n", tmp->waitfordialtone); if (tmp->master) ast_cli(fd, "Master Channel: %d\n", tmp->master->channel); for (x = 0; x < MAX_SLAVES; x++) {