diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
index 9ae9154b..afa785c4 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
@@ -215,12 +215,20 @@ class AccountActivity : AppCompatActivity() {
Log.e("Baresip", "Setting of display name failed")
}
} else {
- Utils.alertView(this, "Notice", "Invalid Display Name: $dn")
+ Utils.alertView(this, "Notice",
+ String.format(getString(R.string.invalid_display_name), dn))
return false
}
}
val au = authUser.text.toString().trim()
+ val ap = authPass.text.toString().trim()
+ if (((au != "") && (ap == "")) || ((au == "") && (ap != ""))) {
+ Utils.alertView(this, "Notice",
+ getString(R.string.authentication_username_password_mismatch))
+ return false
+ }
+
if (au != acc.authUser) {
if (checkAuthUser(au)) {
if (account_set_auth_user(acc.accp, au) == 0) {
@@ -232,12 +240,11 @@ class AccountActivity : AppCompatActivity() {
}
} else {
Utils.alertView(this, "Notice",
- "Invalid Authentication UserName: $au")
+ String.format(getString(R.string.invalid_authentication_username), au))
return false
}
}
- val ap = authPass.text.toString().trim()
if (ap != acc.authPass) {
if (Utils.checkPrintAscii(ap)) {
if (account_set_auth_pass(acc.accp, ap) == 0) {
@@ -249,7 +256,7 @@ class AccountActivity : AppCompatActivity() {
}
} else {
Utils.alertView(this, "Notice",
- "Invalid Authentication Password: $ap")
+ String.format(getString(R.string.invalid_authentication_password), ap))
return false
}
}
@@ -279,7 +286,7 @@ class AccountActivity : AppCompatActivity() {
}
} else {
Utils.alertView(this, "Notice",
- "Invalid Proxy Server URI: ${ob[i]}")
+ String.format(getString(R.string.invalid_proxy_server_uri), ob[i]))
return false
}
}
@@ -326,7 +333,7 @@ class AccountActivity : AppCompatActivity() {
if (acc.stunServer != newStunServer) {
if (!Utils.checkHostPort(newStunServer)) {
Utils.alertView(this, "Notice",
- "Invalid STUN Server '$newStunServer'")
+ String.format(getString(R.string.invalid_stun_server), newStunServer))
return false
}
var host = ""
@@ -404,7 +411,7 @@ class AccountActivity : AppCompatActivity() {
if (!vmUri.contains("@")) vmUri = "$vmUri@${acc.host()}"
if (!Utils.checkSipUri(vmUri)) {
Utils.alertView(this, "Notice",
- "Invalid Voicemail URI: $vmUri")
+ String.format(getString(R.string.invalid_voicemail_uri), vmUri))
return false
}
account_set_mwi(acc.accp, "yes")
diff --git a/app/src/main/res/values-fi/strings.xml b/app/src/main/res/values-fi/strings.xml
index 70ba7066..04b52a72 100644
--- a/app/src/main/res/values-fi/strings.xml
+++ b/app/src/main/res/values-fi/strings.xml
@@ -37,12 +37,18 @@
Tilin käyttäjän nimi
Tilin käyttäjän nimi, joka esiintyy
SIP-sanomien From URI:ssa (vapaaehtoinen).
+ Virheellinen tilin käyttäjän nimi \'%1$s\'
+ Käyttäjätunnus ja salasana ovat molemmat
+ annettava ellei kumpikin ole tyhjä.
+
Käyttäjätunnus
Todentamiseen käytettävä
käyttäjätunnus, jos välityspalvelin vaatii sellaisen.
+ Virheellinen käyttäjätunnus \'%1$s\'
Salasana
Todentamiseen käytettävä
salasana, jos välityspalvelin vaatii sellaisen.
+ Virheellinen salasana \'%1$s\'
Välityspalvelimet
Yhden tai kahden
välityspalvelimen SIP URI, joille SIP-sanomat lähetetään. Jos
@@ -60,6 +66,7 @@
Välityspalvelimen SIP URI
Toisen
välityspalvelimen SIP URI
+ Virheellinen välityspalvelimen URI \'%1$s\'
Rekisteröi
Jos merkitty, rekisteröinti on
aktiivinen ja REGISTER-sanomat lähetetään noin 12 minuutin välein.
@@ -78,6 +85,7 @@
osoittaa Google:n julkiseen STUN-palvelimeen. Käyttäjätunnusta ja
salasanaa ei voi tällä hetkellä antaa.
+ Virheellinen STUN-palvelin \'%1$s\'
Median salaus
Valitsee median salausprotokollan (vapaaehtoinen).
\n • ZRTP (suositeltu) tarkoittaa, että ZRTP-salausta yritetään neuvotella sen jälkeen, kun puhelu on alkanut.
@@ -106,6 +114,7 @@
puhepostiviestien kuunteluun. Jos URI:a ei ole annettu, tietoa
mahdollista puhepostiviesteistä (Message Waiting Indications) ei tilata.
+ Virheellinen puhepostin URI \'%1$s\'
Oletustili
Jos merkitty, niin tämä tili on
valittuna, kun baresip käynnistetään.
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index a2340cfb..b67a04c8 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -40,10 +40,20 @@
Display Name
Your Name
Name (if any) used in From URI of outbound requests.
+ Invalid Display Name \'%1$s\'
+ Autentication Username and Authentication
+ Password must both be given or both must be empty.
+
Authentication Username
- Authentication username if required by outbound proxy.
+ Authentication username if authentication of SIP
+ requests is required.
+
+ Invalid Authentication Username \'%1$s\'
Authentication Password
- Authentication password if required by outbound proxy.
+ Authentication password if authentication of SIP
+ requests is required.
+
+ Invalid Authentication Password \'%1$s\'
Outbound Proxies
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
@@ -56,6 +66,7 @@
SIP URI of Proxy Server
SIP URI of another Proxy Server
+ Invalid Proxy Server URI \'%1$s\'
Register
If checked, registration is enabled and REGISTER requests are sent at
12 minute intervals.
@@ -72,6 +83,7 @@
Factory default value is \'stun.l.google.com:19302\', pointing to public Google STUN server.
Username and password are currently not supported.
+ Invalid STUN Server \'%1$s\'
stun.l.google.com:19302
Media Encryption
Selects media transport encryption protocol (if any).
@@ -94,6 +106,7 @@
SIP URI for checking of voicemail messages. If left empty, voicemail
messages (Message Waiting Indications) are not subscribed to.
+ Invalid Voicemail URI \'%1$s\'
Default Account
If checked, this account is selected when baresip is started.
diff --git a/fastlane/metadata/android/en-US/changelogs/17.1.0.txt b/fastlane/metadata/android/en-US/changelogs/17.1.0.txt
new file mode 100644
index 00000000..0a2ce78b
--- /dev/null
+++ b/fastlane/metadata/android/en-US/changelogs/17.1.0.txt
@@ -0,0 +1,4 @@
+- Use usage type instead of stream type when requesting audio focus.
+- Fixed formatting of Account English Help text.
+- Don't show possible port of an AoR when asked about deleting the AoR.
+- Filled the non-register status icon with white color.