[asterisk-commits] file: branch group/vldtmf r40334 - /team/group/vldtmf/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Thu Aug 17 15:29:41 MST 2006


Author: file
Date: Thu Aug 17 17:29:40 2006
New Revision: 40334

URL: http://svn.digium.com/view/asterisk?rev=40334&view=rev
Log:
That's all I wrote

Modified:
    team/group/vldtmf/rtp.c

Modified: team/group/vldtmf/rtp.c
URL: http://svn.digium.com/view/asterisk/team/group/vldtmf/rtp.c?rev=40334&r1=40333&r2=40334&view=diff
==============================================================================
--- team/group/vldtmf/rtp.c (original)
+++ team/group/vldtmf/rtp.c Thu Aug 17 17:29:40 2006
@@ -664,12 +664,11 @@
 		resp = 'X';	
 	}
 
-	if (((!(rtp->resp) && (!(event_end & 0x80))) || (rtp->resp && rtp->resp != resp)) && !ast_test_flag(rtp, FLAG_DTMF_COMPENSATE)) {
+	if ((!(rtp->resp) && (!(event_end & 0x80))) || (rtp->resp && rtp->resp != resp)) {
 		rtp->resp = resp;
-		f = send_dtmf(rtp, AST_FRAME_DTMF_BEGIN);
-	} else if (event_end & 0x80 && rtp->lasteventendseqn != seqno) {
-		if (ast_test_flag(rtp,  FLAG_DTMF_COMPENSATE))
-			rtp->resp = resp;
+		if (!ast_test_flag(rtp, FLAG_DTMF_COMPENSATE))
+			f = send_dtmf(rtp, AST_FRAME_DTMF_BEGIN);
+	} else if (event_end & 0x80 && rtp->lasteventendseqn != seqno && rtp->resp) {
 		f = send_dtmf(rtp, AST_FRAME_DTMF_END);
 		rtp->resp = 0;
 		rtp->lasteventendseqn = seqno;



More information about the asterisk-commits mailing list