summaryrefslogtreecommitdiff
path: root/anyrtpproxy
diff options
context:
space:
mode:
authorChristian Pointner <equinox@anytun.org>2008-03-18 19:49:38 +0000
committerChristian Pointner <equinox@anytun.org>2008-03-18 19:49:38 +0000
commit92efa896ace2c1ef6e1a356ba7d2e38294583f7e (patch)
treebd6c2f6b8d882877f5a8a19fa6b1e1954a2ef790 /anyrtpproxy
parentrtpSession reinit gets called more o (diff)
anyrtpproxy bugfix
Diffstat (limited to 'anyrtpproxy')
-rw-r--r--anyrtpproxy/anyrtpproxy.cpp5
-rw-r--r--anyrtpproxy/commandHandler.cpp2
2 files changed, 1 insertions, 6 deletions
diff --git a/anyrtpproxy/anyrtpproxy.cpp b/anyrtpproxy/anyrtpproxy.cpp
index 9501dfc..ac2670a 100644
--- a/anyrtpproxy/anyrtpproxy.cpp
+++ b/anyrtpproxy/anyrtpproxy.cpp
@@ -124,13 +124,10 @@ void* listener(void* p)
}
if(param->dir_ == 1)
- {
param->sock2_.sendTo(buf.getBuf(), buf.getLength(), session.getRemoteAddr2(), session.getRemotePort2());
- }
else if(param->dir_ == 2)
- {
param->sock1_.sendTo(buf.getBuf(), buf.getLength(), session.getRemoteAddr1(), session.getRemotePort1());
- }
+ else break;
}
}
catch(std::exception &e)
diff --git a/anyrtpproxy/commandHandler.cpp b/anyrtpproxy/commandHandler.cpp
index 76134f1..032d001 100644
--- a/anyrtpproxy/commandHandler.cpp
+++ b/anyrtpproxy/commandHandler.cpp
@@ -188,8 +188,6 @@ string CommandHandler::handleRequest(string modifiers, string call_id, string ad
iss >> rport;
session.setRemotePort1(rport);
session.setRemoteAddr1(addr);
- SyncCommand sc(call_id);
- queue_.push(sc);
ostringstream oss;
oss << session.getLocalPort2();