From da22da23cd3b5aedbd5d7e7efb4b233225d1ac5e Mon Sep 17 00:00:00 2001 From: Evgeniy Khramtsov Date: Sat, 31 May 2014 07:49:51 +0400 Subject: [PATCH] Don't substitute URI in ACK --- src/mod_sip_proxy.erl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mod_sip_proxy.erl b/src/mod_sip_proxy.erl index 7a10671e4..f2648e7dd 100644 --- a/src/mod_sip_proxy.erl +++ b/src/mod_sip_proxy.erl @@ -47,9 +47,9 @@ route(Req, LServer, Opts) -> case connect(Req1, add_certfile(LServer, Opts)) of {ok, SIPSocketsWithURIs} -> lists:foreach( - fun({SIPSocket, URI}) -> + fun({SIPSocket, _URI}) -> Req2 = add_via(SIPSocket, LServer, Req1), - esip:send(SIPSocket, Req2#sip{uri = URI}) + esip:send(SIPSocket, Req2) end, SIPSocketsWithURIs); _ -> error