bigbluebutton-Github/labs/bbb-callback
Leonardo Crauss Daronco 14641d1a3b Webhooks: expire mappings for inactive meetings
If a meeting has no events for too long (24 hours), remove the meeting
mapping to prevent too much data from being stored forever on redis.
2014-11-13 12:03:42 -02:00
..
config Webhooks: add config file for nginx 2014-11-11 15:07:43 -02:00
.gitignore First version of webhooks subscribing to all channels and organized repo 2014-11-10 15:51:41 -02:00
.nvmrc First version of webhooks subscribing to all channels and organized repo 2014-11-10 15:51:41 -02:00
app.js Webhooks posting all events to all callbacks registered 2014-11-10 17:32:51 -02:00
application.coffee Webhooks: persist data to redis 2014-11-12 16:35:25 -02:00
bbb-callback.sh - just rename the directory 2013-09-13 15:37:25 +00:00
callback_emitter.coffee Webhooks: better intervals for retying failed callbacks 2014-11-12 18:07:29 -02:00
config.coffee Webhooks: expire mappings for inactive meetings 2014-11-13 12:03:42 -02:00
hook.coffee Webhooks: expire mappings for inactive meetings 2014-11-13 12:03:42 -02:00
meeting_id_map.coffee Webhooks: expire mappings for inactive meetings 2014-11-13 12:03:42 -02:00
package.json Webhooks: basic routes and checksum calculation 2014-11-11 15:07:05 -02:00
README - just rename the directory 2013-09-13 15:37:25 +00:00
utils.coffee Webhooks: sign callback calls with a checksum 2014-11-11 17:36:01 -02:00
web_hooks.coffee Webhooks: expire mappings for inactive meetings 2014-11-13 12:03:42 -02:00
web_server.coffee Webhooks: store meeting ID mappings in a global model 2014-11-12 13:07:54 -02:00

bbb-callbacks
-------------


It's a webapp which allows to perform certain callbacks when an event happens in a bigbluebutton session.

The webapp uses node.js and redis.

For run: node app.js

To run in production, put bbb-callback.sh into /etc/init.d/
See: https://www.exratione.com/2013/02/nodejs-and-forever-as-a-service-simple-upstart-and-init-scripts-for-ubuntu/

1. Install node by downloading source from http://nodejs.org/download/. Extract the downloaded file.
  ./configure
  make
  sudo make install

2. Install forever
  sudo npm -g install forever

3. Copy the init.d script
  sudo cp bbb-callback.sh /etc/init.d/bbb-callback.sh
  sudo chmod a+x /etc/init.d/bbb-callback.sh
  sudo update-rc.d bbb-callback.sh defaults

4. Copy bbb-callback dir to /usr/local/bigbluebutton/bbb-callback

5. How to start/stop the service
  sudo service bbb-callback.sh start
  sudo service bbb-callback.sh status
  sudo service bbb-callback.sh restart
  sudo service bbb-callback.sh stop