Linphone is an open-source VoIP software offering HD voice and video calls, instant messaging, and audio/video conferencing. It supports multiple platforms, including smartphones, desktops, and embedded systems, with end-to-end encryption for secure communication. Linphone provides APIs and SDKs for developers to create custom VoIP and messaging solutions, making it a versatile tool for personal and enterprise use.
To fully cancel and prevent automatic SIP registration in Linphone, you need to follow these steps:
When the user logs out, you need to unregister the SIP account and remove the proxy configuration to prevent automatic registration on the next app launch.
Unregister the SIP account:
objective-c
linphone_proxy_config_enable_register(proxyCfg, 0);
Remove the proxy configuration:
objective-c
linphone_core_remove_proxy_config(linphoneCore, proxyCfg);
self.proxyCfg = nil;
Remove the authentication information:
objective-c
linphone_core_remove_auth_info(linphoneCore, authInfo);
self.authInfo = nil;
To ensure that Linphone does not automatically register again, clear all the added proxy configurations and authentication information.
objective-c
linphone_core_clear_proxy_configs(linphoneCore);
linphone_core_clear_all_auth_info(linphoneCore);
Here is an example of how you might implement the disconnectAccount
method:
objective-c
(void)disconnectAccount {
if (self.proxyCfg) {
linphone_proxy_config_enable_register(self.proxyCfg, 0);
linphone_core_remove_proxy_config(linphoneCore, self.proxyCfg);
self.proxyCfg = nil;
}
if (self.authInfo) {
linphone_core_remove_auth_info(linphoneCore, self.authInfo);
self.authInfo = nil;
}
linphone_core_clear_proxy_configs(linphoneCore);
linphone_core_clear_all_auth_info(linphoneCore);
}
This approach ensures that the SIP registration is fully cleared and will not be re-established automatically when the app is restarted unless a new configuration is provided.
Zoiper is a versatile VoIP softphone solution trusted by businesses of all sizes, including call centers and service providers. It offers seamless compatibility with multiple operating systems and devices, enabling audio and video calls, voicemail-to-email, conferencing, and more. With free and premium options, Zoiper is designed to simplify communication while being cost-effective and user-friendly. Ideal for remote teams and enterprises seeking reliable voice communication integration.