diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2014-05-31 07:49:51 +0400 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2014-05-31 07:50:16 +0400 |
commit | da22da23cd3b5aedbd5d7e7efb4b233225d1ac5e (patch) | |
tree | 91dd5bf5bfefb51bcb93cae58c2a9c10a50e70f0 | |
parent | Fix previous commit (diff) |
Don't substitute URI in ACK
-rw-r--r-- | src/mod_sip_proxy.erl | 4 |
1 files 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 |