bluez5: backend-native: Fix hangup of waiting call

3-way incoming calls are created in waiting state. When those calls are
hang-up before being active, the +CIEV: (callsetup = 0) should also be
managed for waiting calls.
This commit is contained in:
Frédéric Danis 2025-05-05 11:28:20 +02:00 committed by Wim Taymans
parent afa7ebc032
commit 27fecd3c56

View file

@ -2088,7 +2088,7 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
struct spa_bt_telephony_call *call, *tcall; struct spa_bt_telephony_call *call, *tcall;
spa_list_for_each_safe(call, tcall, &rfcomm->telephony_ag->call_list, link) { spa_list_for_each_safe(call, tcall, &rfcomm->telephony_ag->call_list, link) {
if (call->state == CALL_STATE_DIALING || call->state == CALL_STATE_ALERTING || if (call->state == CALL_STATE_DIALING || call->state == CALL_STATE_ALERTING ||
call->state == CALL_STATE_INCOMING) { call->state == CALL_STATE_INCOMING || call->state == CALL_STATE_WAITING) {
call->state = CALL_STATE_DISCONNECTED; call->state = CALL_STATE_DISCONNECTED;
telephony_call_notify_updated_props(call); telephony_call_notify_updated_props(call);
telephony_call_destroy(call); telephony_call_destroy(call);