... and some more
This commit is contained in:
@@ -198,6 +198,9 @@ static void ua_event_handler(struct ua *ua, enum ua_event ev,
|
|||||||
case UA_EVENT_CALL_OUTGOING:
|
case UA_EVENT_CALL_OUTGOING:
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call outgoing");
|
len = re_snprintf(event_buf, sizeof event_buf, "%s", "call outgoing");
|
||||||
break;
|
break;
|
||||||
|
case UA_EVENT_CALL_ANSWERED:
|
||||||
|
len = re_snprintf(event_buf, sizeof event_buf, "call answered", prm);
|
||||||
|
break;
|
||||||
case UA_EVENT_CALL_LOCAL_SDP:
|
case UA_EVENT_CALL_LOCAL_SDP:
|
||||||
len = re_snprintf(event_buf, sizeof event_buf, "call %sed", prm);
|
len = re_snprintf(event_buf, sizeof event_buf, "call %sed", prm);
|
||||||
break;
|
break;
|
||||||
|
|||||||
@@ -711,12 +711,8 @@ class BaresipService: Service() {
|
|||||||
if (Call.calls().size == 0) {
|
if (Call.calls().size == 0) {
|
||||||
resetCallVolume()
|
resetCallVolume()
|
||||||
am.isSpeakerphoneOn = false
|
am.isSpeakerphoneOn = false
|
||||||
if (am.isBluetoothScoOn) {
|
|
||||||
Log.d(TAG, "Stopping Bluetooth SCO")
|
|
||||||
am.stopBluetoothSco()
|
am.stopBluetoothSco()
|
||||||
} else {
|
|
||||||
abandonAudioFocus()
|
abandonAudioFocus()
|
||||||
}
|
|
||||||
am.mode = AudioManager.MODE_NORMAL
|
am.mode = AudioManager.MODE_NORMAL
|
||||||
proximitySensing(false)
|
proximitySensing(false)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user