]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
FSCORE-489
authorBrian West <brian@freeswitch.org>
Tue, 17 Nov 2009 15:26:09 +0000 (15:26 +0000)
committerBrian West <brian@freeswitch.org>
Tue, 17 Nov 2009 15:26:09 +0000 (15:26 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@15493 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/switch_rtp.c

index d956bf0b1c0005058ff7fb58b1419b59020b060e..de3bf129af43c94bc6e4505cdc94b25cff3a63db 100644 (file)
@@ -2797,7 +2797,7 @@ static int rtp_common_write(switch_rtp_t *rtp_session,
                rtp_session->stats.outbound.raw_bytes += bytes;
                rtp_session->stats.outbound.packet_count++;
 
-               if (send_msg->header.pt == rtp_session->cng_pt) {
+               if (rtp_session->cng_pt && send_msg->header.pt == rtp_session->cng_pt) {
                        rtp_session->stats.outbound.cng_packet_count++;
                } else {
                        rtp_session->stats.outbound.media_packet_count++;