spa: bluez: backend-native: Fix +CNUM reply

PTS test HFP/AG/NUM/BV-01-C expects to receive 5 items, the last one
representing service type which could be 4 for voice or 5 for fax.
This commit is contained in:
Frédéric Danis 2025-11-12 15:49:50 +01:00 committed by Wim Taymans
parent 99dbd109ce
commit 5d39e1357e

View file

@ -1307,7 +1307,7 @@ next_indicator:
type = INTERNATIONAL_NUMBER; type = INTERNATIONAL_NUMBER;
else else
type = NATIONAL_NUMBER; type = NATIONAL_NUMBER;
rfcomm_send_reply(rfcomm, "+CNUM: ,\"%s\",%u", backend->modem.own_number, type); rfcomm_send_reply(rfcomm, "+CNUM: ,\"%s\",%u,,4", backend->modem.own_number, type);
} }
rfcomm_send_reply(rfcomm, "OK"); rfcomm_send_reply(rfcomm, "OK");
} else if (spa_strstartswith(buf, "AT+COPS=")) { } else if (spa_strstartswith(buf, "AT+COPS=")) {