... and some more

This commit is contained in:
Juha Heinanen
2021-07-26 19:55:11 +03:00
parent 6efab32839
commit 44dfd85231
2 changed files with 5 additions and 6 deletions

View File

@ -198,6 +198,9 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
case UA_EVENT_CALL_OUTGOING:
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call outgoing");
break;
case UA_EVENT_CALL_ANSWERED:
len = re_snprintf(event_buf, sizeof event_buf, "call answered", prm);
break;
case UA_EVENT_CALL_LOCAL_SDP:
len = re_snprintf(event_buf, sizeof event_buf, "call %sed", prm);
break;

View File

@ -711,12 +711,8 @@ class BaresipService: Service() {
if (Call.calls().size == 0) {
resetCallVolume()
am.isSpeakerphoneOn = false
if (am.isBluetoothScoOn) {
Log.d(TAG, "Stopping Bluetooth SCO")
am.stopBluetoothSco()
} else {
abandonAudioFocus()
}
am.stopBluetoothSco()
abandonAudioFocus()
am.mode = AudioManager.MODE_NORMAL
proximitySensing(false)
}