Fixed DTMF not being sent in call

This commit is contained in:
Sylvain Berfini 2020-05-20 10:30:12 +02:00
parent a5de783ebe
commit 63a8fdd118
2 changed files with 1 additions and 2 deletions

View file

@ -80,6 +80,7 @@ class ControlsViewModel : ViewModel() {
override fun handleClick(key: Char) {
coreContext.core.playDtmf(key, 1)
somethingClickedEvent.value = Event(true)
coreContext.core.currentCall?.sendDtmf(key)
}
override fun handleLongClick(key: Char): Boolean {

View file

@ -24,7 +24,6 @@ import org.linphone.LinphoneApplication.Companion.coreContext
import org.linphone.activities.main.viewmodels.ErrorReportingViewModel
import org.linphone.core.Address
import org.linphone.core.ChatRoomSecurityLevel
import org.linphone.core.tools.Log
import org.linphone.utils.LinphoneUtils
interface ContactViewModelInterface {
@ -46,7 +45,6 @@ abstract class GenericContactViewModel(private val sipAddress: Address) : ErrorR
private val contactsUpdatedListener = object : ContactsUpdatedListenerStub() {
override fun onContactUpdated(contact: Contact) {
Log.i("[Generic Contact VM] Contacts have changed")
contactLookup()
}
}