OpenVPN stays connected on iOS with Bria VOIP. How?
Posted: Thu Nov 03, 2016 2:47 pm
We have been using OpenVPN Connect on iOS for our project and have a requirement for the VPN to stay connected even when the phone is sleeping. This has been a major sticking point for us and we were thinking about switching to an IKEv2 solution to comply with Apple requirements for Always-On VPN. However, we noticed a scenario where the VPN seems to stay connected and wondered if you have seen this or know how this is working.
Part of our setup/solution requires VOIP. We would like to go with open source, but we also tried the Bria VOIP app. When Bria is running and an account is registered, the OpenVPN client appears to stay connected even while the phone is asleep. I am wondering if this has anything to do with the fact that VOIP is one of the types of apps that can stay running in the background of iOS (along with apps that provide location services and a few other types)? If that is the case, I thought maybe it had to do with the length of time between keep-alives. But then I tested Bria on wifi and cellular, and with keep-alives set to as high as 200 seconds, and yet it still stays connected.
For open source VOIP, we are looking at Linphone. But with Linphone running, OpenVPN DOES NOT stay connected when the phone goes to sleep.
Has anyone seen this behavior? Any idea what Bria could be doing that allows the VPN to stay connected? We would really like to continue to use OpenVPN, but we also need to be able to stay connected. If we can figure out how Bria keeps the VPN connected, maybe we can implement that for Linphone or whatever open source solution we use.
Part of our setup/solution requires VOIP. We would like to go with open source, but we also tried the Bria VOIP app. When Bria is running and an account is registered, the OpenVPN client appears to stay connected even while the phone is asleep. I am wondering if this has anything to do with the fact that VOIP is one of the types of apps that can stay running in the background of iOS (along with apps that provide location services and a few other types)? If that is the case, I thought maybe it had to do with the length of time between keep-alives. But then I tested Bria on wifi and cellular, and with keep-alives set to as high as 200 seconds, and yet it still stays connected.
For open source VOIP, we are looking at Linphone. But with Linphone running, OpenVPN DOES NOT stay connected when the phone goes to sleep.
Has anyone seen this behavior? Any idea what Bria could be doing that allows the VPN to stay connected? We would really like to continue to use OpenVPN, but we also need to be able to stay connected. If we can figure out how Bria keeps the VPN connected, maybe we can implement that for Linphone or whatever open source solution we use.