Update sip “expires” of existing accounts to be 1 month (2629800 seconds)

This commit is contained in:
QuentinArguillere 2023-04-07 12:12:52 +02:00
parent 61047e3ea0
commit 0298f986ca

View file

@ -502,6 +502,8 @@ static int check_should_migrate_images(void *data, int argc, char **argv, char *
if (strcmp(appDomain.UTF8String, linphone_account_params_get_domain(newAccountParams)) == 0 && !linphone_account_params_rtp_bundle_enabled(newAccountParams)) {
linphone_account_params_enable_rtp_bundle(newAccountParams, true);
linphone_account_set_params(account,newAccountParams);
LOGI(@"Setting the sip 'expires' parameters of existing account to 1 month (2629800 seconds)");
linphone_account_params_set_expires(newAccountParams, 2629800);
}
linphone_account_params_unref(newAccountParams);