liuzhe02 / bigbluebutton

Automatically exported from code.google.com/p/bigbluebutton
0 stars 0 forks source link

bbb-conf won't enable/disable webRTC #1919

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
release 0.9.0, script bbb-conf enable_webrtc() function search for the wrong 
useWebrtcIfAvailable. It does not match the term used in client/conf/config.xml 
i.e. useWebRTCIfAvailable. 

I've include the original function below:
enable_webrtc(){
    # Set server ip address in FreeSWITCH
    sed -i "s@<X-PRE-PROCESS cmd=\"set\" data=\"local_ip_v4=.*\"/>@<X-PRE-PROCESS cmd=\"set\" data=\"local_ip_v4=$IP\"/>@g"  /opt/freeswitch/conf/vars.xml

    # Set server ip address in red5 sip app. For flash client.
    sed -i "s/bbb.sip.app.ip=.*/bbb.sip.app.ip=$IP/g" /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties
    sed -i "s/freeswitch.ip=.*/freeswitch.ip=$IP/g" /usr/share/red5/webapps/sip/WEB-INF/bigbluebutton-sip.properties

    # Enable WebRTC in the client
    sed -i "s@useWebrtcIfAvailable=\".*\"@useWebrtcIfAvailable=\"true\"@g" /var/www/bigbluebutton/client/conf/config.xml

    # Enable port 5066 in FreeSWITCH
    sed -i 's/^.*<!--<param name="ws-binding"  value=":5066"\/>-->.*$/\t<param name="ws-binding"  value=":5066"\/>/g' /opt/freeswitch/conf/sip_profiles/external.xml

        sed -i "s/proxy_pass .*/proxy_pass http:\/\/$IP:5066;/g" /etc/bigbluebutton/nginx/sip.nginx

    echo 
    echo "WebRTC audio enabled.  To apply settings to your server, do"
    echo 
    echo "   sudo bbb-conf --clean"
    echo 
}

Original issue reported on code.google.com by df...@pf-bi.com on 3 Apr 2015 at 11:55

GoogleCodeExporter commented 8 years ago
Thanks for pointing this out!

Fixed

  https://github.com/bigbluebutton/bigbluebutton/pull/597

This will be in the next update to 0.9.0-beta.

Original comment by ffdixon@gmail.com on 4 Apr 2015 at 4:39