From 0063085c39af81c549673b00ea4d1cfa18f7e0a3 Mon Sep 17 00:00:00 2001 From: Stefan Sayer Date: Thu, 4 Oct 2007 20:33:48 +0000 Subject: [PATCH] outbound proxy support in b2absession git-svn-id: http://svn.berlios.de/svnroot/repos/sems/trunk@511 8eb893ce-cfd4-0310-b710-fb5ebe64c474 --- core/AmB2ABSession.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/core/AmB2ABSession.cpp b/core/AmB2ABSession.cpp index 74679829..8cbf02d9 100644 --- a/core/AmB2ABSession.cpp +++ b/core/AmB2ABSession.cpp @@ -249,6 +249,10 @@ void AmB2ABCalleeSession::onB2ABEvent(B2ABEvent* ev) dlg.remote_party = co_ev->remote_party; dlg.remote_uri = co_ev->remote_uri; + // set outbound proxy as next hop + if (!AmConfig::OutboundProxy.empty()) + dlg.next_hop = AmConfig::OutboundProxy; + setCallgroup(co_ev->callgroup); setNegotiateOnReply(true);