fixed sending of dtmf digits

This commit is contained in:
Juha Heinanen
2018-05-03 20:37:12 +03:00
parent 46079ae67d
commit 322d8fa1a2

View File

@ -352,7 +352,9 @@ class MainActivity : AppCompatActivity() {
Log.d("Baresip", "Got DTMF digit '" + digit + "'")
if (digit.isNotEmpty()) call_send_digit(call, digit[0])
}
override fun afterTextChanged(sequence: Editable) {}
override fun afterTextChanged(sequence: Editable) {
call_send_digit(call, 4.toChar())
}
}
callsOut.add(Call(ua, call, uri, "Cancel", dtmfWatcher))
(findViewById(R.id.callButton) as Button).text = "Cancel"