[calls] call: Use protocol fallback



commit c12b7a8c69656205ccf9e0b89dce1a08fe83388a
Author: Evangelos Ribeiro Tzaras <devrtz fortysixandtwo eu>
Date:   Sat Dec 11 09:29:49 2021 +0100

    call: Use protocol fallback
    
    We're falling back to "tel" as the default case.

 plugins/sip/calls-sip-call.c | 8 --------
 src/calls-call.c             | 2 +-
 2 files changed, 1 insertion(+), 9 deletions(-)
---
diff --git a/plugins/sip/calls-sip-call.c b/plugins/sip/calls-sip-call.c
index a9c816fb..919e8fe5 100644
--- a/plugins/sip/calls-sip-call.c
+++ b/plugins/sip/calls-sip-call.c
@@ -115,13 +115,6 @@ try_setting_up_media_pipeline (CallsSipCall *self)
 }
 
 
-static const char *
-calls_sip_call_get_protocol (CallsCall *call)
-{
-  return get_protocol_from_address (calls_call_get_id (call));
-}
-
-
 static void
 calls_sip_call_answer (CallsCall *call)
 {
@@ -265,7 +258,6 @@ calls_sip_call_class_init (CallsSipCallClass *klass)
   object_class->set_property = calls_sip_call_set_property;
   object_class->finalize = calls_sip_call_finalize;
 
-  call_class->get_protocol = calls_sip_call_get_protocol;
   call_class->answer = calls_sip_call_answer;
   call_class->hang_up = calls_sip_call_hang_up;
 
diff --git a/src/calls-call.c b/src/calls-call.c
index 9e565da5..5338038c 100644
--- a/src/calls-call.c
+++ b/src/calls-call.c
@@ -80,7 +80,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (CallsCall, calls_call, G_TYPE_OBJECT)
 static const char *
 calls_call_real_get_protocol (CallsCall *self)
 {
-  return NULL;
+  return get_protocol_from_address_with_fallback (calls_call_get_id (self));
 }
 
 static void


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