[asterisk-commits] rmudgett: branch 11 r414068 - in /branches/11: ./ channels/chan_dahdi.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri May 16 15:03:52 CDT 2014


Author: rmudgett
Date: Fri May 16 15:03:46 2014
New Revision: 414068

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=414068
Log:
chan_dahdi: Fix analog dialtone detection.

* Check if waitingfordt (waitfordialtone) is enabled in dahdi_read() to
allow the DSP to operate early enough to detect dialtone.

* Made use the correct variable in my_check_waitingfordt().

ASTERISK-23709 #close
Reported by: Steve Davies
Patches:
      dialtone_detect_fix (license #5012) patch uploaded by Steve Davies

Review: https://reviewboard.asterisk.org/r/3534/
........

Merged revisions 414067 from http://svn.asterisk.org/svn/asterisk/branches/1.8

Modified:
    branches/11/   (props changed)
    branches/11/channels/chan_dahdi.c

Propchange: branches/11/
------------------------------------------------------------------------------
Binary property 'branch-1.8-merged' - no diff available.

Modified: branches/11/channels/chan_dahdi.c
URL: http://svnview.digium.com/svn/asterisk/branches/11/channels/chan_dahdi.c?view=diff&rev=414068&r1=414067&r2=414068
==============================================================================
--- branches/11/channels/chan_dahdi.c (original)
+++ branches/11/channels/chan_dahdi.c Fri May 16 15:03:46 2014
@@ -2415,7 +2415,7 @@
 {
 	struct dahdi_pvt *p = pvt;
 
-	if (p->waitingfordt.tv_usec) {
+	if (p->waitingfordt.tv_sec) {
 		return 1;
 	}
 
@@ -9418,7 +9418,7 @@
 #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 */
 		) {




More information about the asterisk-commits mailing list