{"action":"created","issue":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/317","repository_url":"https://api.github.com/repos/cgrates/cgrates","labels_url":"https://api.github.com/repos/cgrates/cgrates/issues/317/labels{/name}","comments_url":"https://api.github.com/repos/cgrates/cgrates/issues/317/comments","events_url":"https://api.github.com/repos/cgrates/cgrates/issues/317/events","html_url":"https://github.com/cgrates/cgrates/issues/317","id":120983053,"number":317,"title":"MaxChannels per destination","user":{"login":"danbogos","id":1607526,"avatar_url":"https://avatars.githubusercontent.com/u/1607526?v=3","gravatar_id":"","url":"https://api.github.com/users/danbogos","html_url":"https://github.com/danbogos","followers_url":"https://api.github.com/users/danbogos/followers","following_url":"https://api.github.com/users/danbogos/following{/other_user}","gists_url":"https://api.github.com/users/danbogos/gists{/gist_id}","starred_url":"https://api.github.com/users/danbogos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbogos/subscriptions","organizations_url":"https://api.github.com/users/danbogos/orgs","repos_url":"https://api.github.com/users/danbogos/repos","events_url":"https://api.github.com/users/danbogos/events{/privacy}","received_events_url":"https://api.github.com/users/danbogos/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/cgrates/cgrates/labels/feature","name":"feature","color":"02d7e1"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-12-08T10:54:35Z","updated_at":"2016-02-03T11:05:15Z","closed_at":null,"body":"Since we have all the information, it should be trivial to add channel limits per destination, useful in a number of commercial offerings.\r\n\r\nDanB"},"comment":{"url":"https://api.github.com/repos/cgrates/cgrates/issues/comments/179168009","html_url":"https://github.com/cgrates/cgrates/issues/317#issuecomment-179168009","issue_url":"https://api.github.com/repos/cgrates/cgrates/issues/317","id":179168009,"user":{"login":"danbogos","id":1607526,"avatar_url":"https://avatars.githubusercontent.com/u/1607526?v=3","gravatar_id":"","url":"https://api.github.com/users/danbogos","html_url":"https://github.com/danbogos","followers_url":"https://api.github.com/users/danbogos/followers","following_url":"https://api.github.com/users/danbogos/following{/other_user}","gists_url":"https://api.github.com/users/danbogos/gists{/gist_id}","starred_url":"https://api.github.com/users/danbogos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danbogos/subscriptions","organizations_url":"https://api.github.com/users/danbogos/orgs","repos_url":"https://api.github.com/users/danbogos/repos","events_url":"https://api.github.com/users/danbogos/events{/privacy}","received_events_url":"https://api.github.com/users/danbogos/received_events","type":"User","site_admin":false},"created_at":"2016-02-03T11:05:15Z","updated_at":"2016-02-03T11:05:15Z","body":"Some more ideas on the design after we have analyzed it internally.\r\n\r\n * There should be a new subsystem handling this limiting (eg: resourcelimiter).\r\n * The resource counters should follow the cdrstats implementation, one event could update more than one counter.\r\n * Within the configuration of profiles we should have the following:\r\n ** ResourceID (subject).\r\n ** Category (filter).\r\n ** StartTime of the limiting (eg: different resource allocation between peak and offpeak).\r\n ** ActivationTime of the limit profile.\r\n* The counters should have ttl configurable by requests (eg: if no hangup received for a call, we still expire the counter so it does not remain stale forever).\r\n\r\nDanB"}}