Dear Guillaume,
Actually I'm trying to add the DNS SRV lookup service to choose the best proxy to connect to, I almost finished the selection algorithm according to the standard IETF algorithm which I can share if you liked. So I removed setting the proxy and domain from the settings activity, hacking the initFromConf() to ask the my DNS SRV records lookup service to get it the best proxy, but I need to redo this operation and ask for new proxy if the registration failed till I get a successful registration.
What I guess now that I should:
-
Extract some of the initFromConf() code which seem to actually registers in a reusable method hack
- Is there a way/need to un-register?
- Hack the LinphoneService.onRegistrationStateChanged() in some way to retry , any clues?
- What was really interesting is that watching the log, the application re-registers automatically almost every 1 minutes, even if it is in background!, is that true? why is that? and where can I find the code do that?
Many Thanks in advance,