25
1
mirror of https://github.com/processone/ejabberd.git synced 2024-12-26 17:38:45 +01:00

Fix previous commit

This commit is contained in:
Evgeniy Khramtsov 2014-05-30 23:49:34 +04:00
parent 32998f7e18
commit 2cd17c7988

View File

@ -45,12 +45,12 @@ route(SIPMsg, _SIPSock, TrID, Pid) ->
route(Req, LServer, Opts) ->
Req1 = prepare_request(LServer, Req),
case connect(Req1, add_certfile(LServer, Opts)) of
{ok, SIPSockets} ->
{ok, SIPSocketsWithURIs} ->
lists:foreach(
fun(SIPSocket) ->
fun({SIPSocket, URI}) ->
Req2 = add_via(SIPSocket, LServer, Req1),
esip:send(SIPSocket, Req2)
end, SIPSockets);
esip:send(SIPSocket, Req2#sip{uri = URI})
end, SIPSocketsWithURIs);
_ ->
error
end.