Set bevent to val
This commit is contained in:
@@ -727,6 +727,7 @@ class BaresipService: Service() {
|
|||||||
}
|
}
|
||||||
"incoming call" -> {
|
"incoming call" -> {
|
||||||
val peerUri = ev[1]
|
val peerUri = ev[1]
|
||||||
|
val bevent = ev[2].toLong()
|
||||||
val toastMsg = if (!Utils.checkPermissions(this, arrayOf(Manifest.permission.RECORD_AUDIO)))
|
val toastMsg = if (!Utils.checkPermissions(this, arrayOf(Manifest.permission.RECORD_AUDIO)))
|
||||||
getString(R.string.no_calls)
|
getString(R.string.no_calls)
|
||||||
else if (!requestAudioFocus(applicationContext))
|
else if (!requestAudioFocus(applicationContext))
|
||||||
@@ -740,7 +741,7 @@ class BaresipService: Service() {
|
|||||||
if (toastMsg != "") {
|
if (toastMsg != "") {
|
||||||
Log.d(TAG, "Auto-rejecting incoming call $uap/$peerUri")
|
Log.d(TAG, "Auto-rejecting incoming call $uap/$peerUri")
|
||||||
Api.sip_treply(callp, 486, "Busy Here")
|
Api.sip_treply(callp, 486, "Busy Here")
|
||||||
Api.bevent_stop(ev[2].toLong())
|
Api.bevent_stop(bevent)
|
||||||
toast(toastMsg)
|
toast(toastMsg)
|
||||||
val name = "callwaiting_$toneCountry"
|
val name = "callwaiting_$toneCountry"
|
||||||
val resourceId = applicationContext.resources.getIdentifier(
|
val resourceId = applicationContext.resources.getIdentifier(
|
||||||
|
|||||||
Reference in New Issue
Block a user