[asterisk-commits] file: trunk r41338 - /trunk/main/rtp.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Wed Aug 30 07:57:06 MST 2006


Author: file
Date: Wed Aug 30 09:57:06 2006
New Revision: 41338

URL: http://svn.digium.com/view/asterisk?rev=41338&view=rev
Log:
Only feed a DTMF frame into the core if we need to

Modified:
    trunk/main/rtp.c

Modified: trunk/main/rtp.c
URL: http://svn.digium.com/view/asterisk/trunk/main/rtp.c?rev=41338&r1=41337&r2=41338&view=diff
==============================================================================
--- trunk/main/rtp.c (original)
+++ trunk/main/rtp.c Wed Aug 30 09:57:06 2006
@@ -980,7 +980,7 @@
 	rtpPT = ast_rtp_lookup_pt(rtp, payload);
 
 	/* If the payload is DTMF, and we are listening for DTMF - then feed it into the core */
-	if (!rtpPT.isAstFormat && rtpPT.code == AST_RTP_DTMF)
+	if (ast_test_flag(rtp, FLAG_P2P_NEED_DTMF) && !rtpPT.isAstFormat && rtpPT.code == AST_RTP_DTMF)
 		return -1;
 
 	/* Otherwise adjust bridged payload to match */



More information about the asterisk-commits mailing list