*** mediaproxy-1.2.1/mediaproxy.py 2005-01-24 18:54:54.000000000 +0100
--- mediaproxy.py 2005-04-18 14:28:36.000000000 +0200
***************
*** 27,32 ****
--- 27,35 ----
parser.add_option("--ip", dest="proxyIP", type="ip", default=None,
help="use this IP to talk to the RTP parties (first found)",
metavar="IP")
+ parser.add_option("--vip", dest="virtualIP", type="ip", default=None,
+ help="use this IP in SDP payload (for NATed mediaproxy servers)",
+ metavar="IP")
parser.add_option("--ports", dest="ports", type='ports', default=(35000, 65000),
help="rtp port range (35000:65000)",
metavar="min:max")
***************
*** 70,75 ****
--- 73,79 ----
if options.listenAddr is not None:
rtphandler.tcpListenAddress = options.listenAddr
rtphandler.proxyIP = proxyIP
+ rtphandler.virtualIP = options.virtualIP
rtphandler.minPort = options.ports[0]
rtphandler.maxPort = options.ports[1]
rtphandler.TOS = options.tos
--- mediaproxy-1.2.1/modules/rtphandler.py 2005-08-16 23:37:24.000000000 +0200
+++ modules/rtphandler.py 2005-09-20 07:45:13.000000000 +0200
@@ -25,6 +25,7 @@
forceClose = 0 ## Close a sesion after this much time (0 for no timeout)
proxyIP = '0.0.0.0'
+virtualIP = '0.0.0.0'
minPort = 35000 ## Must be even!!!
maxPort = 65000 ## Must be even!!!
crtPort = minPort ## Must be even!!!
@@ -1076,5 +1077,5 @@
def endpointAddresses(self):
'''Return the IP address and the RTP data port(s) that will be used by this session'''
ports = [str(stream.rtpStream.addr[1]) for stream in self.mediaStreams]
- return " ".join([proxyIP] + ports)
+ return " ".join([virtualIP] + ports)