diff --git a/bigbluebutton-config/bin/bbb-conf b/bigbluebutton-config/bin/bbb-conf
index aa75277efc..e3476e2176 100644
--- a/bigbluebutton-config/bin/bbb-conf
+++ b/bigbluebutton-config/bin/bbb-conf
@@ -324,7 +324,7 @@ enable_webrtc(){
sed -i "s@useWebrtcIfAvailable=\".*\"@useWebrtcIfAvailable=\"true\"@g" /var/www/bigbluebutton/client/conf/config.xml
# Enable port 5066 in FreeSWITCH
- sed -i "s@@@g" /opt/freeswitch/conf/sip_profiles/external.xml
+ sed -i 's/^.*.*$/\t/g' /opt/freeswitch/conf/sip_profiles/external.xml
sed -i "s/proxy_pass .*/proxy_pass http:\/\/$IP:5066;/g" /etc/bigbluebutton/nginx/sip.nginx
@@ -347,7 +347,7 @@ disable_webrtc(){
sed -i "s@useWebrtcIfAvailable=\".*\"@useWebrtcIfAvailable=\"false\"@g" /var/www/bigbluebutton/client/conf/config.xml
# Disable port 5066 in FreeSWITCH
- sed -i "s@@@g" /opt/freeswitch/conf/sip_profiles/external.xml
+ sed -i 's/^.*.*$/\t/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