From: Evgeniy Khramtsov Date: Sat, 31 May 2014 03:49:51 +0000 (+0400) Subject: Don't substitute URI in ACK X-Git-Tag: 14.07~92 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=da22da23cd3b5aedbd5d7e7efb4b233225d1ac5e;p=ejabberd Don't substitute URI in ACK --- 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