forked from bigbluebutton/bigbluebutton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- delay processing of pre-uploaded presentation to make sure that me…
…eting has been created before presentation conversion has completed.
- Loading branch information
Showing
5 changed files
with
44 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
80 changes: 40 additions & 40 deletions
80
akka-bbb-fsesl/src/main/scala/org/bigbluebutton/Boot.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
package org.bigbluebutton | ||
|
||
import akka.actor.{ ActorSystem } | ||
|
||
import org.bigbluebutton.endpoint.redis.{ AppsRedisSubscriberActor, RedisPublisher } | ||
import org.bigbluebutton.freeswitch.{ RxJsonMsgHdlrActor, VoiceConferenceService } | ||
import org.bigbluebutton.freeswitch.bus.InsonMsgBus | ||
import org.bigbluebutton.freeswitch.voice.FreeswitchConferenceEventListener | ||
import org.bigbluebutton.freeswitch.voice.freeswitch.{ ConnectionManager, ESLEventListener, FreeswitchApplication } | ||
package org.bigbluebutton | ||
|
||
import akka.actor.{ ActorSystem } | ||
|
||
import org.bigbluebutton.endpoint.redis.{ AppsRedisSubscriberActor, RedisPublisher } | ||
import org.bigbluebutton.freeswitch.{ RxJsonMsgHdlrActor, VoiceConferenceService } | ||
import org.bigbluebutton.freeswitch.bus.InsonMsgBus | ||
import org.bigbluebutton.freeswitch.voice.FreeswitchConferenceEventListener | ||
import org.bigbluebutton.freeswitch.voice.freeswitch.{ ConnectionManager, ESLEventListener, FreeswitchApplication } | ||
import org.bigbluebutton.freeswitch.pubsub.receivers.RedisMessageReceiver | ||
import org.freeswitch.esl.client.manager.DefaultManagerConnection | ||
|
||
object Boot extends App with SystemConfiguration { | ||
|
||
implicit val system = ActorSystem("bigbluebutton-fsesl-system") | ||
|
||
val redisPublisher = new RedisPublisher(system) | ||
|
||
val eslConnection = new DefaultManagerConnection(eslHost, eslPort, eslPassword) | ||
|
||
val voiceConfService = new VoiceConferenceService(redisPublisher) | ||
|
||
val fsConfEventListener = new FreeswitchConferenceEventListener(voiceConfService) | ||
fsConfEventListener.start() | ||
|
||
val eslEventListener = new ESLEventListener(fsConfEventListener) | ||
val connManager = new ConnectionManager(eslConnection, eslEventListener, fsConfEventListener) | ||
|
||
connManager.start() | ||
|
||
val fsApplication = new FreeswitchApplication(connManager, fsProfile) | ||
fsApplication.start() | ||
|
||
val redisMsgReceiver = new RedisMessageReceiver(fsApplication) | ||
|
||
val inJsonMsgBus = new InsonMsgBus | ||
val redisMessageHandlerActor = system.actorOf(RxJsonMsgHdlrActor.props(fsApplication)) | ||
inJsonMsgBus.subscribe(redisMessageHandlerActor, toFsAppsJsonChannel) | ||
|
||
val redisSubscriberActor = system.actorOf(AppsRedisSubscriberActor.props(system, redisMsgReceiver, inJsonMsgBus), "redis-subscriber") | ||
|
||
} | ||
|
||
object Boot extends App with SystemConfiguration { | ||
|
||
implicit val system = ActorSystem("bigbluebutton-fsesl-system") | ||
|
||
val redisPublisher = new RedisPublisher(system) | ||
|
||
val eslConnection = new DefaultManagerConnection(eslHost, eslPort, eslPassword) | ||
|
||
val voiceConfService = new VoiceConferenceService(redisPublisher) | ||
|
||
val fsConfEventListener = new FreeswitchConferenceEventListener(voiceConfService) | ||
fsConfEventListener.start() | ||
|
||
val eslEventListener = new ESLEventListener(fsConfEventListener) | ||
val connManager = new ConnectionManager(eslConnection, eslEventListener, fsConfEventListener) | ||
|
||
connManager.start() | ||
|
||
val fsApplication = new FreeswitchApplication(connManager, fsProfile) | ||
fsApplication.start() | ||
|
||
val redisMsgReceiver = new RedisMessageReceiver(fsApplication) | ||
|
||
val inJsonMsgBus = new InsonMsgBus | ||
val redisMessageHandlerActor = system.actorOf(RxJsonMsgHdlrActor.props(fsApplication)) | ||
inJsonMsgBus.subscribe(redisMessageHandlerActor, toFsAppsJsonChannel) | ||
|
||
val redisSubscriberActor = system.actorOf(AppsRedisSubscriberActor.props(system, redisMsgReceiver, inJsonMsgBus), "redis-subscriber") | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters