]> granicus.if.org Git - ejabberd/commitdiff
Don't add 'rport' paramater to 'Via' header
authorEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 2 Jun 2014 16:46:09 +0000 (20:46 +0400)
committerEvgeniy Khramtsov <ekhramtsov@process-one.net>
Mon, 2 Jun 2014 16:46:29 +0000 (20:46 +0400)
src/mod_sip_proxy.erl

index b6d75bc62b4ea2457bfd6328530bf64dd1c03f65..de5760fef40be581234693466b741c33f2617781 100644 (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) ->