diff options
author | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2014-03-24 10:35:14 +0200 |
---|---|---|
committer | Lyubomir Marinov <lyubomir.marinov@jitsi.org> | 2014-03-24 10:35:14 +0200 |
commit | 1cc5494e9adf6fb25acfa69cfa1e586866549b9a (patch) | |
tree | e035169543d0f28d4c4ad0abab27556372adc09e /src/net/java/sip/communicator/service/protocol/media | |
parent | f5cb93e794fa5e5f78baa29f9b185d703b14f9e5 (diff) | |
download | jitsi-1cc5494e9adf6fb25acfa69cfa1e586866549b9a.zip jitsi-1cc5494e9adf6fb25acfa69cfa1e586866549b9a.tar.gz jitsi-1cc5494e9adf6fb25acfa69cfa1e586866549b9a.tar.bz2 |
Fixes a failure to take into account the user's preference with respect to utilized port ranges in XMPP calls. Reported by Mitchell Langs.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol/media')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/media/TransportManager.java | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/media/TransportManager.java b/src/net/java/sip/communicator/service/protocol/media/TransportManager.java index 3be2a98..419a001 100644 --- a/src/net/java/sip/communicator/service/protocol/media/TransportManager.java +++ b/src/net/java/sip/communicator/service/protocol/media/TransportManager.java @@ -237,9 +237,6 @@ public abstract class TransportManager<U extends MediaAwareCallPeer<?, ?, ?>> InetAddress intendedDestination = getIntendedDestination(getCallPeer());
InetAddress localHostForPeer = nam.getLocalHost(intendedDestination);
- //make sure our port numbers reflect the configuration service settings
- initializePortNumbers();
-
PortTracker portTracker = getPortTracker(mediaType);
//create the RTP socket.
@@ -589,15 +586,19 @@ public abstract class TransportManager<U extends MediaAwareCallPeer<?, ?, ?>> */
protected static PortTracker getPortTracker(MediaType mediaType)
{
- if (MediaType.AUDIO == mediaType)
+ //make sure our port numbers reflect the configuration service settings
+ initializePortNumbers();
+
+ switch (mediaType)
{
+ case AUDIO:
if (audioPortTracker != null)
return audioPortTracker;
- }
- else if (MediaType.VIDEO == mediaType)
- {
+ break;
+ case VIDEO:
if (videoPortTracker != null)
return videoPortTracker;
+ break;
}
return defaultPortTracker;
|