aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-05-30 23:49:34 +0400
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>2014-05-30 23:49:50 +0400
commit2cd17c798821b966d997d6803e6a34e00ed83ecb (patch)
treeb4c8c123b7aa5d8738b8d450b73077c1557736ff
parentProcess 'Contact' headers more accurately (as per RFC3261) (diff)
Fix previous commit
-rw-r--r--src/mod_sip_proxy.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mod_sip_proxy.erl b/src/mod_sip_proxy.erl
index 185d72afe..7a10671e4 100644
--- a/src/mod_sip_proxy.erl
+++ b/src/mod_sip_proxy.erl
@@ -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.