plugins/mod_turn_external.lua
changeset 12294 aa7a8aa64d3f
parent 12287 b5686debb497
child 12441 9f5d0b77e3df
equal deleted inserted replaced
12293:3a655adf1d0d 12294:aa7a8aa64d3f
     4 local host = module:get_option_string("turn_external_host", module.host);
     4 local host = module:get_option_string("turn_external_host", module.host);
     5 local user = module:get_option_string("turn_external_user");
     5 local user = module:get_option_string("turn_external_user");
     6 local port = module:get_option_number("turn_external_port", 3478);
     6 local port = module:get_option_number("turn_external_port", 3478);
     7 local ttl = module:get_option_number("turn_external_ttl", 86400);
     7 local ttl = module:get_option_number("turn_external_ttl", 86400);
     8 local tcp = module:get_option_boolean("turn_external_tcp", false);
     8 local tcp = module:get_option_boolean("turn_external_tcp", false);
     9 local tls_port = module:get_option_boolean("turn_external_tls_port");
     9 local tls_port = module:get_option_number("turn_external_tls_port");
    10 
    10 
    11 if not secret then error("mod_" .. module.name .. " requires that 'turn_external_secret' be set") end
    11 if not secret then error("mod_" .. module.name .. " requires that 'turn_external_secret' be set") end
    12 
    12 
    13 local services = set.new({ "stun-udp"; "turn-udp" });
    13 local services = set.new({ "stun-udp"; "turn-udp" });
    14 if tcp then
    14 if tcp then