mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-12-16 08:56:45 -05:00
bluez5: backend-native: Add AT+CLIP support
This allows to send the caller number of an incoming call with the RING event.
This commit is contained in:
parent
4a89a13bda
commit
55075915ec
3 changed files with 53 additions and 1 deletions
|
|
@ -899,6 +899,26 @@ bool mm_hangup_call(void *modemmanager, void *user_data, enum cmee_error *error)
|
|||
return true;
|
||||
}
|
||||
|
||||
const char *mm_get_incoming_call_number(void *modemmanager)
|
||||
{
|
||||
struct impl *this = modemmanager;
|
||||
struct call *call_object, *call_tmp;
|
||||
|
||||
call_object = NULL;
|
||||
spa_list_for_each(call_tmp, &this->call_list, link) {
|
||||
if (call_tmp->state == MM_CALL_STATE_RINGING_IN) {
|
||||
call_object = call_tmp;
|
||||
break;
|
||||
}
|
||||
}
|
||||
if (!call_object) {
|
||||
spa_log_debug(this->log, "No ringing in call");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
return call_object->number;
|
||||
}
|
||||
|
||||
void *mm_register(struct spa_log *log, void *dbus_connection, const struct mm_ops *ops, void *user_data)
|
||||
{
|
||||
struct impl *this;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue