summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOthmar Gsenger <otti@anytun.org>2008-03-14 17:59:52 +0000
committerOthmar Gsenger <otti@anytun.org>2008-03-14 17:59:52 +0000
commit4fac9871ded192f85f5bf54ab2e5ff4af9514ccf (patch)
treee3cc2ee04275b1851f58dffe7fe03b44b219e0d9
parentbugfixes @ anyrtpproxy (diff)
dirty rtp port hack
-rw-r--r--anyrtpproxy/commandHandler.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/anyrtpproxy/commandHandler.cpp b/anyrtpproxy/commandHandler.cpp
index f2d1a23..58d9974 100644
--- a/anyrtpproxy/commandHandler.cpp
+++ b/anyrtpproxy/commandHandler.cpp
@@ -169,8 +169,10 @@ string CommandHandler::handleRequest(string modifiers, string call_id, string ad
RtpSession& session = gRtpSessionTable.getOrNewSession(call_id, is_new);
if(is_new)
{
- u_int16_t port1 = 35000; // TODO: get next available port
- u_int16_t port2 = 35001; // TODO: get next available port
+ static u_int16_t port1 = 35000; // TODO: get next available port
+ static u_int16_t port2 = 35001; // TODO: get next available port
+ port1+=2;
+ port2+=2;
session.setLocalAddr("0.0.0.0"); // TODO: read this from config
session.setLocalPort1(port1);