Author: russell
Date: Fri Jul 20 13:22:24 2007
New Revision: 76132

URL: http://svn.digium.com/view/asterisk?view=rev&rev=76132
Log:
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:
    branches/1.4/main/channel.c

Modified: branches/1.4/main/channel.c
URL: 
http://svn.digium.com/view/asterisk/branches/1.4/main/channel.c?view=diff&rev=76132&r1=76131&r2=76132
==============================================================================
--- branches/1.4/main/channel.c (original)
+++ branches/1.4/main/channel.c Fri Jul 20 13:22:24 2007
@@ -2710,10 +2710,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)


_______________________________________________
--Bandwidth and Colocation Provided by http://www.api-digital.com--

svn-commits mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/svn-commits

Reply via email to