Many fixed and improvements related to asking passwords

This commit is contained in:
Juha Heinanen
2023-03-14 12:37:03 +02:00
parent 26f670422e
commit e1fdb8ecbd
6 changed files with 64 additions and 111 deletions
@@ -87,7 +87,7 @@ class Account(val accp: Long) {
if (authUser != "") res += ";auth_user=\"${authUser}\""
if ((authPass != "") && !MainActivity.aorPasswords.containsKey(aor))
if ((authPass != "") && !BaresipService.aorPasswords.containsKey(aor))
res += ";auth_pass=\"${authPass}\""
if (outbound.size > 0) {
@@ -142,7 +142,8 @@ class Account(val accp: Long) {
if (!callHistory)
extra += ";call_history=no"
extra += ";tel_provider=${URLEncoder.encode(telProvider, "UTF-8")}"
if (telProvider != "")
extra += ";tel_provider=${URLEncoder.encode(telProvider, "UTF-8")}"
if (countryCode != "")
extra += ";country_code=$countryCode"