{"action":"closed","number":1146,"pull_request":{"url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146","id":44324927,"html_url":"https://github.com/fusionpbx/fusionpbx/pull/1146","diff_url":"https://github.com/fusionpbx/fusionpbx/pull/1146.diff","patch_url":"https://github.com/fusionpbx/fusionpbx/pull/1146.patch","issue_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1146","number":1146,"state":"closed","locked":false,"title":"Random ring groups","user":{"login":"badcrc","id":663985,"avatar_url":"https://avatars.githubusercontent.com/u/663985?v=3","gravatar_id":"","url":"https://api.github.com/users/badcrc","html_url":"https://github.com/badcrc","followers_url":"https://api.github.com/users/badcrc/followers","following_url":"https://api.github.com/users/badcrc/following{/other_user}","gists_url":"https://api.github.com/users/badcrc/gists{/gist_id}","starred_url":"https://api.github.com/users/badcrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badcrc/subscriptions","organizations_url":"https://api.github.com/users/badcrc/orgs","repos_url":"https://api.github.com/users/badcrc/repos","events_url":"https://api.github.com/users/badcrc/events{/privacy}","received_events_url":"https://api.github.com/users/badcrc/received_events","type":"User","site_admin":false},"body":"This adds the random strategy to the ring groups, its simply does an order by random in the SQL when selecting the members of the group. It should support mysql and postgresql (though I only tested it in psql).\r\n\r\nAlso included is a lua script for entering/leaving a ring group, the code is based on the fifo_member.lua and needs a dialplan entry like in the queues.","created_at":"2015-09-07T06:56:59Z","updated_at":"2015-09-14T16:38:18Z","closed_at":"2015-09-14T16:38:18Z","merged_at":"2015-09-14T16:38:18Z","merge_commit_sha":"45f923e58e40603623583afb43193be8b7e7e2ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146/commits","review_comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146/comments","review_comment_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1146/comments","statuses_url":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/4bba1c1faf7dc9d7dbcfab11bad933c0381979ba","head":{"label":"badcrc:master","ref":"master","sha":"4bba1c1faf7dc9d7dbcfab11bad933c0381979ba","user":{"login":"badcrc","id":663985,"avatar_url":"https://avatars.githubusercontent.com/u/663985?v=3","gravatar_id":"","url":"https://api.github.com/users/badcrc","html_url":"https://github.com/badcrc","followers_url":"https://api.github.com/users/badcrc/followers","following_url":"https://api.github.com/users/badcrc/following{/other_user}","gists_url":"https://api.github.com/users/badcrc/gists{/gist_id}","starred_url":"https://api.github.com/users/badcrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badcrc/subscriptions","organizations_url":"https://api.github.com/users/badcrc/orgs","repos_url":"https://api.github.com/users/badcrc/repos","events_url":"https://api.github.com/users/badcrc/events{/privacy}","received_events_url":"https://api.github.com/users/badcrc/received_events","type":"User","site_admin":false},"repo":{"id":40657530,"name":"fusionpbx","full_name":"badcrc/fusionpbx","owner":{"login":"badcrc","id":663985,"avatar_url":"https://avatars.githubusercontent.com/u/663985?v=3","gravatar_id":"","url":"https://api.github.com/users/badcrc","html_url":"https://github.com/badcrc","followers_url":"https://api.github.com/users/badcrc/followers","following_url":"https://api.github.com/users/badcrc/following{/other_user}","gists_url":"https://api.github.com/users/badcrc/gists{/gist_id}","starred_url":"https://api.github.com/users/badcrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badcrc/subscriptions","organizations_url":"https://api.github.com/users/badcrc/orgs","repos_url":"https://api.github.com/users/badcrc/repos","events_url":"https://api.github.com/users/badcrc/events{/privacy}","received_events_url":"https://api.github.com/users/badcrc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/badcrc/fusionpbx","description":"Official FusionPBX - A full-featured multi-tenant GUI for FreeSwitch","fork":true,"url":"https://api.github.com/repos/badcrc/fusionpbx","forks_url":"https://api.github.com/repos/badcrc/fusionpbx/forks","keys_url":"https://api.github.com/repos/badcrc/fusionpbx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/badcrc/fusionpbx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/badcrc/fusionpbx/teams","hooks_url":"https://api.github.com/repos/badcrc/fusionpbx/hooks","issue_events_url":"https://api.github.com/repos/badcrc/fusionpbx/issues/events{/number}","events_url":"https://api.github.com/repos/badcrc/fusionpbx/events","assignees_url":"https://api.github.com/repos/badcrc/fusionpbx/assignees{/user}","branches_url":"https://api.github.com/repos/badcrc/fusionpbx/branches{/branch}","tags_url":"https://api.github.com/repos/badcrc/fusionpbx/tags","blobs_url":"https://api.github.com/repos/badcrc/fusionpbx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/badcrc/fusionpbx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/badcrc/fusionpbx/git/refs{/sha}","trees_url":"https://api.github.com/repos/badcrc/fusionpbx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/badcrc/fusionpbx/statuses/{sha}","languages_url":"https://api.github.com/repos/badcrc/fusionpbx/languages","stargazers_url":"https://api.github.com/repos/badcrc/fusionpbx/stargazers","contributors_url":"https://api.github.com/repos/badcrc/fusionpbx/contributors","subscribers_url":"https://api.github.com/repos/badcrc/fusionpbx/subscribers","subscription_url":"https://api.github.com/repos/badcrc/fusionpbx/subscription","commits_url":"https://api.github.com/repos/badcrc/fusionpbx/commits{/sha}","git_commits_url":"https://api.github.com/repos/badcrc/fusionpbx/git/commits{/sha}","comments_url":"https://api.github.com/repos/badcrc/fusionpbx/comments{/number}","issue_comment_url":"https://api.github.com/repos/badcrc/fusionpbx/issues/comments{/number}","contents_url":"https://api.github.com/repos/badcrc/fusionpbx/contents/{+path}","compare_url":"https://api.github.com/repos/badcrc/fusionpbx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/badcrc/fusionpbx/merges","archive_url":"https://api.github.com/repos/badcrc/fusionpbx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/badcrc/fusionpbx/downloads","issues_url":"https://api.github.com/repos/badcrc/fusionpbx/issues{/number}","pulls_url":"https://api.github.com/repos/badcrc/fusionpbx/pulls{/number}","milestones_url":"https://api.github.com/repos/badcrc/fusionpbx/milestones{/number}","notifications_url":"https://api.github.com/repos/badcrc/fusionpbx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/badcrc/fusionpbx/labels{/name}","releases_url":"https://api.github.com/repos/badcrc/fusionpbx/releases{/id}","created_at":"2015-08-13T12:27:30Z","updated_at":"2015-08-13T12:27:34Z","pushed_at":"2015-09-07T10:51:24Z","git_url":"git://github.com/badcrc/fusionpbx.git","ssh_url":"git@github.com:badcrc/fusionpbx.git","clone_url":"https://github.com/badcrc/fusionpbx.git","svn_url":"https://github.com/badcrc/fusionpbx","homepage":"http://www.fusionpbx.com/","size":16373,"stargazers_count":0,"watchers_count":0,"language":"PHP","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"fusionpbx:master","ref":"master","sha":"be564502df73a93edd09b0a8b11a05f49382dfcd","user":{"login":"fusionpbx","id":394783,"avatar_url":"https://avatars.githubusercontent.com/u/394783?v=3","gravatar_id":"","url":"https://api.github.com/users/fusionpbx","html_url":"https://github.com/fusionpbx","followers_url":"https://api.github.com/users/fusionpbx/followers","following_url":"https://api.github.com/users/fusionpbx/following{/other_user}","gists_url":"https://api.github.com/users/fusionpbx/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionpbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionpbx/subscriptions","organizations_url":"https://api.github.com/users/fusionpbx/orgs","repos_url":"https://api.github.com/users/fusionpbx/repos","events_url":"https://api.github.com/users/fusionpbx/events{/privacy}","received_events_url":"https://api.github.com/users/fusionpbx/received_events","type":"Organization","site_admin":false},"repo":{"id":38333430,"name":"fusionpbx","full_name":"fusionpbx/fusionpbx","owner":{"login":"fusionpbx","id":394783,"avatar_url":"https://avatars.githubusercontent.com/u/394783?v=3","gravatar_id":"","url":"https://api.github.com/users/fusionpbx","html_url":"https://github.com/fusionpbx","followers_url":"https://api.github.com/users/fusionpbx/followers","following_url":"https://api.github.com/users/fusionpbx/following{/other_user}","gists_url":"https://api.github.com/users/fusionpbx/gists{/gist_id}","starred_url":"https://api.github.com/users/fusionpbx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fusionpbx/subscriptions","organizations_url":"https://api.github.com/users/fusionpbx/orgs","repos_url":"https://api.github.com/users/fusionpbx/repos","events_url":"https://api.github.com/users/fusionpbx/events{/privacy}","received_events_url":"https://api.github.com/users/fusionpbx/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/fusionpbx/fusionpbx","description":"Official FusionPBX - A full-featured multi-tenant GUI for FreeSwitch","fork":false,"url":"https://api.github.com/repos/fusionpbx/fusionpbx","forks_url":"https://api.github.com/repos/fusionpbx/fusionpbx/forks","keys_url":"https://api.github.com/repos/fusionpbx/fusionpbx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fusionpbx/fusionpbx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fusionpbx/fusionpbx/teams","hooks_url":"https://api.github.com/repos/fusionpbx/fusionpbx/hooks","issue_events_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/events{/number}","events_url":"https://api.github.com/repos/fusionpbx/fusionpbx/events","assignees_url":"https://api.github.com/repos/fusionpbx/fusionpbx/assignees{/user}","branches_url":"https://api.github.com/repos/fusionpbx/fusionpbx/branches{/branch}","tags_url":"https://api.github.com/repos/fusionpbx/fusionpbx/tags","blobs_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/refs{/sha}","trees_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/{sha}","languages_url":"https://api.github.com/repos/fusionpbx/fusionpbx/languages","stargazers_url":"https://api.github.com/repos/fusionpbx/fusionpbx/stargazers","contributors_url":"https://api.github.com/repos/fusionpbx/fusionpbx/contributors","subscribers_url":"https://api.github.com/repos/fusionpbx/fusionpbx/subscribers","subscription_url":"https://api.github.com/repos/fusionpbx/fusionpbx/subscription","commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/commits{/sha}","git_commits_url":"https://api.github.com/repos/fusionpbx/fusionpbx/git/commits{/sha}","comments_url":"https://api.github.com/repos/fusionpbx/fusionpbx/comments{/number}","issue_comment_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/comments{/number}","contents_url":"https://api.github.com/repos/fusionpbx/fusionpbx/contents/{+path}","compare_url":"https://api.github.com/repos/fusionpbx/fusionpbx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fusionpbx/fusionpbx/merges","archive_url":"https://api.github.com/repos/fusionpbx/fusionpbx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fusionpbx/fusionpbx/downloads","issues_url":"https://api.github.com/repos/fusionpbx/fusionpbx/issues{/number}","pulls_url":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls{/number}","milestones_url":"https://api.github.com/repos/fusionpbx/fusionpbx/milestones{/number}","notifications_url":"https://api.github.com/repos/fusionpbx/fusionpbx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fusionpbx/fusionpbx/labels{/name}","releases_url":"https://api.github.com/repos/fusionpbx/fusionpbx/releases{/id}","created_at":"2015-06-30T21:13:06Z","updated_at":"2015-09-06T06:55:40Z","pushed_at":"2015-09-14T16:38:18Z","git_url":"git://github.com/fusionpbx/fusionpbx.git","ssh_url":"git@github.com:fusionpbx/fusionpbx.git","clone_url":"https://github.com/fusionpbx/fusionpbx.git","svn_url":"https://github.com/fusionpbx/fusionpbx","homepage":"http://www.fusionpbx.com/","size":17915,"stargazers_count":28,"watchers_count":28,"language":"PHP","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":29,"mirror_url":null,"open_issues_count":203,"forks":29,"open_issues":203,"watchers":28,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146"},"html":{"href":"https://github.com/fusionpbx/fusionpbx/pull/1146"},"issue":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1146"},"comments":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/issues/1146/comments"},"review_comments":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146/comments"},"review_comment":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/pulls/1146/commits"},"statuses":{"href":"https://api.github.com/repos/fusionpbx/fusionpbx/statuses/4bba1c1faf7dc9d7dbcfab11bad933c0381979ba"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"markjcrane","id":3408509,"avatar_url":"https://avatars.githubusercontent.com/u/3408509?v=3","gravatar_id":"","url":"https://api.github.com/users/markjcrane","html_url":"https://github.com/markjcrane","followers_url":"https://api.github.com/users/markjcrane/followers","following_url":"https://api.github.com/users/markjcrane/following{/other_user}","gists_url":"https://api.github.com/users/markjcrane/gists{/gist_id}","starred_url":"https://api.github.com/users/markjcrane/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/markjcrane/subscriptions","organizations_url":"https://api.github.com/users/markjcrane/orgs","repos_url":"https://api.github.com/users/markjcrane/repos","events_url":"https://api.github.com/users/markjcrane/events{/privacy}","received_events_url":"https://api.github.com/users/markjcrane/received_events","type":"User","site_admin":false},"comments":2,"review_comments":2,"commits":11,"additions":189,"deletions":4,"changed_files":7}}