Don't add 'rport' paramater to 'Via' header

This commit is contained in:
Evgeniy Khramtsov 2014-06-02 20:46:09 +04:00
parent 0aea9c74bd
commit 6441c284e0
1 changed files with 1 additions and 2 deletions

View File

@ -271,8 +271,7 @@ add_via(#sip_socket{type = Transport}, LServer, #sip{hdrs = Hdrs} = Req) ->
Via = #via{transport = ViaTransport,
host = ViaHost,
port = ViaPort,
params = [{<<"branch">>, esip:make_branch()},
{<<"rport">>, <<"">>}]},
params = [{<<"branch">>, esip:make_branch()}]},
Req#sip{hdrs = [{'via', [Via]}|Hdrs]}.
add_record_route_and_set_uri(URI, LServer, #sip{hdrs = Hdrs} = Req) ->