aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/service/protocol/media
diff options
context:
space:
mode:
authorLyubomir Marinov <lyubomir.marinov@jitsi.org>2014-03-24 10:35:14 +0200
committerLyubomir Marinov <lyubomir.marinov@jitsi.org>2014-03-24 10:35:14 +0200
commit1cc5494e9adf6fb25acfa69cfa1e586866549b9a (patch)
treee035169543d0f28d4c4ad0abab27556372adc09e /src/net/java/sip/communicator/service/protocol/media
parentf5cb93e794fa5e5f78baa29f9b185d703b14f9e5 (diff)
downloadjitsi-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.java15
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;