diff --git a/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java b/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java index 560eee988..2402b4a63 100644 --- a/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java +++ b/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java @@ -118,7 +118,7 @@ public byte obtainPayloadTypeNumber(MediaFormat format) break; } } -System.out.println("payloadType="+payloadType + " for format="+format); + //seems like we haven't allocated a payload type for this format yet. //lets try to do so now. if (payloadType == null) @@ -127,7 +127,7 @@ public byte obtainPayloadTypeNumber(MediaFormat format) //this format would like to have (e.g. "telephone-event" generally //loves to be called "101"). Byte preferredPT = getPreferredDynamicPayloadType(format); -System.out.println("preferredPT="+preferredPT); + if(preferredPT != null && findFormat(preferredPT) == null) { //the format has a preference and it's free