From: Evgeniy Khramtsov Date: Mon, 7 Jul 2014 05:27:24 +0000 (+0400) Subject: Rename options X-Git-Tag: 14.07~53 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2b8c4acd57bd41e78d2e83b94a8ac243b99be5b4;p=ejabberd Rename options --- diff --git a/src/mod_sip_registrar.erl b/src/mod_sip_registrar.erl index 4a17d2468..9aeb058d6 100644 --- a/src/mod_sip_registrar.erl +++ b/src/mod_sip_registrar.erl @@ -24,8 +24,8 @@ -define(CALL_TIMEOUT, timer:seconds(30)). -define(DEFAULT_EXPIRES, 3600). --define(FLOW_TIMEOUT_DATAGRAM, 29). --define(FLOW_TIMEOUT_STREAM, 120). +-define(FLOW_TIMEOUT_UDP, 29). +-define(FLOW_TIMEOUT_TCP, 120). -record(sip_session, {us = {<<"">>, <<"">>} :: {binary(), binary()}, socket = #sip_socket{} :: #sip_socket{}, @@ -475,8 +475,8 @@ need_ob_hdrs(Contacts, _IsOutboundSupported = true) -> get_flow_timeout(LServer, #sip_socket{type = Type}) -> {Option, Default} = case Type of - udp -> {flow_timeout_datagram, ?FLOW_TIMEOUT_DATAGRAM}; - _ -> {flow_timeout_stream, ?FLOW_TIMEOUT_STREAM} + udp -> {flow_timeout_udp, ?FLOW_TIMEOUT_UDP}; + _ -> {flow_timeout_tcp, ?FLOW_TIMEOUT_TCP} end, gen_mod:get_module_opt( LServer, mod_sip, Option,