Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion doc/reference/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ tls_cacertfile|`string()`|-|Custom CA certificate file
tls_password|`string()`|-|Password fort the certificate
tls_verify|`boolean()`|false|If we must check certificate
tls_depth|`integer()`|0|TLS check depth

tos|`integer()`|0|Type of Service value

### nkservice

Expand Down
1 change: 1 addition & 0 deletions include/nksip_call.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,7 @@
max_calls :: integer(),
local_host :: auto | binary(),
local_host6 :: auto | binary(),
tos :: integer(),
debug :: [atom()],
times :: #call_times{},
udp_max_size :: integer()
Expand Down
19 changes: 17 additions & 2 deletions rebar.lock
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{"1.1.0",
{"1.2.0",
[{<<"certifi">>,{pkg,<<"certifi">>,<<"2.4.2">>},1},
{<<"cowboy">>,
{git,"https://github.com/extend/cowboy",
Expand Down Expand Up @@ -56,5 +56,20 @@
{<<"recon">>, <<"901FF78B39C754FB4D6FD72DCF0DBD398967BBD2E4D59C08D4D7AA44A73DE91D">>},
{<<"rfc3339">>, <<"2075653DC9407541C84B1E15F8BDA2ABE95FB17C9694025E079583F2D19C1060">>},
{<<"ssl_verify_fun">>, <<"F0EAFFF810D2041E93F915EF59899C923F4568F4585904D010387ED74988E77B">>},
{<<"yamerl">>, <<"E51DBA652DCE74C20A88294130B48051EBBBB0BE7D76F22DE064F0F3CCF0AAF5">>}]}
{<<"yamerl">>, <<"E51DBA652DCE74C20A88294130B48051EBBBB0BE7D76F22DE064F0F3CCF0AAF5">>}]},
{pkg_hash_ext,[
{<<"certifi">>, <<"01D479EDBA0569A7B7A2C8BF923FEEB6DC6A358EDC2965EF69AEA9BA288BB243">>},
{<<"enotify">>, <<"8E48DA763CE15BFD75CC857DDFE5011B03189D597F47BCDD8ACC6FBBE8E6B6F4">>},
{<<"eper">>, <<"1D2685445C401C4D91E23EA59B8FD327C29186DFB5F3B271D3C1EB73A3CBC9F3">>},
{<<"goldrush">>, <<"99CB4128CFFCB3227581E5D4D803D5413FA643F4EB96523F77D9E6937D994CEB">>},
{<<"jsone">>, <<"9C246138866ED8169674EF5494E8CD782CD22682715379ECBDAC13F7AA95D4E7">>},
{<<"lager">>, <<"EEC0B676776ADCFC4F281ADD4ACAD1806B2F399774EAAA30F9EC47D2B7881B58">>},
{<<"meck">>, <<"7A6AB35A42E6C846636E8ECD6FDF2CC2E3F09DBEE1ABB15C1A7C705C10775787">>},
{<<"mimerl">>, <<"DEF0F1922A5DCDEEEE6E4F41139B364E7F0F40239774B528A0986B12BCB42DDC">>},
{<<"parse_trans">>, <<"17EF63ABDE837AD30680EA7F857DD9E7CED9476CDD7B0394432AF4BFC241B960">>},
{<<"parsexml">>, <<"D7F678BE0D15A971927D9138C1CE962F81648F16E3233191CA37BA2638C06AC8">>},
{<<"recon">>, <<"3B32DE568F129001E1CF89CC5BCFD6DBB1260FABB2CF8A3410CDC0F634EBA182">>},
{<<"rfc3339">>, <<"182314DE35C9F4180B22EB5F22916D8D7A799C1109A060C752970273A9332AD6">>},
{<<"ssl_verify_fun">>, <<"603561DC0FD62F4F2EA9B890F4E20E1A0D388746D6E20557CAFB1B16950DE88C">>},
{<<"yamerl">>, <<"CB5A4481E2E2AD36DB83BD9962153E1A9208E2B2484185E33FC2CAAC6A50B108">>}]}
].
3 changes: 2 additions & 1 deletion src/nksip_plugin.erl
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,8 @@ get_listen(SrvId, #{sip_listen:=Url}=Config) ->
Opts = Tls#{
id => {?PACKAGE_CLASS_SIP, SrvId},
class => {nksip, SrvId},
debug => lists:member(nkpacket, Debug)
debug => lists:member(nkpacket, Debug),
tos => maps:get(tos, Config, 0)
},
get_listen(Conns, Opts, SipConfig, []);
{error, Error} ->
Expand Down
1 change: 1 addition & 0 deletions src/nksip_syntax.erl
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ make_config(Config) ->
max_calls = maps:get(sip_max_calls, Config, 100000),
local_host = maps:get(sip_local_host, Config, auto),
local_host6 = maps:get(sip_local_host6, Config, auto),
tos = maps:get(tos, Config, 0),
times = Times,
udp_max_size = maps:get(sip_udp_max_size, Config, ?UDP_MAX_SIZE)
}.
Expand Down