BelledonneCommunications / linphone-sdk

Mirror for linphone-sdk (https://gitlab.linphone.org/BC/public/linphone-sdk.git)
GNU Affero General Public License v3.0
107 stars 82 forks source link

[Bug]: Connecting a server using DNS SRV when one of the server fails #447

Open mdhanif-simformsolutions opened 1 week ago

mdhanif-simformsolutions commented 1 week ago

Context

I am using the linphone-sdk to develop my own calling app between iOS, android and desktop.

General information

Expected behaviour

Should be able to connect on any other server which is available and found in the SRV records.

To Reproduce

I have a url such as abc.net and with that SRV attached is abc1.net

Now when I connect on abc.net it works as normal connection, but if I put abc.net in maintenance mode theoretically it should have a SRV lookup and get abc1.net and should try to connect there but instead it just throw an error that connection failed and from the logs I can see is that SRV lookup failed.

I have enable SRV lookup in the code using :- core.enableDnsSrv(true)

I also tried setting DNS URL's using :- core.setDnsServers()

Both of this didn't work.

Additional context

No response

SDK logs URL

No response

mdhanif-simformsolutions commented 1 week ago

@Viish

Interestingly, It got connected to another server but it took almost 2-3 minutes to make connection on a new server.

If I block ip using my firewall then it jumps to another server within seconds, but If I put my server in maintenance mode it take 2-3 minutes to connect on another server.