{"action":"created","issue":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5983","repository_url":"https://api.github.com/repos/WhisperSystems/Signal-Android","labels_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5983/labels{/name}","comments_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5983/comments","events_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5983/events","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/5983","id":197120482,"number":5983,"title":"Dialing only successful after text message","user":{"login":"s0riak","id":18898449,"avatar_url":"https://avatars.githubusercontent.com/u/18898449?v=3","gravatar_id":"","url":"https://api.github.com/users/s0riak","html_url":"https://github.com/s0riak","followers_url":"https://api.github.com/users/s0riak/followers","following_url":"https://api.github.com/users/s0riak/following{/other_user}","gists_url":"https://api.github.com/users/s0riak/gists{/gist_id}","starred_url":"https://api.github.com/users/s0riak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s0riak/subscriptions","organizations_url":"https://api.github.com/users/s0riak/orgs","repos_url":"https://api.github.com/users/s0riak/repos","events_url":"https://api.github.com/users/s0riak/events{/privacy}","received_events_url":"https://api.github.com/users/s0riak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-12-22T08:32:06Z","updated_at":"2016-12-26T17:54:55Z","closed_at":null,"body":"<!-- This is a bug report template. By following the instructions below and filling out the sections with your information, you will help the developers to get all the necessary data to fix your issue.\r\nYou can also preview your report before submitting it. You may remove sections that aren't relevant to your particular case.\r\n\r\nBefore we begin, please note that this tracker is only for issues, not questions or comments.\r\n\r\nIf you are looking for support, please see our support center instead:\r\nhttp://support.whispersystems.org/\r\nor email support@whispersystems.org\r\n\r\nLet's begin with a checklist: replace the empty checkboxes [ ] below with checked ones [x] accordingly -->\r\n\r\nI have:\r\n- [ x] searched open and closed issues for duplicates\r\n- [ x] read https://github.com/WhisperSystems/Signal-Android/wiki/Submitting-useful-bug-reports\r\n\r\n----------------------------------------\r\n\r\n### Bug description\r\nDailing fails if a contact wasn't receiving a message recently. After sending a text message with random content which is received by the other party without issues, the next attempt for dialing this contact succeeds.\r\nMy speculation is:\r\nThat the message is send via a websocket connection which is open but the dialling relies on long-polling with the intervals getting too long after a long time of inactivity. The message would activate the receiver, making the dialing afterwards possible. I have not had a look at the source or any documentation but guess from experience in other projects.\r\n\r\n### Steps to reproduce\r\n\r\n1. Contact B should not use signal for some hours but has not network interruption etc.\r\n2. Contact A tries to call contact B which should fail (dialing indefinitely)\r\n3. Contact A sends a signal text message to contact B which is received immediately\r\n4. Contact A tries to call contact B which succeeds \r\n\r\n**Actual result:** The call in step 2 fails even though contact B can be reached directly afterwards after sending a text message\r\n**Expected result:** The call in step 2 should succeed (No signal text message should be needed to make the dialing of an available contact work immediately)\r\n\r\n### Screenshots\r\nnot relevant\r\n\r\n### Device info\r\nDevice of contact A:\r\n**Device:** https://www.bq.com/en/aquaris-m5\r\n**Android version:** 6.0.1\r\n**Signal version:** 3.24.1\r\n\r\nDevice of contact B:\r\n**Device:** Samsung GT-I9100G\r\n**Android version:** 4.1.2\r\n**Signal version:** 3.21.3\r\n\r\n\r\n### Link to debug log\r\nnot available\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/comments/269230882","html_url":"https://github.com/WhisperSystems/Signal-Android/issues/5983#issuecomment-269230882","issue_url":"https://api.github.com/repos/WhisperSystems/Signal-Android/issues/5983","id":269230882,"user":{"login":"s0riak","id":18898449,"avatar_url":"https://avatars.githubusercontent.com/u/18898449?v=3","gravatar_id":"","url":"https://api.github.com/users/s0riak","html_url":"https://github.com/s0riak","followers_url":"https://api.github.com/users/s0riak/followers","following_url":"https://api.github.com/users/s0riak/following{/other_user}","gists_url":"https://api.github.com/users/s0riak/gists{/gist_id}","starred_url":"https://api.github.com/users/s0riak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/s0riak/subscriptions","organizations_url":"https://api.github.com/users/s0riak/orgs","repos_url":"https://api.github.com/users/s0riak/repos","events_url":"https://api.github.com/users/s0riak/events{/privacy}","received_events_url":"https://api.github.com/users/s0riak/received_events","type":"User","site_admin":false},"created_at":"2016-12-26T17:54:55Z","updated_at":"2016-12-26T17:54:55Z","body":"@riyapenn it doesn't seem to be the case, that contact B has no internet connection. The signal text message arrived more or less instantly as expected and the dialing afterwards is successful as well. As this has happened multiple times for me and contact B, I doubt that contact B is offline at the first dialing attempt and just comes online in the very moment the text message send right after is delivered, as there are 5 seconds in between."}}
{"actor":{"display_login":"s0riak"}}