diff options
author | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2014-07-07 09:27:24 +0400 |
---|---|---|
committer | Evgeniy Khramtsov <ekhramtsov@process-one.net> | 2014-07-07 09:40:08 +0400 |
commit | 2b8c4acd57bd41e78d2e83b94a8ac243b99be5b4 (patch) | |
tree | e4cae22ef08ea76ffcda0d02c9a605e96676104e /src | |
parent | Add new option support: always_record_route (diff) |
Rename options
Diffstat (limited to 'src')
-rw-r--r-- | src/mod_sip_registrar.erl | 8 |
1 files changed, 4 insertions, 4 deletions
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, |