mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-07 05:53:06 +00:00
revert my changes about reusing sip.instance, it is not compatible with tests checking call forking
This commit is contained in:
parent
272d1ac8ea
commit
2b2b138f43
1 changed files with 0 additions and 5 deletions
|
|
@ -23,7 +23,6 @@ struct _Account{
|
|||
LinphoneAddress *identity;
|
||||
LinphoneAddress *modified_identity;
|
||||
char *password;
|
||||
char *instance_id;
|
||||
int created;
|
||||
int done;
|
||||
int auth_requested;
|
||||
|
|
@ -50,7 +49,6 @@ Account *account_new(LinphoneAddress *identity, const char *unique_id){
|
|||
void account_destroy(Account *obj){
|
||||
linphone_address_unref(obj->identity);
|
||||
linphone_address_unref(obj->modified_identity);
|
||||
ms_free(obj->instance_id);
|
||||
ms_free(obj->password);
|
||||
ms_free(obj);
|
||||
}
|
||||
|
|
@ -126,7 +124,6 @@ void account_create_on_server(Account *account, const LinphoneProxyConfig *refcf
|
|||
vtable.registration_state_changed=account_created_on_server_cb;
|
||||
vtable.auth_info_requested=account_created_auth_requested_cb;
|
||||
lc=configure_lc_from(&vtable,liblinphone_tester_file_prefix,NULL,account);
|
||||
account->instance_id = ms_strdup(lp_config_get_string(lc->config,"misc","uuid",NULL));
|
||||
tr.udp_port=LC_SIP_TRANSPORT_RANDOM;
|
||||
tr.tcp_port=LC_SIP_TRANSPORT_RANDOM;
|
||||
tr.tls_port=LC_SIP_TRANSPORT_RANDOM;
|
||||
|
|
@ -205,9 +202,7 @@ LinphoneAddress *account_manager_check_account(AccountManager *m, LinphoneProxyC
|
|||
|
||||
if (create_account){
|
||||
account_create_on_server(account,cfg);
|
||||
lp_config_set_string(lc->config, "misc", "uuid", account->instance_id);
|
||||
}
|
||||
sal_set_uuid(lc->sal, account->instance_id);
|
||||
ai=linphone_auth_info_new(linphone_address_get_username(account->modified_identity),
|
||||
NULL,
|
||||
account->password,NULL,NULL,linphone_address_get_domain(account->modified_identity));
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue