BelledonneCommunications / linphone-xamarin

Linphone.org mirror for linphone-xamarin (git://git.linphone.org/linphone-xamarin.git)
https://www.linphone.org/
GNU General Public License v3.0
26 stars 21 forks source link

Registration issue on iOS #25

Open CatalinPrata opened 5 years ago

CatalinPrata commented 5 years ago

Hello,

I am having trouble registering a user to the sip server on iOS using the Xamarin solution. Android works just fine using the exact same sample but on iOS I am getting: Refresh register operation not available (network unreachable)

The phone is connected to the network and I can access the internet. (also tried on multiple iPhones with the same result)

I was trying to set 'Core.NetworkReachable = true;' to true just before calling 'Core.RefreshRegisters();' but when I call 'Core.IsNetworkReachable' it returns false :(.

I am using the Xamarin sample from the sdk version 4.1.

Anyone has some ideas what can I do to make it work?

Thanks, Catalin

anders9ustafsson commented 5 years ago

@CatalinPrata We are using the following workaround, setting the flag register_only_when_network_is_up in the sip section to 0 (FALSE) in the Linphone configuration before registering. We are doing this in a configuration file that we use when initializing the Core object, but the flag could probably also be set in the existing Core.Config object before registering.

VictorKochetkov commented 5 years ago

Same issue faced on Xamarin iOS app. Same code correctly works on Xamarin Android app.