[asterisk-commits] russell: trunk r76138 - in /trunk: ./ main/channel.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Fri Jul 20 13:28:15 CDT 2007


Author: russell
Date: Fri Jul 20 13:28:15 2007
New Revision: 76138

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76138
Log:
Merged revisions 76132 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r76132 | russell | 2007-07-20 13:22:24 -0500 (Fri, 20 Jul 2007) | 6 lines

Use the define that specifies the default length of an artificially created
DTMF digit in the ast_senddigit() function.  The define is set to 100ms by
default, which is the same thing that this function was using.  But, using
the define lets changes take effect in this case, as well as the others where
it was already used.

........

Modified:
    trunk/   (props changed)
    trunk/main/channel.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.4-merged' - no diff available.

Modified: trunk/main/channel.c
URL: http://svn.digium.com/view/asterisk/trunk/main/channel.c?view=diff&rev=76138&r1=76137&r2=76138
==============================================================================
--- trunk/main/channel.c (original)
+++ trunk/main/channel.c Fri Jul 20 13:28:15 2007
@@ -2643,10 +2643,10 @@
 {
 	if (chan->tech->send_digit_begin) {
 		ast_senddigit_begin(chan, digit);
-		ast_safe_sleep(chan, 100); /* XXX 100ms ... probably should be configurable */
-	}
-	
-	return ast_senddigit_end(chan, digit, 100);
+		ast_safe_sleep(chan, AST_DEFAULT_EMULATE_DTMF_DURATION);
+	}
+	
+	return ast_senddigit_end(chan, digit, AST_DEFAULT_EMULATE_DTMF_DURATION);
 }
 
 int ast_prod(struct ast_channel *chan)




More information about the asterisk-commits mailing list