Mobile account configuration enhancements
This commit is contained in:
@ -100,7 +100,6 @@ class Account(val accp: Long, virtualAor: String? = null) {
|
||||
|
||||
if (!isMobile) {
|
||||
res = "$res<$luri>"
|
||||
|
||||
if (authUser != "") res += ";auth_user=\"${authUser}\""
|
||||
}
|
||||
|
||||
|
||||
@ -1285,8 +1285,8 @@ private fun AccountContent(
|
||||
Rel100()
|
||||
Dtmf()
|
||||
Redirect()
|
||||
Answer()
|
||||
}
|
||||
Answer()
|
||||
Voicemail()
|
||||
if (!ua.account.isMobile) {
|
||||
CountryCode()
|
||||
@ -1616,8 +1616,13 @@ private fun checkOnClick(ctx: Context, viewModel: AccountViewModel, ua: UserAgen
|
||||
var newVmUri = viewModel.vmUri.value.trim()
|
||||
if (newVmUri != acc.vmUri) {
|
||||
if (newVmUri != "") {
|
||||
if (!newVmUri.startsWith("sip:")) newVmUri = "sip:$newVmUri"
|
||||
if (!newVmUri.contains("@")) newVmUri = "$newVmUri@${acc.host()}"
|
||||
if (acc.isMobile) {
|
||||
if (!newVmUri.startsWith("tel:")) newVmUri = "tel:$newVmUri"
|
||||
}
|
||||
else {
|
||||
if (!newVmUri.startsWith("sip:")) newVmUri = "sip:$newVmUri"
|
||||
if (!newVmUri.contains("@")) newVmUri = "$newVmUri@${acc.host()}"
|
||||
}
|
||||
if (!Utils.checkUri(newVmUri)) {
|
||||
alertTitle.value = noticeTitle
|
||||
alertMessage.value = String.format(ctx.getString(R.string.invalid_sip_or_tel_uri),
|
||||
|
||||
@ -206,7 +206,7 @@
|
||||
<string name="block_unknown">Block Unknown</string>
|
||||
<string name="block_unknown_help">Block calls and messages from peers that are not found in contacts.</string>
|
||||
<string name="voicemail_uri">Voicemail URI</string>
|
||||
<string name="voicemain_uri_help">SIP URI for checking of voicemail messages. If left empty, voicemail
|
||||
<string name="voicemain_uri_help">SIP or TEL URI for checking of voicemail messages. If left empty, voicemail
|
||||
messages (Message Waiting Indications) are not subscribed to.
|
||||
</string>
|
||||
<string name="country_code">Country Code</string>
|
||||
|
||||
Reference in New Issue
Block a user