{"action":"opened","issue":{"url":"https://api.github.com/repos/onsip/SIP.js/issues/751","repository_url":"https://api.github.com/repos/onsip/SIP.js","labels_url":"https://api.github.com/repos/onsip/SIP.js/issues/751/labels{/name}","comments_url":"https://api.github.com/repos/onsip/SIP.js/issues/751/comments","events_url":"https://api.github.com/repos/onsip/SIP.js/issues/751/events","html_url":"https://github.com/onsip/SIP.js/issues/751","id":513373124,"node_id":"MDU6SXNzdWU1MTMzNzMxMjQ=","number":751,"title":"Sessions after a canceled session are rejected automatically","user":{"login":"yarcub","id":188670,"node_id":"MDQ6VXNlcjE4ODY3MA==","avatar_url":"https://avatars2.githubusercontent.com/u/188670?v=4","gravatar_id":"","url":"https://api.github.com/users/yarcub","html_url":"https://github.com/yarcub","followers_url":"https://api.github.com/users/yarcub/followers","following_url":"https://api.github.com/users/yarcub/following{/other_user}","gists_url":"https://api.github.com/users/yarcub/gists{/gist_id}","starred_url":"https://api.github.com/users/yarcub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yarcub/subscriptions","organizations_url":"https://api.github.com/users/yarcub/orgs","repos_url":"https://api.github.com/users/yarcub/repos","events_url":"https://api.github.com/users/yarcub/events{/privacy}","received_events_url":"https://api.github.com/users/yarcub/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2019-10-28T15:20:11Z","updated_at":"2019-10-28T15:20:11Z","closed_at":null,"author_association":"NONE","body":"**Describe the bug**\r\nAll the invites after a canceled one are rejected automatically (`sip.js@0.15.6`).\r\n\r\nCanceled sessions don't seem to update the Simple instance status like they do on termination.\r\nThe snippet that rejects the invite based on the `state`.\r\nhttps://github.com/onsip/SIP.js/blob/ed5a6ce738379eb9c79aa9c41b1b1cf716b893d4/src/Web/Simple.ts#L132\r\n\r\n**Browser Logs**\r\n```\r\nMon Oct 28 2019 14:43:48 GMT+0000 (Western European Standard Time) | sip.invite-dialog | INVITE dialog a3f03e4dcd3d635d7a7c067bac9214443421-pivotcallvb10715mvnje5QevHe63Z1j constructed\r\nMon Oct 28 2019 14:43:55 GMT+0000 (Western European Standard Time) | sip.inviteservercontext | closing INVITE session a3f03e4dcd3d635d7a7c067bac9214443421-pivotcallje5QevHe63Z1j\r\nMon Oct 28 2019 14:43:56 GMT+0000 (Western European Standard Time) | sip.invite-dialog | INVITE dialog a3f03e4dcd3d635d7a7c067bac9214443421-pivotcallvb10715mvnje5QevHe63Z1j destroyed\r\nMon Oct 28 2019 14:44:13 GMT+0000 (Western European Standard Time) | sip.invite-dialog | INVITE dialog 498c646f28e60771c1b45992481122487578-pivotcallev3vqs5m3opjaUN8mvt7rcH constructed\r\nMon Oct 28 2019 14:44:13 GMT+0000 (Western European Standard Time) | sip.simple | Rejecting incoming call. Simple only supports 1 call at a time\r\nMon Oct 28 2019 14:44:13 GMT+0000 (Western European Standard Time) | sip.inviteservercontext | rejecting RTCSession\r\nMon Oct 28 2019 14:44:13 GMT+0000 (Western European Standard Time) | sip.inviteservercontext | closing INVITE session 498c646f28e60771c1b45992481122487578-pivotcallpjaUN8mvt7rcH\r\nMon Oct 28 2019 14:44:13 GMT+0000 (Western European Standard Time) | sip.invite-dialog | INVITE dialog 498c646f28e60771c1b45992481122487578-pivotcallev3vqs5m3opjaUN8mvt7rcH destroyed\r\n```\r\n**SIP MESSAGES**\r\nhttps://gist.github.com/yarcub/54168155690b40642048f78b1fe82b07\r\n\r\n**To Reproduce (if possible)**\r\nSteps to reproduce the behavior:\r\n1.  Receive an invite\r\n2. Cancel the invite\r\n3. Receive an invite\r\n\r\n**Expected behavior**\r\nThe `ringing` event handler would be called.\r\nhttps://sipjs.com/api/0.15.0/simple/#ringing\r\n\r\n**Observed behavior**\r\nThe invite is automatically rejected\r\n\r\n**Environment Information**\r\n - Chrome 78.0.3904.70\r\n\r\n**Additional context**\r\n"}}
{"actor":{"display_login":"yarcub"}}