{"action":"created","issue":{"url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/4","labels_url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/4/comments","events_url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/4/events","html_url":"https://github.com/nvisibleinc/go-ari-library/issues/4","id":54301443,"number":4,"title":"Queues not being cleaned up after hangup","user":{"login":"skrusty","id":8448201,"avatar_url":"https://avatars.githubusercontent.com/u/8448201?v=3","gravatar_id":"","url":"https://api.github.com/users/skrusty","html_url":"https://github.com/skrusty","followers_url":"https://api.github.com/users/skrusty/followers","following_url":"https://api.github.com/users/skrusty/following{/other_user}","gists_url":"https://api.github.com/users/skrusty/gists{/gist_id}","starred_url":"https://api.github.com/users/skrusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrusty/subscriptions","organizations_url":"https://api.github.com/users/skrusty/orgs","repos_url":"https://api.github.com/users/skrusty/repos","events_url":"https://api.github.com/users/skrusty/events{/privacy}","received_events_url":"https://api.github.com/users/skrusty/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nvisibleinc/go-ari-library/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-14T09:37:56Z","updated_at":"2015-03-11T15:09:58Z","closed_at":null,"body":"The queues that represent a session within the proxy don't get cleaned up after the call has ended or left the ari application.\r\n\r\nWhen should a queue be deleted?\r\n\r\nYou can still receive events after the channel has left your application, that's valid. But should you receive anything once the application has both left and hungup? \r\n\r\nFor example, if you do an originate, and bridge, then hangup, your applicaiton will have left, will have hangup, but it's valid that you might still get events for the hangup on the originated channel?"},"comment":{"url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/comments/78282041","html_url":"https://github.com/nvisibleinc/go-ari-library/issues/4#issuecomment-78282041","issue_url":"https://api.github.com/repos/nvisibleinc/go-ari-library/issues/4","id":78282041,"user":{"login":"skrusty","id":8448201,"avatar_url":"https://avatars.githubusercontent.com/u/8448201?v=3","gravatar_id":"","url":"https://api.github.com/users/skrusty","html_url":"https://github.com/skrusty","followers_url":"https://api.github.com/users/skrusty/followers","following_url":"https://api.github.com/users/skrusty/following{/other_user}","gists_url":"https://api.github.com/users/skrusty/gists{/gist_id}","starred_url":"https://api.github.com/users/skrusty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/skrusty/subscriptions","organizations_url":"https://api.github.com/users/skrusty/orgs","repos_url":"https://api.github.com/users/skrusty/repos","events_url":"https://api.github.com/users/skrusty/events{/privacy}","received_events_url":"https://api.github.com/users/skrusty/received_events","type":"User","site_admin":false},"created_at":"2015-03-11T15:09:58Z","updated_at":"2015-03-11T15:09:58Z","body":"Thinking about this more, seems to make sense that the client cleans up a queue, as technically only it can decide if it no longer wants to listen for any events or push actions to the proxy.\r\n\r\nWith that in mind, how would the client and proxy co-ordinate the closing of a dialogue? Does RMQ notify you of a closed queue? Would there just be some catchable exception on the proxy?\r\n\r\nAnyway, food for thought."}}