--- profiles/audio/telephony.c | 15 +++++++++++++++ profiles/audio/telephony.h | 1 + 2 files changed, 16 insertions(+) diff --git a/profiles/audio/telephony.c b/profiles/audio/telephony.c index a5dace7c3..9e10a94a4 100644 --- a/profiles/audio/telephony.c +++ b/profiles/audio/telephony.c @@ -791,3 +791,18 @@ void telephony_call_set_line_id(struct call *call, const char *line_id) call->path, TELEPHONY_CALL_INTERFACE, "LineIdentification"); } + +void telephony_call_set_multiparty(struct call *call, bool multiparty) +{ + if (call->multiparty == multiparty) + return; + + DBG("device %s multiparty %u -> %u", call->path, call->multiparty, + multiparty); + + call->multiparty = multiparty; + + g_dbus_emit_property_changed(btd_get_dbus_connection(), + call->path, TELEPHONY_CALL_INTERFACE, + "Multiparty"); +} diff --git a/profiles/audio/telephony.h b/profiles/audio/telephony.h index 5f2a4ae4c..9541d3edd 100644 --- a/profiles/audio/telephony.h +++ b/profiles/audio/telephony.h @@ -115,3 +115,4 @@ void telephony_call_unregister_interface(struct call *call); void telephony_call_set_state(struct call *call, enum call_state state); void telephony_call_set_line_id(struct call *call, const char *line_id); +void telephony_call_set_multiparty(struct call *call, bool multiparty); -- 2.43.0