diff --git a/src/websocket2rtc/WebSocket2RTC.cc b/src/websocket2rtc/WebSocket2RTC.cc index 31419ab..9fb0c05 100644 --- a/src/websocket2rtc/WebSocket2RTC.cc +++ b/src/websocket2rtc/WebSocket2RTC.cc @@ -118,8 +118,15 @@ int main() LOG_DEBUG << "RTCContext init failed"; return -1; } - if (!RTCContext::instance().initSend(destRoomId, destChannelIndex)) { + if (!RTCContext::instance().initSend(srcRoomId, destRoomId, destChannelIndex, 1)) { LOG_DEBUG << "RTCContext initSend failed"; return -1; } + + app().getLoop()->loop(); + app().setLogLevel(trantor::Logger::kDebug); + app().run(); + LOG_INFO << "bye!"; + + return 0; } \ No newline at end of file