sip: provider: Add argument to _add_origin() whether to store credentials

This allows us to avoid unnecessary saving to disk during initial account
loading.
This commit is contained in:
Evangelos Ribeiro Tzaras
2021-07-08 17:27:09 +02:00
committed by Evangelos Ribeiro Tzaras
parent e9f155678e
commit 3f12b3fcd5
4 changed files with 23 additions and 11 deletions

View File

@@ -370,7 +370,8 @@ setup_sip_origins (SipFixture *fixture,
0,
FALSE,
TRUE,
5060);
5060,
FALSE);
fixture->origin_bob =
calls_sip_provider_add_origin_full (fixture->provider,
@@ -382,7 +383,8 @@ setup_sip_origins (SipFixture *fixture,
0,
FALSE,
TRUE,
5061);
5061,
FALSE);
fixture->origin_offline =
calls_sip_provider_add_origin_full (fixture->provider,
@@ -394,7 +396,8 @@ setup_sip_origins (SipFixture *fixture,
0,
FALSE,
FALSE,
0);
0,
FALSE);
}