diff --git a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
index 251fb4a3..8eac84ba 100644
--- a/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
+++ b/app/src/main/kotlin/com/tutpro/baresip/AccountActivity.kt
@@ -92,7 +92,7 @@ class AccountActivity : AppCompatActivity() {
mediaEnc = acc.mediaenc
val mediaEncSpinner = findViewById(R.id.mediaEncSpinner) as Spinner
val mediaEncKeys = arrayListOf("zrtp", "dtls_srtp", "srtp", "srtp-mand", "")
- val mediaEncVals = arrayListOf("ZRTP", "DTLS SRTP", "SRTP", "Madatory SRTP", "")
+ val mediaEncVals = arrayListOf("ZRTP", "DTLS SRTP", "SRTP", "Mandatory SRTP", "")
val keyIx = mediaEncKeys.indexOf(acc.mediaenc)
val keyVal = mediaEncVals.elementAt(keyIx)
mediaEncKeys.removeAt(keyIx)
@@ -282,6 +282,36 @@ class AccountActivity : AppCompatActivity() {
} else return super.onOptionsItemSelected(item)
}
+ fun onClick(v: View) {
+ Log.d("Baresip", "Account click on $v")
+ when (v) {
+ findViewById(R.id.DisplayNameTitle) -> {
+ Utils.alertView(this, "Display Name", getString(R.string.dispName))
+ }
+ findViewById(R.id.AuthUserTitle) -> {
+ Utils.alertView(this, "Authentication Username",
+ getString(R.string.authUser))
+ }
+ findViewById(R.id.AuthPassTitle) -> {
+ Utils.alertView(this, "Authentication Password",
+ getString(R.string.authPass))
+ }
+ findViewById(R.id.OutboundProxyTitle) -> {
+ Utils.alertView(this, "Outbound Proxies",
+ getString(R.string.obProxies))
+ }
+ findViewById(R.id.RegIntTitle) -> {
+ Utils.alertView(this, "Registration Interval", getString(R.string.regInt))
+ }
+ findViewById(R.id.AudioCodecsTitle) -> {
+ Utils.alertView(this, "Audio Codecs", getString(R.string.auCodecs))
+ }
+ findViewById(R.id.MediaEncTitle) -> {
+ Utils.alertView(this, "Media Encryption", getString(R.string.mediaEnc))
+ }
+ }
+ }
+
private fun checkDisplayName(dn: String): Boolean {
if (dn == "") return true
val dnRegex = Regex("^[a-zA-Z]([ ._-]|[a-zA-Z0-9]){1,63}\$")
diff --git a/app/src/main/res/layout/activity_account.xml b/app/src/main/res/layout/activity_account.xml
index f2c5c39e..768a03be 100644
--- a/app/src/main/res/layout/activity_account.xml
+++ b/app/src/main/res/layout/activity_account.xml
@@ -21,6 +21,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:focusable="true"
android:focusableInTouchMode="true"
android:text="Display Name" >
@@ -41,6 +42,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Authentication Username" >
@@ -58,6 +60,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Authentication Password" >
@@ -76,6 +79,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Outbound Proxies" >
@@ -103,6 +107,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Registration Interval (sec)" >
@@ -120,6 +125,7 @@
android:layout_height="wrap_content"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Audio Codecs" >
@@ -137,6 +143,7 @@
android:paddingTop="10dp"
android:textSize="18sp"
android:textColor="@android:color/black"
+ android:onClick="onClick"
android:text="Media Encryption" >
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index e6b7c181..4f704050 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -7,5 +7,17 @@
Juha Heinanen jh@tutpro.com\n\n
No accounts
-
+ Name (if any) used in From URI of outbound requests.
+ Authentication username if required by outbound proxy.
+ Authentication password if required by outbound proxy.
+ 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.\nExample:\nsip:foo.com:5060;transport=tls
+
+ Tells how often (in seconds) REGISTER requests are sent. Value 0
+ disables registration.
+
+ List of supported audio codecs in priority order.
+ Supported or required media encryption protocol.