diff --git a/app/src/main/kotlin/com/tutpro/baresip/ConfigActivity.kt b/app/src/main/kotlin/com/tutpro/baresip/ConfigActivity.kt index e6d55d92..14ab0f98 100644 --- a/app/src/main/kotlin/com/tutpro/baresip/ConfigActivity.kt +++ b/app/src/main/kotlin/com/tutpro/baresip/ConfigActivity.kt @@ -42,7 +42,6 @@ class ConfigActivity : AppCompatActivity() { private lateinit var caFile: CheckBox private lateinit var darkTheme: CheckBox private lateinit var debug: CheckBox - private lateinit var rtpStats: CheckBox private lateinit var sipTrace: CheckBox private lateinit var reset: CheckBox private lateinit var requestPermissionLauncher: ActivityResultLauncher @@ -54,7 +53,6 @@ class ConfigActivity : AppCompatActivity() { private var oldVerifyServer = "" private var oldCAFile = false private var oldLogLevel = "" - private var oldRtpStats = "" private var callVolume = BaresipService.callVolume private var oldDisplayTheme = -1 private var save = false @@ -325,10 +323,6 @@ class ConfigActivity : AppCompatActivity() { dbCv[0] debug.isChecked = oldLogLevel == "0" - rtpStats = binding.RtpStats - oldRtpStats = Config.variable("rtp_stats")[0] - rtpStats.isChecked = oldRtpStats == "yes" - sipTrace = binding.SipTrace sipTrace.isChecked = BaresipService.sipTrace @@ -473,13 +467,6 @@ class ConfigActivity : AppCompatActivity() { save = true } - val newRtpStats = if (rtpStats.isChecked) "yes" else "no" - if (newRtpStats != oldRtpStats) { - Config.replaceVariable("rtp_stats", newRtpStats) - save = true - restart = true - } - BaresipService.sipTrace = sipTrace.isChecked Api.uag_enable_sip_trace(sipTrace.isChecked) @@ -565,9 +552,6 @@ class ConfigActivity : AppCompatActivity() { binding.DebugTitle.setOnClickListener { Utils.alertView(this, getString(R.string.debug), getString(R.string.debug_help)) } - binding.RtpStatsTitle.setOnClickListener { - Utils.alertView(this, getString(R.string.rtp_stats), getString(R.string.rtp_stats_help)) - } binding.SipTraceTitle.setOnClickListener { Utils.alertView(this, getString(R.string.sip_trace), getString(R.string.sip_trace_help)) diff --git a/app/src/main/res/layout/activity_config.xml b/app/src/main/res/layout/activity_config.xml index 834d486e..ba44f455 100644 --- a/app/src/main/res/layout/activity_config.xml +++ b/app/src/main/res/layout/activity_config.xml @@ -270,32 +270,6 @@ - - - - - - - Lokiviestit Jos merkitty, baresip tuottaa debug- ja info-tason Logcat-viestejä. - RTP tilastot - Jos merkitty ja lokiviestit on merkitty, Logcat-viestit sisältävät - myös päättyneen puhelun RTP-tilastot. SIP-sanomien jäljitys Jos merkitty ja jos Lokiviestit on merkitty, Logcat-viestit sisältävät myös lähetetyt ja vastaanotetut SIP-sanomat. On aina merkitsemättä sovelluksen diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 41ca1184..3ea062a7 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -317,9 +317,6 @@ Factory default is 800x600. Debug If checked, provides debug and info level log messages to Logcat. - RTP Statistics - If checked and if Debug is checked, Logcat messages include also - RTP statistics of calls when calls are closed. SIP Trace If checked and if Debug is checked, Logcat messages include also SIP request and response trace. Unchecked automatically at baresip start.