public class SipNetworkInterfaceManagerImpl extends Object implements SipNetworkInterfaceManager
| Modifier and Type | Field and Description |
|---|---|
static int |
MAX_PORT_NUMBER
The maximum int value that could correspond to a port nubmer.
|
static int |
MIN_PORT_NUMBER
The minimum int value that could correspond to a port nubmer bindable
by the SIP Communicator.
|
| Constructor and Description |
|---|
SipNetworkInterfaceManagerImpl(SipApplicationDispatcher sipApplicationDispatcher)
Default Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addExtendedListeningPoint(MobicentsExtendedListeningPoint extendedListeningPoint) |
static int |
checkPortRange(int port,
String transport)
Checks if the port is in the UDP-TCP port numbers (0-65355) range
otherwise defaulting to 5060 if UDP, TCP or SCTP or to 5061 if TLS
|
protected void |
computeOutboundInterfaces()
Compute all the outbound interfaces for this manager
|
MobicentsExtendedListeningPoint |
findMatchingListeningPoint(javax.sip.address.SipURI outboundInterface,
boolean strict) |
MobicentsExtendedListeningPoint |
findMatchingListeningPoint(String transport,
boolean strict)
Retrieve the first matching listening point corresponding to the transport.
|
MobicentsExtendedListeningPoint |
findMatchingListeningPoint(String ipAddress,
int port,
String transport)
Retrieve the first matching listening Point corresponding to the
ipAddress port and transport given in parameter.
|
boolean |
findUsePublicAddress(javax.sip.message.Message message) |
Iterator<MobicentsExtendedListeningPoint> |
getExtendedListeningPoints()
Retrieve the listening points for this manager
|
List<SipURI> |
getOutboundInterfaces()
Returns An immutable instance of the java.util.List interface containing
the SipURI representation of IP addresses which are used by the container to send out the messages.
|
static boolean |
isIPAddressPartOfPrivateNetwork(String ipAddress) |
void |
removeExtendedListeningPoint(MobicentsExtendedListeningPoint extendedListeningPoint) |
public static final int MAX_PORT_NUMBER
public static final int MIN_PORT_NUMBER
public SipNetworkInterfaceManagerImpl(SipApplicationDispatcher sipApplicationDispatcher)
public Iterator<MobicentsExtendedListeningPoint> getExtendedListeningPoints()
getExtendedListeningPoints in interface SipNetworkInterfaceManagerpublic void addExtendedListeningPoint(MobicentsExtendedListeningPoint extendedListeningPoint)
addExtendedListeningPoint in interface SipNetworkInterfaceManagerextendedListeningPoint - public void removeExtendedListeningPoint(MobicentsExtendedListeningPoint extendedListeningPoint)
removeExtendedListeningPoint in interface SipNetworkInterfaceManagerextendedListeningPoint - public MobicentsExtendedListeningPoint findMatchingListeningPoint(String transport, boolean strict)
findMatchingListeningPoint in interface SipNetworkInterfaceManagertransport - the transportstrict - if true, it will search only for this transport otherwise it will look for any transport if no
valid listening point could be found for the transport in parameterpublic MobicentsExtendedListeningPoint findMatchingListeningPoint(javax.sip.address.SipURI outboundInterface, boolean strict)
findMatchingListeningPoint in interface SipNetworkInterfaceManagerpublic MobicentsExtendedListeningPoint findMatchingListeningPoint(String ipAddress, int port, String transport)
findMatchingListeningPoint in interface SipNetworkInterfaceManageripAddress - the ip addressport - the porttransport - the transportpublic static int checkPortRange(int port,
String transport)
port - port to checkpublic List<SipURI> getOutboundInterfaces()
getOutboundInterfaces in interface SipNetworkInterfaceManagerprotected void computeOutboundInterfaces()
public boolean findUsePublicAddress(javax.sip.message.Message message)
findUsePublicAddress in interface SipNetworkInterfaceManagerpublic static boolean isIPAddressPartOfPrivateNetwork(String ipAddress)
Copyright © 2016. All Rights Reserved.