{"action":"created","comment":{"url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/comments/65670320","id":65670320,"diff_hunk":"@@ -33,3 +33,26 @@ func (api *channellingAPI) HandleRoom(session *channelling.Session, room *channe\n \n \treturn room, err\n }\n+\n+func (api *channellingAPI) RoomProcessed(sender channelling.Sender, session *channelling.Session, msg *channelling.DataIncoming, reply interface{}, err error) {\n+\tif err == nil {\n+\t\tapi.SendConferenceRoomUpdate(session)\n+\t}\n+}\n+\n+func (api *channellingAPI) SendConferenceRoomUpdate(session *channelling.Session) {\n+\t// If user joined a server-managed conference room, send list of session ids to all participants.\n+\tif room, ok := api.RoomStatusManager.Get(session.Roomid); ok && room.GetType() == \"Conference\" {\n+\t\tif sessionids := room.SessionIDs(); len(sessionids) > 1 {\n+\t\t\tcid := session.Roomid\n+\t\t\tsession.Broadcaster.Broadcast(\"\", session.Roomid, &channelling.DataOutgoing{\n+\t\t\t\tTo: cid,\n+\t\t\t\tData: &channelling.DataConference{\n+\t\t\t\t\tType:       \"Conference\",","path":"go/channelling/api/handle_room.go","position":19,"original_position":19,"commit_id":"4a4ba24b0ced047270ba5e5d790a024334a3650a","original_commit_id":"a1696e0cdf13d80b51a6c3857dbe786ad66d0ce8","user":{"login":"longsleep","id":1667797,"avatar_url":"https://avatars.githubusercontent.com/u/1667797?v=3","gravatar_id":"","url":"https://api.github.com/users/longsleep","html_url":"https://github.com/longsleep","followers_url":"https://api.github.com/users/longsleep/followers","following_url":"https://api.github.com/users/longsleep/following{/other_user}","gists_url":"https://api.github.com/users/longsleep/gists{/gist_id}","starred_url":"https://api.github.com/users/longsleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longsleep/subscriptions","organizations_url":"https://api.github.com/users/longsleep/orgs","repos_url":"https://api.github.com/users/longsleep/repos","events_url":"https://api.github.com/users/longsleep/events{/privacy}","received_events_url":"https://api.github.com/users/longsleep/received_events","type":"User","site_admin":false},"body":"Yes - just make the Room type \"conference\" a constant and keep the document creation as is.","created_at":"2016-06-03T08:09:17Z","updated_at":"2016-06-03T08:09:17Z","html_url":"https://github.com/strukturag/spreed-webrtc/pull/284#discussion_r65670320","pull_request_url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284","_links":{"self":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/comments/65670320"},"html":{"href":"https://github.com/strukturag/spreed-webrtc/pull/284#discussion_r65670320"},"pull_request":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284"}}},"pull_request":{"url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284","id":72169012,"html_url":"https://github.com/strukturag/spreed-webrtc/pull/284","diff_url":"https://github.com/strukturag/spreed-webrtc/pull/284.diff","patch_url":"https://github.com/strukturag/spreed-webrtc/pull/284.patch","issue_url":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/284","number":284,"state":"open","locked":false,"title":"[WIP] Serverside conferences","user":{"login":"fancycode","id":247730,"avatar_url":"https://avatars.githubusercontent.com/u/247730?v=3","gravatar_id":"","url":"https://api.github.com/users/fancycode","html_url":"https://github.com/fancycode","followers_url":"https://api.github.com/users/fancycode/followers","following_url":"https://api.github.com/users/fancycode/following{/other_user}","gists_url":"https://api.github.com/users/fancycode/gists{/gist_id}","starred_url":"https://api.github.com/users/fancycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancycode/subscriptions","organizations_url":"https://api.github.com/users/fancycode/orgs","repos_url":"https://api.github.com/users/fancycode/repos","events_url":"https://api.github.com/users/fancycode/events{/privacy}","received_events_url":"https://api.github.com/users/fancycode/received_events","type":"User","site_admin":false},"body":"This PR implements serverside conferences using a new room type `Conference`. All participants joining such a room automatically call each other and are in a conference.","created_at":"2016-06-01T12:07:03Z","updated_at":"2016-06-03T08:09:17Z","closed_at":null,"merged_at":null,"merge_commit_sha":"fcd276b18f596fefc7758144fff5c06432c76fc5","assignee":{"login":"longsleep","id":1667797,"avatar_url":"https://avatars.githubusercontent.com/u/1667797?v=3","gravatar_id":"","url":"https://api.github.com/users/longsleep","html_url":"https://github.com/longsleep","followers_url":"https://api.github.com/users/longsleep/followers","following_url":"https://api.github.com/users/longsleep/following{/other_user}","gists_url":"https://api.github.com/users/longsleep/gists{/gist_id}","starred_url":"https://api.github.com/users/longsleep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/longsleep/subscriptions","organizations_url":"https://api.github.com/users/longsleep/orgs","repos_url":"https://api.github.com/users/longsleep/repos","events_url":"https://api.github.com/users/longsleep/events{/privacy}","received_events_url":"https://api.github.com/users/longsleep/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284/commits","review_comments_url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284/comments","review_comment_url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/284/comments","statuses_url":"https://api.github.com/repos/strukturag/spreed-webrtc/statuses/4a4ba24b0ced047270ba5e5d790a024334a3650a","head":{"label":"fancycode:serverside_conferences","ref":"serverside_conferences","sha":"4a4ba24b0ced047270ba5e5d790a024334a3650a","user":{"login":"fancycode","id":247730,"avatar_url":"https://avatars.githubusercontent.com/u/247730?v=3","gravatar_id":"","url":"https://api.github.com/users/fancycode","html_url":"https://github.com/fancycode","followers_url":"https://api.github.com/users/fancycode/followers","following_url":"https://api.github.com/users/fancycode/following{/other_user}","gists_url":"https://api.github.com/users/fancycode/gists{/gist_id}","starred_url":"https://api.github.com/users/fancycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancycode/subscriptions","organizations_url":"https://api.github.com/users/fancycode/orgs","repos_url":"https://api.github.com/users/fancycode/repos","events_url":"https://api.github.com/users/fancycode/events{/privacy}","received_events_url":"https://api.github.com/users/fancycode/received_events","type":"User","site_admin":false},"repo":{"id":21520874,"name":"spreed-webrtc","full_name":"fancycode/spreed-webrtc","owner":{"login":"fancycode","id":247730,"avatar_url":"https://avatars.githubusercontent.com/u/247730?v=3","gravatar_id":"","url":"https://api.github.com/users/fancycode","html_url":"https://github.com/fancycode","followers_url":"https://api.github.com/users/fancycode/followers","following_url":"https://api.github.com/users/fancycode/following{/other_user}","gists_url":"https://api.github.com/users/fancycode/gists{/gist_id}","starred_url":"https://api.github.com/users/fancycode/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fancycode/subscriptions","organizations_url":"https://api.github.com/users/fancycode/orgs","repos_url":"https://api.github.com/users/fancycode/repos","events_url":"https://api.github.com/users/fancycode/events{/privacy}","received_events_url":"https://api.github.com/users/fancycode/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fancycode/spreed-webrtc","description":"WebRTC audio/video call and conferencing server.","fork":true,"url":"https://api.github.com/repos/fancycode/spreed-webrtc","forks_url":"https://api.github.com/repos/fancycode/spreed-webrtc/forks","keys_url":"https://api.github.com/repos/fancycode/spreed-webrtc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fancycode/spreed-webrtc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fancycode/spreed-webrtc/teams","hooks_url":"https://api.github.com/repos/fancycode/spreed-webrtc/hooks","issue_events_url":"https://api.github.com/repos/fancycode/spreed-webrtc/issues/events{/number}","events_url":"https://api.github.com/repos/fancycode/spreed-webrtc/events","assignees_url":"https://api.github.com/repos/fancycode/spreed-webrtc/assignees{/user}","branches_url":"https://api.github.com/repos/fancycode/spreed-webrtc/branches{/branch}","tags_url":"https://api.github.com/repos/fancycode/spreed-webrtc/tags","blobs_url":"https://api.github.com/repos/fancycode/spreed-webrtc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fancycode/spreed-webrtc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fancycode/spreed-webrtc/git/refs{/sha}","trees_url":"https://api.github.com/repos/fancycode/spreed-webrtc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fancycode/spreed-webrtc/statuses/{sha}","languages_url":"https://api.github.com/repos/fancycode/spreed-webrtc/languages","stargazers_url":"https://api.github.com/repos/fancycode/spreed-webrtc/stargazers","contributors_url":"https://api.github.com/repos/fancycode/spreed-webrtc/contributors","subscribers_url":"https://api.github.com/repos/fancycode/spreed-webrtc/subscribers","subscription_url":"https://api.github.com/repos/fancycode/spreed-webrtc/subscription","commits_url":"https://api.github.com/repos/fancycode/spreed-webrtc/commits{/sha}","git_commits_url":"https://api.github.com/repos/fancycode/spreed-webrtc/git/commits{/sha}","comments_url":"https://api.github.com/repos/fancycode/spreed-webrtc/comments{/number}","issue_comment_url":"https://api.github.com/repos/fancycode/spreed-webrtc/issues/comments{/number}","contents_url":"https://api.github.com/repos/fancycode/spreed-webrtc/contents/{+path}","compare_url":"https://api.github.com/repos/fancycode/spreed-webrtc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fancycode/spreed-webrtc/merges","archive_url":"https://api.github.com/repos/fancycode/spreed-webrtc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fancycode/spreed-webrtc/downloads","issues_url":"https://api.github.com/repos/fancycode/spreed-webrtc/issues{/number}","pulls_url":"https://api.github.com/repos/fancycode/spreed-webrtc/pulls{/number}","milestones_url":"https://api.github.com/repos/fancycode/spreed-webrtc/milestones{/number}","notifications_url":"https://api.github.com/repos/fancycode/spreed-webrtc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fancycode/spreed-webrtc/labels{/name}","releases_url":"https://api.github.com/repos/fancycode/spreed-webrtc/releases{/id}","deployments_url":"https://api.github.com/repos/fancycode/spreed-webrtc/deployments","created_at":"2014-07-05T13:48:39Z","updated_at":"2015-02-20T14:15:35Z","pushed_at":"2016-06-03T08:04:52Z","git_url":"git://github.com/fancycode/spreed-webrtc.git","ssh_url":"git@github.com:fancycode/spreed-webrtc.git","clone_url":"https://github.com/fancycode/spreed-webrtc.git","svn_url":"https://github.com/fancycode/spreed-webrtc","homepage":"","size":11727,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"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":"strukturag:develop","ref":"develop","sha":"f0fbd7b1dc5810eb4e36b4e1609b92030235f092","user":{"login":"strukturag","id":5314589,"avatar_url":"https://avatars.githubusercontent.com/u/5314589?v=3","gravatar_id":"","url":"https://api.github.com/users/strukturag","html_url":"https://github.com/strukturag","followers_url":"https://api.github.com/users/strukturag/followers","following_url":"https://api.github.com/users/strukturag/following{/other_user}","gists_url":"https://api.github.com/users/strukturag/gists{/gist_id}","starred_url":"https://api.github.com/users/strukturag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strukturag/subscriptions","organizations_url":"https://api.github.com/users/strukturag/orgs","repos_url":"https://api.github.com/users/strukturag/repos","events_url":"https://api.github.com/users/strukturag/events{/privacy}","received_events_url":"https://api.github.com/users/strukturag/received_events","type":"Organization","site_admin":false},"repo":{"id":16809332,"name":"spreed-webrtc","full_name":"strukturag/spreed-webrtc","owner":{"login":"strukturag","id":5314589,"avatar_url":"https://avatars.githubusercontent.com/u/5314589?v=3","gravatar_id":"","url":"https://api.github.com/users/strukturag","html_url":"https://github.com/strukturag","followers_url":"https://api.github.com/users/strukturag/followers","following_url":"https://api.github.com/users/strukturag/following{/other_user}","gists_url":"https://api.github.com/users/strukturag/gists{/gist_id}","starred_url":"https://api.github.com/users/strukturag/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/strukturag/subscriptions","organizations_url":"https://api.github.com/users/strukturag/orgs","repos_url":"https://api.github.com/users/strukturag/repos","events_url":"https://api.github.com/users/strukturag/events{/privacy}","received_events_url":"https://api.github.com/users/strukturag/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/strukturag/spreed-webrtc","description":"WebRTC audio/video call and conferencing server.","fork":false,"url":"https://api.github.com/repos/strukturag/spreed-webrtc","forks_url":"https://api.github.com/repos/strukturag/spreed-webrtc/forks","keys_url":"https://api.github.com/repos/strukturag/spreed-webrtc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/strukturag/spreed-webrtc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/strukturag/spreed-webrtc/teams","hooks_url":"https://api.github.com/repos/strukturag/spreed-webrtc/hooks","issue_events_url":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/events{/number}","events_url":"https://api.github.com/repos/strukturag/spreed-webrtc/events","assignees_url":"https://api.github.com/repos/strukturag/spreed-webrtc/assignees{/user}","branches_url":"https://api.github.com/repos/strukturag/spreed-webrtc/branches{/branch}","tags_url":"https://api.github.com/repos/strukturag/spreed-webrtc/tags","blobs_url":"https://api.github.com/repos/strukturag/spreed-webrtc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/strukturag/spreed-webrtc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/strukturag/spreed-webrtc/git/refs{/sha}","trees_url":"https://api.github.com/repos/strukturag/spreed-webrtc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/strukturag/spreed-webrtc/statuses/{sha}","languages_url":"https://api.github.com/repos/strukturag/spreed-webrtc/languages","stargazers_url":"https://api.github.com/repos/strukturag/spreed-webrtc/stargazers","contributors_url":"https://api.github.com/repos/strukturag/spreed-webrtc/contributors","subscribers_url":"https://api.github.com/repos/strukturag/spreed-webrtc/subscribers","subscription_url":"https://api.github.com/repos/strukturag/spreed-webrtc/subscription","commits_url":"https://api.github.com/repos/strukturag/spreed-webrtc/commits{/sha}","git_commits_url":"https://api.github.com/repos/strukturag/spreed-webrtc/git/commits{/sha}","comments_url":"https://api.github.com/repos/strukturag/spreed-webrtc/comments{/number}","issue_comment_url":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/comments{/number}","contents_url":"https://api.github.com/repos/strukturag/spreed-webrtc/contents/{+path}","compare_url":"https://api.github.com/repos/strukturag/spreed-webrtc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/strukturag/spreed-webrtc/merges","archive_url":"https://api.github.com/repos/strukturag/spreed-webrtc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/strukturag/spreed-webrtc/downloads","issues_url":"https://api.github.com/repos/strukturag/spreed-webrtc/issues{/number}","pulls_url":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls{/number}","milestones_url":"https://api.github.com/repos/strukturag/spreed-webrtc/milestones{/number}","notifications_url":"https://api.github.com/repos/strukturag/spreed-webrtc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/strukturag/spreed-webrtc/labels{/name}","releases_url":"https://api.github.com/repos/strukturag/spreed-webrtc/releases{/id}","deployments_url":"https://api.github.com/repos/strukturag/spreed-webrtc/deployments","created_at":"2014-02-13T16:38:34Z","updated_at":"2016-06-02T21:45:59Z","pushed_at":"2016-06-03T08:04:53Z","git_url":"git://github.com/strukturag/spreed-webrtc.git","ssh_url":"git@github.com:strukturag/spreed-webrtc.git","clone_url":"https://github.com/strukturag/spreed-webrtc.git","svn_url":"https://github.com/strukturag/spreed-webrtc","homepage":"","size":13628,"stargazers_count":212,"watchers_count":212,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":49,"mirror_url":null,"open_issues_count":36,"forks":49,"open_issues":36,"watchers":212,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284"},"html":{"href":"https://github.com/strukturag/spreed-webrtc/pull/284"},"issue":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/284"},"comments":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/issues/284/comments"},"review_comments":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284/comments"},"review_comment":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/pulls/284/commits"},"statuses":{"href":"https://api.github.com/repos/strukturag/spreed-webrtc/statuses/4a4ba24b0ced047270ba5e5d790a024334a3650a"}}}}
{"actor":{"display_login":"longsleep"}}