sip: provider: Add API to remove origins

This commit is contained in:
Evangelos Ribeiro Tzaras
2021-07-06 01:36:11 +02:00
committed by Evangelos Ribeiro Tzaras
parent 1a4b501653
commit 1749dcec60
4 changed files with 23 additions and 0 deletions

View File

@@ -1380,6 +1380,7 @@ calls_sip_origin_set_credentials (CallsSipOrigin *self,
const char *password,
const char *display_name,
const char *transport_protocol,
gint port,
gboolean auto_connect)
{
g_return_if_fail (CALLS_IS_SIP_ORIGIN (self));
@@ -1415,6 +1416,8 @@ calls_sip_origin_set_credentials (CallsSipOrigin *self,
else
self->transport_protocol = g_strdup ("UDP");
self->port = port;
/* Propagate changes to nua stack */
update_nua (self);
}