Calls always income as missed ones without ringing
I have:
- [x] searched open and closed issues for duplicates
- [x] read https://github.com/WhisperSystems/Signal-Android/wiki/Submitting-useful-bug-reports
Bug description
When Signal is opened in front of me on my phone and via Hangouts PC I hear the other party while his Signal is actually ringing me. My Signal shows no sign that I'm being called. At the end of ringing, when the network automatically disconnects, I immediately receive a "You have a missed call" notification in the chat.
Reproduced on three different WiFi networks with the same person.
The time difference between the two phones is approximately 5 seconds. Both phones are set to synch to carrier time.
Steps to reproduce
- Make phone A call phone B in Signal
- Observe that phone B gets no notification about the incoming call just the missed one.
Device info
Device: Sony F5121 Android version: 7.1.1 Signal version: 4.14.10
Link to debug log
Callee debug log: https://gist.github.com/anonymous/9984ab543d85a181b06b02954564c060 Caller debug log: https://gist.github.com/anonymous/5eae662fee114e5e07a72dbd02c0e92d
This does match my experience also. The issue does seem to be around for about a year: https://github.com/WhisperSystems/Signal-Android/issues/6244 Unfortunately, similar problems seem to be commonplace with other messengers like Riot as well.
As I see, that report is specifically about two clients with time difference bigger than 1 minute. Here, the time difference is not bigger than 5 seconds.
To help the developers, can you please attach logs both from phone A and phone B if you are in a similar situation?
I can confirm missing calls. Clocks in all phones of my family are synchronized because we have another app which requires clock difference not higher than +/- 15 seconds.
I discovered there is a problem with the signal's background task. When I kill Signal and the Signal is killed in memory, after running it again all messages I have not received come to me immediately and I can receive calls. Everything is back to normal.
Signal is excluded from the battery optimization, I am android developer, clocks are synchronized +/- 1 second in all phones. There is a problem with the background task itself. It happens on phones with or without play services. I have many users of Signal and it happens to them. I used to kill Signal every time I wake up my phone, maybe 5 sometimes, 10 times a day and I can receive calls. This behavior is not time dependent of how long the phone was unused with black screen in a deep sleep. Sometimes after reboot I can't receive calls and can't receive messages and I need to kill the app and run it again.
This hang of the process is somehow related to switching between WiFi/LTE/H+/3G when I walk/drive and my phone needs to change from H+ to LTE, LTE+ and when I come in range of my WiFi. After I leave my WiFi and I drive nobody can call me on Signal 50% of the time. I get missing calls so on the next traffic lights I kill the Signal, start it again and all is back to normal. This is not poor RF signal issue because I have 5 bars on LTE, LTE+. It happens when I come back and I have very strong WiFi signal.
It looks like Signal can't negotiate new IP address with the server and it's background process is stuck in any state machine. This is definitely the flaw in the Signal's background behavior.
For example after the reboot / cold start a phone catches one network and changes to another. I have roaming permanently enabled because I am in EU and in my country we have also domestic roaming for better cover of the network. I don't pay extra so I have it always enabled because it helps a lot and in my plan I have unlimited internet something like 100GB, impossible to be consumed. During the WhatsApp call I sometimes hear reconnecting beeps but when it is fast the call is uninterrupted.
During the Signal call the voice call is mostly interrupted forever and half of the time I need to kill the Signal to make it operational again. It is noticeable when I drive through a forest. I drive through a forest twice a day and the coverage of the the internet is spread among some locally roaming operators. When I drive through the forest I may be sure in 50% that the Signal will never receive an incoming call until I kill it.
Some words to the story... I live in a rural area in a single family house constructed of concrete and insulated ceramics. Such material attenuates RF signals especially when they are weak and sources are far away. I have 3 cell towers in my area but far away, let's say 5km. Suppose I sit in one room and I walk to the room on the opposite side of the house with WiFi disabled. My phone hesitates which network to chose and after this there is a big chance I will never receive incoming calls, I will get only call missing messages and no signal to signal text messages. All other apps work properly only Signal is stuck. The same situation but with WiFi enabled. I walk to the basement, I don't have WiFi there or is very weak and of course almost no cellular networks. Phone starts to search like crazy. When I came back the same. The only cure is to kill the Signal app and start it again. It happens on many phone models. From 2017 Android unrooted Samsung to other rooted with original firmware or Lineage OS always updated. Some of them are more susceptible some not. Signal app should better analyze the actual default interface, it's actual IP and react better on frequent changes, maybe reload itself or by a secondary watchdog process. Remember when you kill the Signal process and run it back without rebooting all is back to normal for some time.
@maedoredyti The devs are accepting pull requests for fixes and since you're an Android dev, it'd be awesome if you were able to tackle this!
I suspect it may be a problem of finding out the right interface where the data should go through. I downloaded the project and opened it in Android studio but there are so many files that I can't find the right one responsible for checking own IP on the go when subsequent BTS towers change IP assignment. Can you help me understand how does it work?
It must be a problem with wrong IP, netmask and gateway assignment. When I drive and domestic roaming operator on the go is changed for example from TMobile to Orange my Signal call is disconnected and I need to call again or sometimes kill the app and call again. WhatsApp handles it by longer or shorter reconnecting beep.
I use mostly Visual Studio with Xamarin and I write in C# but I had programmed in Android studio for 3-4 years in the past. I write this https://elkom.com.tw/wp-content/uploads/2017/02/android.jpg and some other apps for PLC controllers with encryption and very strict timestamping +/- 15s and I had problems with communication from IP -> IP on some Android versions. So as you see I have IP -> IP information for the user to debug network.
I have a similar problem to the one described.
Calling from a Samsung Note5 to a Samsung s7, the S7 does not ring but immediately shows a missed call on cancellation from the Note5. Stock roms on all phones.
Android 7.
Calling from the S7 to the Note5 results in a ring tone as expected.
Locking to one network and restarting both phones does not affect the result. This does not appear to be related to network swapping.
Call initiated by a second S7 does not result in a ringtone at the Note5, but does result in an immediate missed call notification.
Multiple attempts at configuration changes (ring volume, override privacy settings etc) have not resulted in a change in behaviour.
Connection established via multiple networks with no change in behaviour. Multiple options tried with routers, no changes in behaviour.
Once connection is established video is stable and high quality suggesting network issues are not involved.
Same problem for me (HTC U11, Android 7) and my girlfriend (HTC M9, Android 6)
No visible or aural indication that a call is being received. We just get a missed call notification.
Locking to one network and restarting both phones does not affect the result. This does not appear to be related to network swapping.
I noticed the same but look... you make a reboot and your phone wakes up and during this wake up a wired process happens. I notice the same after reboot so try to KILL Signal in Apps->Signal->force stop and run it again and try to make a call.
Stopping and restarting the app using force stop on the calling device does not improve the apps performance in my case. The app still shows dialing and never moves to ringing.
I will get the receiving device to force a stop as well sand report back on the issue.
To help the developers with truly valuable information, please:
- Make an unsuccessful call.
- [Signal main menu] > ... > Settings > Advanced > Send debug log > Submit > Paste the given link here.
Do it for both phones.
I can replicate this with phone and emulator with time different of over 2 minutes (the threshold to say a call request is expired). Maybe, if possible, validate that the two devices are synced with a time server? It could be the case where both devices are not synced with any time server and both devices are 5s apart only?
I have tried this worth two phones synched to the same network and showing no time difference. The behaviour is as described. Phone a calls phone b. Phone b does not ring but recites a missed call alert immediately that phone a hangs up. Phone b calls phone a, phone a rings as it should and the call can proceed.
Sent from BlueMail
On 1 Feb 2018, 16:26, at 16:26, Nyoman Ribeka [email protected] wrote:
I can replicate this with phone and emulator with time different of over 2 minutes (the threshold to say a call request is expired). Maybe, if possible, validate that the two devices are synced with a time server? It could be the case where both devices are not synced with any time server and both devices are 5s apart only?
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/signalapp/Signal-Android/issues/7314#issuecomment-362147163
I'm not sure how I would be able to help this 😞
This line in the WebRtcCallService#handleIncomingCall() is one of the place where I think will mark a call as missed call if the timing is off.
Maybe we could add some logging messages in the WebRtcCallService#isIncomingMessageExpired() to print out the current phone time vs the call offer message time?
Half of my contacts have ringing issues. Some of them can be called in both directions but some of them can't initiate call, answer call or both. It can be cured for some time by killing signal process. Phone restart may not cure the situation. After restart we must kill the signal app and start it again. It doesn't meter if the phone is rooted or not if google play services are installed or not. It is rather independent of operating system version. This behavior is rather random. I have "Call missing" many times a day from different persons. I kill signal very often to make it working. It is somehow related to the IP change / BTS change / Wifi change.
Here's a debug log from the time a call was initiated to a phone which i can never connect to. My phone never gets pasty the "dialing" stage, and the other phone never rings, but a missed call shows up on the other phone at the moment my phone stops trying to make the call.
Hope this helps.
https://gist.github.com/999836cf1a4316fdaa7204212abe5b3c
Sent from BlueMail
On 2 Feb 2018, 06:55, at 06:55, Nyoman Ribeka [email protected] wrote:
I'm not sure how I would be able to help this 😞
This line in the WebRtcCallService#handleIncomingCall() is one of the place where I think will mark a call as missed call if the timing is off.
Maybe we could add some logging messages in the WebRtcCallService#isIncomingMessageExpired() to print out the current phone time vs the call offer message time?
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/signalapp/Signal-Android/issues/7314#issuecomment-362348911
Did you try to kill the receiving end ?
I've discovered that the receiving phone gets a missed call notification as soon as the call is made, even thought the calling phone continues to show that it is dialing for the next two minutes. Here is the link to the log of the receiving phone.
https://gist.github.com/1395776538508e0742536964e803a0e3
Regards
Sent from BlueMail
On 2 Feb 2018, 06:55, at 06:55, Nyoman Ribeka [email protected] wrote:
I'm not sure how I would be able to help this 😞
This line in the WebRtcCallService#handleIncomingCall() is one of the place where I think will mark a call as missed call if the timing is off.
Maybe we could add some logging messages in the WebRtcCallService#isIncomingMessageExpired() to print out the current phone time vs the call offer message time?
-- You are receiving this because you commented. Reply to this email directly or view it on GitHub: https://github.com/signalapp/Signal-Android/issues/7314#issuecomment-362348911
Try to kill the Signal app on the receiving phone without restarting your phone. Just kill it and click the icon again. And try to call again. If no result, kill it again, wait 20s and run again and test.