diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf
index d2f9c8c88a0e497c3b960dbd91b341d5eed6bb7b..97a1557521b9085478d0b55dfb736d5ec28c9a09 100755
--- a/bigbluebutton-config/bin/bbb-conf
+++ b/bigbluebutton-config/bin/bbb-conf
@@ -318,6 +318,8 @@ enable_webrtc(){
 	# Enable port 5066 in FreeSWITCH
 	sed -i "s@<!--<param name=\"ws-binding\"  value=\":5066\"/>-->@<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 
@@ -339,6 +341,8 @@ disable_webrtc(){
 	# Disable port 5066 in FreeSWITCH
 	sed -i "s@<param name=\"ws-binding\"  value=\":5066\"/>@<!--<param name=\"ws-binding\"  value=\":5066\"/>-->@g" /opt/freeswitch/conf/sip_profiles/external.xml
 
+        sed -i "s/proxy_pass .*/proxy_pass http:\/\/127.0.0.1:5066;/g" /etc/bigbluebutton/nginx/sip.nginx
+
 	echo 
 	echo "WebRTC audio disabled.  To apply settings to your server, do"
 	echo