Refresh a proxy registration. This is useful if for example you resuming from suspend, thus IP address may have changed.
void linphone_core_refresh_registers(LinphoneCore* lc) {
const MSList *elem;
if (!lc->network_reachable) {
ms_warning("Refresh register operation not available (network unreachable)");
return;
}
else
ms_warning("Enter Refresh register operation");
elem=linphone_core_get_proxy_config_list(lc);
for(;elem!=NULL;elem=elem->next){
LinphoneProxyConfig *cfg=(LinphoneProxyConfig*)elem->data;
if (linphone_proxy_config_register_enabled(cfg) && linphone_proxy_config_get_expires(cfg)>0) {
linphone_proxy_config_refresh_register(cfg);
}
}
}