[calls] plugins: Implement call-type property



commit 04605efac753dfc089c03e9d6efed2b05805ecfd
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Sat Feb 12 14:37:28 2022 +0100

    plugins: Implement call-type property

 plugins/dummy/calls-dummy-call.c | 1 +
 plugins/mm/calls-mm-call.c       | 1 +
 plugins/ofono/calls-ofono-call.c | 1 +
 plugins/sip/calls-sip-call.c     | 1 +
 4 files changed, 4 insertions(+)
---
diff --git a/plugins/dummy/calls-dummy-call.c b/plugins/dummy/calls-dummy-call.c
index 38db95c4..1cfb064a 100644
--- a/plugins/dummy/calls-dummy-call.c
+++ b/plugins/dummy/calls-dummy-call.c
@@ -105,6 +105,7 @@ calls_dummy_call_new (const gchar *id,
   return g_object_new (CALLS_TYPE_DUMMY_CALL,
                        "id", id,
                        "inbound", inbound,
+                       "call-type", CALLS_CALL_TYPE_CELLULAR,
                        NULL);
 }
 
diff --git a/plugins/mm/calls-mm-call.c b/plugins/mm/calls-mm-call.c
index 2091f2b5..b055cf65 100644
--- a/plugins/mm/calls-mm-call.c
+++ b/plugins/mm/calls-mm-call.c
@@ -366,6 +366,7 @@ calls_mm_call_new (MMCall *mm_call)
   return g_object_new (CALLS_TYPE_MM_CALL,
                        "mm-call", mm_call,
                        "inbound", inbound,
+                       "call-type", CALLS_CALL_TYPE_CELLULAR,
                        NULL);
 }
 
diff --git a/plugins/ofono/calls-ofono-call.c b/plugins/ofono/calls-ofono-call.c
index 7ae8922c..3fd78b38 100644
--- a/plugins/ofono/calls-ofono-call.c
+++ b/plugins/ofono/calls-ofono-call.c
@@ -328,6 +328,7 @@ calls_ofono_call_new (GDBOVoiceCall *voice_call,
                        "name", name,
                        "inbound", inbound,
                        "state", state,
+                       "call-type", CALLS_CALL_TYPE_CELLULAR,
                        NULL);
 }
 
diff --git a/plugins/sip/calls-sip-call.c b/plugins/sip/calls-sip-call.c
index 9740e03f..8f5d041b 100644
--- a/plugins/sip/calls-sip-call.c
+++ b/plugins/sip/calls-sip-call.c
@@ -382,6 +382,7 @@ calls_sip_call_new (const gchar  *id,
                        "inbound", inbound,
                        "own-ip", own_ip,
                        "nua-handle", handle,
+                       "call-type", CALLS_CALL_TYPE_SIP_VOICE,
                        NULL);
 }
 


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