{"action":"created","issue":{"url":"https://api.github.com/repos/onsip/SIP.js/issues/158","labels_url":"https://api.github.com/repos/onsip/SIP.js/issues/158/labels{/name}","comments_url":"https://api.github.com/repos/onsip/SIP.js/issues/158/comments","events_url":"https://api.github.com/repos/onsip/SIP.js/issues/158/events","html_url":"https://github.com/onsip/SIP.js/issues/158","id":59229761,"number":158,"title":"BUG - when the call is disconnected from server there is no EVENT received.","user":{"login":"shamun","id":107349,"avatar_url":"https://avatars.githubusercontent.com/u/107349?v=3","gravatar_id":"","url":"https://api.github.com/users/shamun","html_url":"https://github.com/shamun","followers_url":"https://api.github.com/users/shamun/followers","following_url":"https://api.github.com/users/shamun/following{/other_user}","gists_url":"https://api.github.com/users/shamun/gists{/gist_id}","starred_url":"https://api.github.com/users/shamun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shamun/subscriptions","organizations_url":"https://api.github.com/users/shamun/orgs","repos_url":"https://api.github.com/users/shamun/repos","events_url":"https://api.github.com/users/shamun/events{/privacy}","received_events_url":"https://api.github.com/users/shamun/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-02-27T12:24:02Z","updated_at":"2015-02-27T12:54:13Z","closed_at":null,"body":"According to the documentation and code of event if call is failed from server we should get EVENT trigger. But its not happening. http://sipjs.com/api/0.6.0/causes/\r\n\r\n```\r\nrtcSession.on('failed', function(e) {\r\n  console.info('Failed: for what? ', e);\r\n});\r\n\r\n```\r\n\r\nsip-0.6.4.js: 5 events but the failed event is not doing correctly when the call is disconnected via SERVER \r\n```\r\nClientContext = function (ua, method, target, options) {\r\n  var params, extraHeaders,\r\n      originalTarget = target,\r\n      events = [\r\n        'progress',\r\n        'accepted',\r\n        'rejected',\r\n        'failed',\r\n        'cancel'\r\n      ];\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/onsip/SIP.js/issues/comments/76390132","html_url":"https://github.com/onsip/SIP.js/issues/158#issuecomment-76390132","issue_url":"https://api.github.com/repos/onsip/SIP.js/issues/158","id":76390132,"user":{"login":"egreenmachine","id":1035982,"avatar_url":"https://avatars.githubusercontent.com/u/1035982?v=3","gravatar_id":"","url":"https://api.github.com/users/egreenmachine","html_url":"https://github.com/egreenmachine","followers_url":"https://api.github.com/users/egreenmachine/followers","following_url":"https://api.github.com/users/egreenmachine/following{/other_user}","gists_url":"https://api.github.com/users/egreenmachine/gists{/gist_id}","starred_url":"https://api.github.com/users/egreenmachine/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/egreenmachine/subscriptions","organizations_url":"https://api.github.com/users/egreenmachine/orgs","repos_url":"https://api.github.com/users/egreenmachine/repos","events_url":"https://api.github.com/users/egreenmachine/events{/privacy}","received_events_url":"https://api.github.com/users/egreenmachine/received_events","type":"User","site_admin":false},"created_at":"2015-02-27T12:54:13Z","updated_at":"2015-02-27T12:54:13Z","body":"Could you please post a copy of your console log? You can censor out any important information such as ip addresses, usernames, and phone numbers."}}