Improves payload type overriding for SIP/XMPP so that it would remove payload type overrides when necessary.

cusax-fix
Emil Ivov 14 years ago
parent cf56f9fcf6
commit f7ab3fb813

@ -166,7 +166,7 @@ public static SessionDescription createSessionDescription(
//o
if (userName == null)
userName = "sip-communicator";
userName = "jitsi.org";
Origin o = sdpFactory.createOrigin(
userName, 0, 0, "IN", addrType, localAddress.getHostAddress());

@ -243,7 +243,10 @@ public void addMapping(MediaFormat format, byte payloadType)
if(alreadyMappedFmt.matches(format))
{
//we already have the exact same mapping, so no need to
//create a new one override the old PT number.
//create a new one override the old PT number. However, there
//might be a leftover override from a previous mapping so let's
//remove it if this is the case.
payloadTypeOverrides.remove(payloadType);
return;
}
//else:

Loading…
Cancel
Save