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