[calls] dbus: Set can-dtmf property



commit 0761c4a53a811eba9145e56a0063f6ca30b03b8d
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Thu Nov 18 16:17:16 2021 +0100

    dbus: Set can-dtmf property
    
    This lets consumers on DBus know if this call is capable of sending DTMF.

 src/calls-dbus-manager.c | 1 +
 1 file changed, 1 insertion(+)
---
diff --git a/src/calls-dbus-manager.c b/src/calls-dbus-manager.c
index ce8cf2e2..1c7e0dfa 100644
--- a/src/calls-dbus-manager.c
+++ b/src/calls-dbus-manager.c
@@ -149,6 +149,7 @@ call_added_cb (CallsDBusManager *self, CallsCall *call)
   g_object_bind_property (call, "inbound", iface, "inbound", G_BINDING_SYNC_CREATE);
   g_object_bind_property (call, "number", iface, "id", G_BINDING_SYNC_CREATE);
   g_object_bind_property (call, "protocol", iface, "protocol", G_BINDING_SYNC_CREATE);
+  g_object_set (iface, "can-dtmf", calls_call_can_dtmf (call), NULL);
   /* TODO: once calls supports encryption */
   calls_dbus_calls_call_set_encrypted (iface, FALSE);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]