1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-17 16:05:36 +00:00

call: Use protocol fallback

We're falling back to "tel" as the default case.
This commit is contained in:
Evangelos Ribeiro Tzaras 2021-12-11 09:29:49 +01:00
parent dbfa593a07
commit c12b7a8c69
2 changed files with 1 additions and 9 deletions

View file

@ -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 static void
calls_sip_call_answer (CallsCall *call) 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->set_property = calls_sip_call_set_property;
object_class->finalize = calls_sip_call_finalize; 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->answer = calls_sip_call_answer;
call_class->hang_up = calls_sip_call_hang_up; call_class->hang_up = calls_sip_call_hang_up;

View file

@ -80,7 +80,7 @@ G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (CallsCall, calls_call, G_TYPE_OBJECT)
static const char * static const char *
calls_call_real_get_protocol (CallsCall *self) calls_call_real_get_protocol (CallsCall *self)
{ {
return NULL; return get_protocol_from_address_with_fallback (calls_call_get_id (self));
} }
static void static void