{"action":"created","issue":{"url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/145","repository_url":"https://api.github.com/repos/twilio/voice-quickstart-android","labels_url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/145/labels{/name}","comments_url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/145/comments","events_url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/145/events","html_url":"https://github.com/twilio/voice-quickstart-android/issues/145","id":296182982,"number":145,"title":"Terminating call from caller's end before receiver accepts the call does not kill the call dialog on the receiver's end","user":{"login":"yashs360","id":34504243,"avatar_url":"https://avatars3.githubusercontent.com/u/34504243?v=4","gravatar_id":"","url":"https://api.github.com/users/yashs360","html_url":"https://github.com/yashs360","followers_url":"https://api.github.com/users/yashs360/followers","following_url":"https://api.github.com/users/yashs360/following{/other_user}","gists_url":"https://api.github.com/users/yashs360/gists{/gist_id}","starred_url":"https://api.github.com/users/yashs360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yashs360/subscriptions","organizations_url":"https://api.github.com/users/yashs360/orgs","repos_url":"https://api.github.com/users/yashs360/repos","events_url":"https://api.github.com/users/yashs360/events{/privacy}","received_events_url":"https://api.github.com/users/yashs360/received_events","type":"User","site_admin":false},"labels":[{"id":433158579,"url":"https://api.github.com/repos/twilio/voice-quickstart-android/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"kbagchiGWC","id":10856725,"avatar_url":"https://avatars2.githubusercontent.com/u/10856725?v=4","gravatar_id":"","url":"https://api.github.com/users/kbagchiGWC","html_url":"https://github.com/kbagchiGWC","followers_url":"https://api.github.com/users/kbagchiGWC/followers","following_url":"https://api.github.com/users/kbagchiGWC/following{/other_user}","gists_url":"https://api.github.com/users/kbagchiGWC/gists{/gist_id}","starred_url":"https://api.github.com/users/kbagchiGWC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbagchiGWC/subscriptions","organizations_url":"https://api.github.com/users/kbagchiGWC/orgs","repos_url":"https://api.github.com/users/kbagchiGWC/repos","events_url":"https://api.github.com/users/kbagchiGWC/events{/privacy}","received_events_url":"https://api.github.com/users/kbagchiGWC/received_events","type":"User","site_admin":false},"assignees":[{"login":"kbagchiGWC","id":10856725,"avatar_url":"https://avatars2.githubusercontent.com/u/10856725?v=4","gravatar_id":"","url":"https://api.github.com/users/kbagchiGWC","html_url":"https://github.com/kbagchiGWC","followers_url":"https://api.github.com/users/kbagchiGWC/followers","following_url":"https://api.github.com/users/kbagchiGWC/following{/other_user}","gists_url":"https://api.github.com/users/kbagchiGWC/gists{/gist_id}","starred_url":"https://api.github.com/users/kbagchiGWC/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kbagchiGWC/subscriptions","organizations_url":"https://api.github.com/users/kbagchiGWC/orgs","repos_url":"https://api.github.com/users/kbagchiGWC/repos","events_url":"https://api.github.com/users/kbagchiGWC/events{/privacy}","received_events_url":"https://api.github.com/users/kbagchiGWC/received_events","type":"User","site_admin":false}],"milestone":null,"comments":9,"created_at":"2018-02-11T11:30:13Z","updated_at":"2018-02-14T22:19:44Z","closed_at":null,"author_association":"NONE","body":"### Description\r\n\r\nOn called device, terminating call from caller's device does not trigger Call.Listener disconnect if Called person doesn't accept call\r\n\r\n### Steps to Reproduce\r\n\r\n1. Bob calls Alice\r\n2. Alice doesn't pick the call\r\n3. Bob disconnects the call\r\n4. Alice still has the call dialog on her screen. Firebase message is received (twi_message_type=twilio.voice.cancel). But Call.Listener onDisconnect() is not triggered for Alice.\r\n\r\nThis is not the case if Alice picks the call and then disconnects. Then the call dialog gets terminated for both devices.\r\n\r\n#### Code\r\n\r\nSame code as this quick start, but divided the Activity in 2 activities. One for list of contacts and a separate Call activity for call.\r\n\r\n#### Expected Behavior\r\nAlice's call activity should be terminated, and the Call.Listener onDisconnect should be called, so something similar like onRemoteHungup should be in place.\r\n\r\n#### Actual Behavior\r\n\r\nAlice still sees the Call dialog, even though the remote has hung up.\r\n\r\n#### Reproduces How Often\r\n\r\n100%\r\n\r\n#### Logs\r\n\r\n```\r\nAlice's logs:\r\n...\r\n...\r\n>> Bob calls Alice here\r\nD/VoiceFCMService: Received onMessageReceived()\r\nD/VoiceFCMService: Bundle data: {twi_account_sid=, twi_message_type=twilio.voice.call, twi_to=, twi_message_id=, twi_from= .....}\r\n...\r\n...\r\n>> Bob hungs up\r\nD/VoiceFCMService: Received onMessageReceived()\r\nD/VoiceFCMService: Bundle data: {twi_account_sid=, twi_to=, twi_message_type=twilio.voice.cancel, twi_call_sid=, twi_message_id=, twi_from=}\r\n...\r\n...\r\n>> Nothing happens\r\n```\r\n\r\nWhat is the right way to handle the twilio.voice.cancel in the VoiceFCMService? \r\n\r\n### Versions\r\n\r\n// Twilio calling stuffs\r\n    compile 'com.twilio:voice-android:2.0.3'\r\n    compile 'com.google.firebase:firebase-core:11.8.0'\r\n    compile 'com.google.firebase:firebase-messaging:11.8.0'\r\n\r\n#### Voice Android SDK\r\n\r\n2.0.3\r\n\r\n#### OS Version\r\n\r\nAndroid  7.0, SDK built for x86\r\n\r\n#### Device Model\r\n\r\nNexus 6p\r\n"},"comment":{"url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/comments/365763971","html_url":"https://github.com/twilio/voice-quickstart-android/issues/145#issuecomment-365763971","issue_url":"https://api.github.com/repos/twilio/voice-quickstart-android/issues/145","id":365763971,"user":{"login":"yashs360","id":34504243,"avatar_url":"https://avatars3.githubusercontent.com/u/34504243?v=4","gravatar_id":"","url":"https://api.github.com/users/yashs360","html_url":"https://github.com/yashs360","followers_url":"https://api.github.com/users/yashs360/followers","following_url":"https://api.github.com/users/yashs360/following{/other_user}","gists_url":"https://api.github.com/users/yashs360/gists{/gist_id}","starred_url":"https://api.github.com/users/yashs360/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yashs360/subscriptions","organizations_url":"https://api.github.com/users/yashs360/orgs","repos_url":"https://api.github.com/users/yashs360/repos","events_url":"https://api.github.com/users/yashs360/events{/privacy}","received_events_url":"https://api.github.com/users/yashs360/received_events","type":"User","site_admin":false},"created_at":"2018-02-14T22:19:44Z","updated_at":"2018-02-14T22:19:44Z","author_association":"NONE","body":"All good. Thanks for all the help. 🎉 "}}
{"actor":{"display_login":"yashs360"}}