How to unregister from SIP in linphone?
ios, iphone, linphone, sip
Solution
// Get the default proxyCfg in Linphone
LinphoneProxyConfig* proxyCfg = NULL;
linphone_core_get_default_proxy([LinphoneManager getLc], &proxyCfg);
// To unregister from SIP
linphone_proxy_config_edit(proxyCfg);
linphone_proxy_config_enable_register(proxyCfg, false);
linphone_proxy_config_done(proxyCfg);
// And re-register when want
linphone_proxy_config_edit(proxyCfg);
linphone_proxy_config_enable_register(proxyCfg, true);
linphone_proxy_config_done(proxyCfg);
Problem
Is there a way to unregister from SIP and re-register when I want in Linphone? I can't find the unregister function. Should I destroy the linphone core completely for that? Or is there a more soft solution? Currently I am trying to implement it in iOS, but later this will be required for additional platforms. Thank you.