[svn-commits] trunk r8852 - /trunk/channel.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Tue Jan 31 14:20:19 MST 2006


Author: kpfleming
Date: Sat Jan 28 23:29:29 2006
New Revision: 8852

URL: http://svn.digium.com/view/asterisk?rev=8852&view=rev
Log:
don't use tone generation for DTMF if the channel driver only supports begin/end (will need more work to translate non-variable events into begin/end events)

Modified:
    trunk/channel.c

Modified: trunk/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/channel.c?rev=8852&r1=8851&r2=8852&view=diff
==============================================================================
--- trunk/channel.c (original)
+++ trunk/channel.c Sat Jan 28 23:29:29 2006
@@ -2184,7 +2184,8 @@
 
 	if (chan->tech->send_digit)
 		res = chan->tech->send_digit(chan, digit);
-	if (!chan->tech->send_digit || res) {
+	if (!(chan->tech->send_digit && chan->tech->send_digit_begin) ||
+	    res) {
 		/*
 		 * Device does not support DTMF tones, lets fake
 		 * it by doing our own generation. (PM2002)



More information about the svn-commits mailing list