You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openmeetings.apache.org by co...@google.com on 2013/02/13 23:58:06 UTC

[red5phone] r76 committed - OM context is made configurable

Revision: 76
Author:   solomax666@gmail.com
Date:     Wed Feb 13 14:57:45 2013
Log:      OM context is made configurable
http://code.google.com/p/red5phone/source/detail?r=76

Modified:
  /branches/red5sip/settings.properties
  /branches/red5sip/src/java/org/red5/sip/app/Application.java

=======================================
--- /branches/red5sip/settings.properties	Sun Feb 10 12:42:20 2013
+++ /branches/red5sip/settings.properties	Wed Feb 13 14:57:45 2013
@@ -1,4 +1,5 @@
  red5.host=127.0.0.1
+om.context=openmeetings
  red5.codec=asao
  red5.codec.rate=22
  sip.obproxy=127.0.0.1
=======================================
--- /branches/red5sip/src/java/org/red5/sip/app/Application.java	Sun Feb 10  
12:42:20 2013
+++ /branches/red5sip/src/java/org/red5/sip/app/Application.java	Wed Feb 13  
14:57:45 2013
@@ -29,7 +29,10 @@
      public static SIPTransport createSIPTransport(Properties prop, int  
room_id) {
          log.info("Creating SIP trasport for room: " + room_id);
          RTPStreamSender.useASAO =  
prop.getProperty("red5.codec", "asao").equals("asao");
-        RTMPRoomClient roomClient = new  
RTMPRoomClient(prop.getProperty("red5.host"), "openmeetings", room_id);
+        RTMPRoomClient roomClient = new RTMPRoomClient(
+			prop.getProperty("red5.host")
+			, prop.getProperty("om.context", "openmeetings")
+			, room_id);
          SIPTransport sipTransport = new SIPTransport(roomClient,  
sipPort++, soundPort++) {
              public void onUaRegistrationSuccess(SIPRegisterAgent ra,  
NameAddress target, NameAddress contact, String result) {

@@ -88,7 +91,7 @@
                  }
              }
          } else {
-            this.rtmpControlClient = new  
RTMPControlClient(props.getProperty("red5.host"), "openmeetings") {
+            this.rtmpControlClient = new  
RTMPControlClient(props.getProperty("red5.host"),  
props.getProperty("om.context", "openmeetings")) {
                  @Override
                  protected void startRoomClient(int id) {
                      transportMap.put(id, createSIPTransport(props, id));