[asterisk-commits] russell: branch group/vldtmf_fixup r51203 - /team/group/vldtmf_fixup/main/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Jan 17 14:49:32 MST 2007


Author: russell
Date: Wed Jan 17 15:49:32 2007
New Revision: 51203

URL: http://svn.digium.com/view/asterisk?view=rev&rev=51203
Log:
only let ast_sennddigit() send a BEGIN frame if the channel has not been told
to only send END frames

Modified:
    team/group/vldtmf_fixup/main/channel.c

Modified: team/group/vldtmf_fixup/main/channel.c
URL: http://svn.digium.com/view/asterisk/team/group/vldtmf_fixup/main/channel.c?view=diff&rev=51203&r1=51202&r2=51203
==============================================================================
--- team/group/vldtmf_fixup/main/channel.c (original)
+++ team/group/vldtmf_fixup/main/channel.c Wed Jan 17 15:49:32 2007
@@ -2473,9 +2473,10 @@
 
 int ast_senddigit(struct ast_channel *chan, char digit)
 {
-	ast_senddigit_begin(chan, digit);
-	
-	ast_safe_sleep(chan, 100); /* XXX 100ms ... probably should be configurable */
+	if (!ast_test_flag(chan, AST_FLAG_END_DTMF_ONLY)) {
+		ast_senddigit_begin(chan, digit);
+		ast_safe_sleep(chan, 100); /* XXX 100ms ... probably should be configurable */
+	}
 	
 	return ast_senddigit_end(chan, digit, 100);
 }



More information about the asterisk-commits mailing list