bluez5: backend-native: Check current calls on SLC completion

This allows to create the calls existing before the HFP connection.
This commit is contained in:
Frédéric Danis 2024-11-07 15:15:46 +01:00 committed by Wim Taymans
parent 63e1c48c8b
commit 627515f641

View file

@ -2146,6 +2146,14 @@ static bool rfcomm_hfp_hf(struct rfcomm *rfcomm, char* token)
}
telephony_ag_register(rfcomm->telephony_ag);
if (rfcomm->hfp_hf_clcc) {
rfcomm_send_cmd(rfcomm, "AT+CLCC");
rfcomm->hf_state = hfp_hf_slc2;
break;
} else {
// TODO: Create calls if CIND reports one during SLC setup
}
/* Report volume on SLC establishment */
SPA_FALLTHROUGH;
case hfp_hf_slc2: