void linphone_proxy_config_refresh_register(LinphoneProxyConfig * cfg)

来源:互联网 发布:淘宝网上购物的步骤 编辑:程序博客网 时间:2024/06/06 02:34

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);        }    }}
0 0
原创粉丝点击