[Freeswitch-svn] [commit] r4481 - freeswitch/trunk/src

Freeswitch SVN anthm at freeswitch.org
Thu Mar 8 10:12:01 EST 2007


Author: anthm
Date: Thu Mar  8 10:12:01 2007
New Revision: 4481

Modified:
   freeswitch/trunk/src/switch_rtp.c

Log:
wip

Modified: freeswitch/trunk/src/switch_rtp.c
==============================================================================
--- freeswitch/trunk/src/switch_rtp.c	(original)
+++ freeswitch/trunk/src/switch_rtp.c	Thu Mar  8 10:12:01 2007
@@ -1434,11 +1434,11 @@
 	if (switch_test_flag(frame, SFF_CNG)) {
 		payload = rtp_session->cng_pt;
 	} else {
-		payload = frame->payload;
-	}
-
-	if (payload) {
-		payload = rtp_session->payload;
+		payload = frame->payload;	
+		if (payload != rtp_session->payload) {
+			switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_WARNING, "payload mismatch %d->%d", payload, rtp_session->payload);
+			payload = rtp_session->payload;
+		}
 	}
 
 	if (fwd && !packetize) {



More information about the Freeswitch-svn mailing list