-
Notifications
You must be signed in to change notification settings - Fork 695
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
connection errors - server cluster #2256
Comments
Hi @corobin, I checked your Linphone 6 logs, and here's what happens:
Indeed for one of your call the server never answers you with a 200 OK after the 100 trying.
Indeed the server answers you with a 603 DECLINE. This is an issue that we see on a regular basis with voip.ms, but thanks to your logs I'll be able to dig more as you have calls accepted and calls declined in the same log file, that's very interesting. I'll keep you updated. Cheers, |
some additional info: voip.ms suspect it has to do with TLS (certificate?) handling of the clustered environment don't know if that's actually the root cause but the suspicion seems to be consistent with observations, notably:
|
Hi, The variability of symptoms is likely to relate to which backend server is going to process the call. When the call complete sucessfully, AEAD_AES_128_GCM is used by their server. AEAD_AES_128_GCM is rather new (standard was adopted in 2015). Given delays in telecom industry, I would not be surprised that most of their servers do not support it yet. So please try after setting media encryption to "none", and let us know the results. Best regards, Simon |
thanks for looking into this! i changed the transport to TCP in account settings and media encryption to none in advanced settings, and did not observe any problem. v6 log: https://www.linphone.org:444//tmp/6709e813c2281_ae0f9115bf8ea3567b2e.gz i didn't downgrade back to v5 to test i have not been able to reproduce this problem with any other client
i haven't seen the same problem on linphone with any of their single-server PoP either, only came across this with their new clustered PoP |
@smorlat: As a small aside, I notice RFC 4568 section 5.1.1 has a SHOULD requirement
Per the trace, Linphone Android V6 offers four crypto suites in the following order:
The RFC requirement suggests that offer "should" instead be ordered as:
I'm not suggesting this causes the voip.ms cluster interop issue [even if implicated, I suspect it would be tagged against the voip.ms server(s), not Linphone, since there's the well-known guidance: "be strict in what you send but tolerant in what you receive"]. However, I do have two questions, out of curiousity (noting that I have not yet tried Linphone Android v6]:
Thanks. |
Hi @aGrimRepoMan , Just set the
or any other relevant CSV list of srtp crypto suite About the default order, the idea was to be compatible with end points supporting only AES256 based suite but keep using AES128 as the default in order to save CPU in the most common case where AES128 is considered secure enough (to my knowledge there is no indication that AES128 may be weak). This may be less relevant on hardware providing AES functions. The order might also be:
depending on your focus: encryption key size or authentication. |
G'day,
voip.ms introduced a new clustered environment
ca.voip.ms
to provide better availability, instead of the traditional single server points of access.linphone has errors connecting to this new cluster. i have tried other clients on other operating systems and they do not exhibit the same problems.
key configuration info:
server
ca.voip.ms
port 5061
transport TLS
encryption SRTP, set to mandatory on both voip.ms and in app
on linphone 5, calls connect however they are completely static noise, and the lock icon at top right corner shows an "X"
on linphone 6, one of three things happen
a) call is pending for extended period of time, just seems to get stuck on the dialing stage, and neither connects nor fails - occasional
b) call fails and status shows no encryption - very often
c) call successfully connects and status shows encrypted, and sound appears fine - occasional
connect using the config info above
make a call to any number
calls should reliably connect, be encrypted, and sound should be clear
linphone 5
https://www.linphone.org:444//tmp/66f62099ccb20_20161cf2f2a8828c54ab.gz
https://www.linphone.org:444//tmp/66f620f4ef788_77d7f872285e1db6a96d.gz
linphone 6
https://www.linphone.org:444//tmp/66f62d09db90d_266745ce4a6da0ea2083.gz
a) linphone 5
call screen showing "X" on lock (top right). call is completely constant static
version info
b) linphone 6
call screen showing the "stuck at dialing" scenario. screenshot taken at 5 seconds but it goes on until i press hang up
call screen showing the call fail scenario, the call ends by itself and goes back to main screen
main screen showing a sample of failed vs. successfully connected attempts
version info
The text was updated successfully, but these errors were encountered: