sip: origin: Use CallsCredentials and adapt to changes

All parts not related to credentials are now being set when creating the nua
handles and then updated with nua_set_params() when the credentials get updated.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-04-28 00:26:10 +02:00
parent 3f72d34c49
commit 5d0de3d299
5 changed files with 272 additions and 281 deletions

View File

@@ -26,6 +26,7 @@
#include <glib-object.h>
#include "calls-credentials.h"
#include "calls-provider.h"
G_BEGIN_DECLS
@@ -36,14 +37,8 @@ G_DECLARE_FINAL_TYPE (CallsSipProvider, calls_sip_provider, CALLS, SIP_PROVIDER,
CallsSipProvider *calls_sip_provider_new ();
void calls_sip_provider_add_origin (CallsSipProvider *self,
const gchar *name,
const gchar *user,
const gchar *password,
const gchar *host,
gint port,
CallsCredentials *credentials,
gint local_port,
const gchar *protocol,
gboolean direct_connection,
gboolean auto_connect);
gboolean direct_connection);
G_END_DECLS