]> granicus.if.org Git - ejabberd/commitdiff
Don't substitute URI in ACK
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 31 May 2014 03:49:51 +0000 (07:49 +0400)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Sat, 31 May 2014 03:50:16 +0000 (07:50 +0400)
src/mod_sip_proxy.erl

index 7a10671e4006eded6dccedfa85ed593b168f7dca..f2648e7dd5ad8190584f8a15b403e4c26b5d1868 100644 (file)
@@ -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