[svn-commits] branch 1.2 - r7233 /branches/1.2/rtp.c

svn-commits at lists.digium.com svn-commits at lists.digium.com
Wed Nov 30 08:28:00 CST 2005


Author: russell
Date: Wed Nov 30 08:27:59 2005
New Revision: 7233

URL: http://svn.digium.com/view/asterisk?rev=7233&view=rev
Log:
do not allow an rtp message with zero type (issue #5749)

Modified:
    branches/1.2/rtp.c

Modified: branches/1.2/rtp.c
URL: http://svn.digium.com/view/asterisk/branches/1.2/rtp.c?rev=7233&r1=7232&r2=7233&view=diff
==============================================================================
--- branches/1.2/rtp.c (original)
+++ branches/1.2/rtp.c Wed Nov 30 08:27:59 2005
@@ -299,7 +299,7 @@
 		}
 		resp = 0;
 		duration = 0;
-	} else if(rtp->dtmfduration && (duration < rtp->dtmfduration)) {
+	} else if (rtp->resp && rtp->dtmfduration && (duration < rtp->dtmfduration)) {
 		f = send_dtmf(rtp);
 	}
 	if (!(event_end & 0x80))



More information about the svn-commits mailing list