From cd2a9d86f60fcfc49c6f3b2e1f6824fe19fe37c4 Mon Sep 17 00:00:00 2001 From: Juha Heinanen Date: Thu, 6 Aug 2026 18:19:05 +0300 Subject: [PATCH] Improved accounts_help and outbound_proxies_help strings Added wss to account's transport protocols --- .../main/kotlin/com/tutpro/baresip/Utils.kt | 4 ++-- app/src/main/res/values-fi/strings.xml | 18 ++++++++------- app/src/main/res/values/strings.xml | 23 ++++++++++--------- 3 files changed, 24 insertions(+), 21 deletions(-) diff --git a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt index 884c1b92..bbd39d3f 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/Utils.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/Utils.kt @@ -249,8 +249,8 @@ object Utils { fun checkAor(aor: String): Boolean { if (!checkSipUri(aor)) return false val params = uriParams(aor) - return params.isEmpty() || - ((params.size == 1) && params[0] in arrayOf("transport=udp", "transport=tcp", "transport=tls")) + val transports = arrayOf("transport=udp", "transport=tcp", "transport=tls", "transport=wss") + return params.isEmpty() || ((params.size == 1) && params[0] in transports) } private fun checkTransport(transport: String, transports: Set): Boolean { diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml index ee8cdb04..6eda6e1b 100644 --- a/app/src/main/res/values-fi/strings.xml +++ b/app/src/main/res/values-fi/strings.xml @@ -144,13 +144,15 @@ lähettää molemmille välityspalvelimille ja muut sanomat yhdelle toiminnassa olevalle välityspalvelimelle. Jos välityspalvelimia ei ole annettu, SIP-sanomat lähetetään palvelimelle, mikä selviää - kohteen domainille tehtävien NAPTR/SRV/Animipalvelukyselyiden perusteella. - Jos välityspalvelimen osoite SIP + kohteen domainille tehtävien NAPTR/SRV/A nimipalvelukyselyiden perusteella. + SIP URI on muotoa sip:<host>[:<port>][;transport=udp|tcp|tls|wss]. + Jos porttia ei ole annettu ja transport on annettu, portin oletusarvo on 5060 (udp, tcp), + 5061 (tls) tai 443 (wss). Jos välityspalvelimen osoite SIP URI:ssa on IPv6-osoite, osoite pitää kirjoittaa sulkujen [] sisään. \nEsimerkkejä: -\n • sip:example.com:5061;transport=tls +\n • sip:example.com:6601transport=tls \n • sip:[2001:67c:223:777::10];transport=tcp -\n • sip:192.168.43.50:443;transport=wss +\n • sip:192.168.43.50:4430;transport=wss Välityspalvelimen SIP URI Toisen @@ -256,13 +258,13 @@ Tilit Uuden tilin SIP URI Uuden tilin SIP URI muotoa - <käyttäjä>@<domain>[:<portti>][;transport=udp|tcp|tls]. + <käyttäjä>@<domain>[:<portti>][;transport=udp|tcp|tls|wss]. Jos <portti> on annettu, mutta protokollaa ei ole annettu, protokolla on udp. - Jos <portti> ei ole annettu, mutta protokolla on annettu, portti on joko 5060 tai 5061 (tls). - Jos kumpaakaan ei ole annettu eikä välityspalvelinta ole määritelty, tilin mahdollinen + Jos <portti> ei ole annettu, mutta protokolla on annettu, portti on joko 5060 (udp, tcp), 5061 (tls) tai + 443 (wss). Jos kumpaakaan ei ole annettu eikä välityspalvelinta ole määritelty, tilin mahdollinen rekisteröintipalvelin päätellään pelkästään domainin DNS-informaation perusteella. - Virheellinen käyttäjä@domain[:portti][;transport=udp|tcp|tls] \'%1$s\' + Virheellinen käyttäjä@domain[:portti][;transport=udp|tcp|tls|wss] \'%1$s\' Tili \'%1$s\' on jo olemassa. Uuden tilin luonti epäonnistui. diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index c1065fc3..b3c914c3 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -147,12 +147,14 @@ SIP URI of one or two proxies that must be used when sending requests. If two is given, REGISTER requests are sent to both and other requests are sent to one that responds. If no outbound proxy is given, requests are sent based on - DNS NAPTR/SRV/A record lookup of callee URI hostpart. If hostpart of SIP URI is an IPv6 - address, the address must be written inside brackets []. + DNS NAPTR/SRV/A record lookup of request URI hostpart. SIP URI is of the form + sip:<host>[:<port>][;transport=udp|tcp|tls|wss]. + If <port> is not given and transport protocol is given, <port> defaults to 5060 (udp, tcp), 5061 (tls), + or 443 (wss). If <host> is an IPv6 address, the address must be written inside brackets []. \nExamples: -\n • sip:example.com:5061;transport=tls +\n • sip:example.com:6601;transport=tls \n • sip:[2001:67c:223:777::10];transport=tcp -\n • sip:192.168.43.50:443;transport=wss +\n • sip:192.168.43.50:4430;transport=wss SIP URI of Proxy Server SIP URI of another Proxy Server @@ -174,7 +176,7 @@ Establishment, RFC 5245). STUN/TURN Server - A STUN/TURN Server URI of form scheme:host[:port][?transport=udp|tcp], + A STUN/TURN Server URI of form scheme:host[:port][;transport=udp|tcp], where scheme is \'stun\', \'stuns\', \'turn\', or \'turns\'. Factory default STUN Server for STUN and ICE protocols is \'stun:stun.l.google.com:19302\' pointing to public Google STUN server. There is no factory default TURN server. @@ -248,14 +250,13 @@ Accounts SIP URI of New Account - SIP URI of new account of form - <user>@<domain>[:<port>][;transport=udp|tcp|tls]. - If <port> is given and transport protocol is not given, transport protocol defaults to UDP. - If <port> is not given and transport protocol is given, <port> defaults to 5060 or 5061 (TLS). - If neither is given and no outbound proxy is specified, account\'s registrar (if any) is + SIP URI of new account of form <user>@<domain>[:<port>][;transport=udp|tcp|tls|wss]. + If <port> is given and transport protocol is not given, transport protocol defaults to udp. + If <port> is not given and transport protocol is given, <port> defaults to 5060 (udp, tcp), 5061 (tls), + or 443 (wss). If neither is given and no outbound proxy is specified, account\'s registrar (if any) is determined solely based on domain\'s DNS information. - Invalid user@domain[:port][;transport=udp|tcp|tls] \'%1$s\' + Invalid user@domain[:port][;transport=udp|tcp|tls|wss] \'%1$s\' Account \'%1$s\' already exists. Failed to allocate new account. Encrypt Password