mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: backend-native: Add ATDdd...dd; support
This allows to dial a number. Memory dialing (ATD>nnn...;) is not supported as it requests access to the contact application.
This commit is contained in:
parent
20572a1789
commit
3566b0739b
3 changed files with 138 additions and 0 deletions
|
|
@ -1087,6 +1087,20 @@ next_indicator:
|
|||
rfcomm_send_error(rfcomm, error);
|
||||
return true;
|
||||
}
|
||||
} else if (spa_strstartswith(buf, "ATD")) {
|
||||
char number[30];
|
||||
enum cmee_error error;
|
||||
|
||||
if (sscanf(buf, "ATD%30s;", number) != 1) {
|
||||
spa_log_debug(backend->log, "Failed to parse ATD: \"%s\"", buf);
|
||||
rfcomm_send_error(rfcomm, CMEE_AG_FAILURE);
|
||||
return true;
|
||||
}
|
||||
|
||||
if (!mm_do_call(backend->modemmanager, number, rfcomm, &error)) {
|
||||
rfcomm_send_error(rfcomm, error);
|
||||
return true;
|
||||
}
|
||||
} else if (spa_strstartswith(buf, "AT+CHUP")) {
|
||||
enum cmee_error error;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue