FREESWITCH TAKING OVER PORT 8081

454 views
Skip to first unread message

vps4hire

unread,
Oct 6, 2015, 5:24:10 AM10/6/15
to ASTPP
i dont know if any of you have experienced this. But on centos  installation on a dedicated server looks like freeswitch takes over port 8081 by default  and apache doesnt start. The solution is to first stop freeswitch then restart apache then restart freeswitch. It happens everytime i reboot the dedicated server. Funny enough it does not happen on vps servers

David Dejaeghere

unread,
Oct 6, 2015, 5:30:45 AM10/6/15
to as...@googlegroups.com
You should not have 2 services binding to the same port.  Its perfectly ok to change this port in Apache and use 8082 for ASTPP.  Or better yet, verify what FreeSWITCH module is using 8081 and see if this is needed and remove that module configuration.

grep "8081" /etc/freeswitch/* --recursive
Assuming that Freeswitch its configuration is located in this directory on Centos

Regards,

David

2015-10-06 11:24 GMT+02:00 vps4hire <omp...@gmail.com>:
i dont know if any of you have experienced this. But on centos  installation on a dedicated server looks like freeswitch takes over port 8081 by default  and apache doesnt start. The solution is to first stop freeswitch then restart apache then restart freeswitch. It happens everytime i reboot the dedicated server. Funny enough it does not happen on vps servers

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/755720ad-1521-46e1-b61d-eac44f89e2cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

vps4hire

unread,
Oct 6, 2015, 5:37:01 AM10/6/15
to ASTPP
grep "8081" /usr/src/freeswitch/* --recursive
/usr/src/freeswitch/conf/vanilla/autoload_configs/verto.conf.xml:      <param name="bind-local" value="0.0.0.0:8081"/>
/usr/src/freeswitch/htdocs/portal/index.html: // var port = 8081; // for test

vps4hire

unread,
Oct 6, 2015, 5:39:46 AM10/6/15
to ASTPP
and the file looks like this 


  <settings>
    <param name="debug" value="0"/>
  </settings>

  <profiles>
    <profile name="mine">
      <param name="bind-local" value="0.0.0.0:8081"/>
      <param name="bind-local" value="0.0.0.0:8082" secure="true"/>
      <param name="secure-combined" value="$${certs_dir}/wss.pem"/>
      <param name="secure-chain" value="$${certs_dir}/wss.pem"/>
      <param name="userauth" value="true"/>
      <!-- setting this to true will allow anyone to register even with no account so use with care -->
      <param name="blind-reg" value="false"/>
      <param name="mcast-ip" value="224.1.1.1"/>
      <param name="mcast-port" value="1337"/>
      <param name="rtp-ip" value="$${local_ip_v4}"/>
      <!--  <param name="ext-rtp-ip" value=""/> -->

David Dejaeghere

unread,
Oct 6, 2015, 5:55:21 AM10/6/15
to as...@googlegroups.com
I think you can just remove /usr/src/freeswitch/conf/vanilla/autoload_configs/verto.conf.xml to resolve your problem. 

I dont believe this has anything to do with Centos because you are compiling FreeSwitch yourself. this specific config file is the webrtc module and since this is not used by astpp you can simpy remove this config. Furthermore you should check your compilation steps because it seems it is building this module for you on your centos machine and not on your vps. If you dont build this module you also wont end up with that config file.

Regards,

David

--
=====================================================================
Documentation : https://astppdoc.atlassian.net/
Please contact at sa...@inextrix.com for commercial support.
---
You received this message because you are subscribed to the Google Groups "ASTPP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to astpp+un...@googlegroups.com.
To post to this group, send email to as...@googlegroups.com.
Visit this group at http://groups.google.com/group/astpp.

Juned Khan

unread,
Oct 6, 2015, 6:12:18 AM10/6/15
to as...@googlegroups.com
What about just unloading that module instead of removing relevant configuration files ? 
If you're sure about all config files which is related to that module then go with removing files 
else i would recommend you to just unload that and make sure everything works perfectly.

Regards,


David Dejaeghere

unread,
Oct 6, 2015, 7:34:44 AM10/6/15
to as...@googlegroups.com
This and the fact that the config files under /usr/src are probably not the running config files but part of the source...

conf/autoload_configs/modules.conf.xml

search:
<load module="mod_verto"/>

and change into:
<!-- <load module="mod_verto"/>   -->

siejelex

unread,
Oct 21, 2015, 1:15:04 AM10/21/15
to ASTPP
Hi All,

My experience using centos the problem not inside of freeswitch config. Problem solve after set selinux config to disable.

Maybe it's a different case. Thanks.

Michael Masanga

unread,
Oct 22, 2015, 6:18:49 AM10/22/15
to as...@googlegroups.com
Selinux is disabled already 
To view this discussion on the web visit https://groups.google.com/d/msgid/astpp/2897f4cb-d01e-43ae-b461-88d45684eceb%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages