V5.0 odd configuration by script

I have installed version 5 of ASTPP in a virtual machine for testing. Something seems very off on the configuration.

I see FreeSwitch is oddly listening on TCP port, 8021, but TCP/UDP port 5060 is open. Why is there such a discrepancy?

I cannot connect a client with such a configuration.

Can’t edit previous post, but looking at vars.xml, I see the correct ports are set

<!-- Internal SIP Profile -->
  <X-PRE-PROCESS cmd="set" data="internal_auth_calls=true"/>
  <X-PRE-PROCESS cmd="set" data="internal_sip_port=5060"/>
  <X-PRE-PROCESS cmd="set" data="internal_tls_port=5061"/>
  <X-PRE-PROCESS cmd="set" data="internal_ssl_enable=false"/>

  <!-- External SIP Profile -->
  <X-PRE-PROCESS cmd="set" data="external_auth_calls=false"/>
  <X-PRE-PROCESS cmd="set" data="external_sip_port=5080"/>
  <X-PRE-PROCESS cmd="set" data="external_tls_port=5081"/>
  <X-PRE-PROCESS cmd="set" data="external_ssl_enable=false"/>

But Freeswitch still not listening on any ports except 8021

freeswitc   517 freeswitch   21u  IPv6  14534      0t0  TCP *:8021 (LISTEN)
sshd        546       root    3u  IPv4  15357      0t0  TCP *:22 (LISTEN)
sshd        546       root    4u  IPv6  15364      0t0  TCP *:22 (LISTEN)
nginx       560       root   10u  IPv4  13011      0t0  TCP *:443 (LISTEN)
nginx       560       root   11u  IPv6  13012      0t0  TCP *:443 (LISTEN)

@smrdoshi I see the version 5 script is adding a repo for FreeSwitch 1.8 on Debian 9, but 1.10.7 is getting installed. It seems to be bugged from the complaints I have been seeing.

echo “Installing FREESWITCH”
sleep 5
apt-get install -y gnupg2
wget -O - https://files.freeswitch.org/repo/deb/freeswitch-1.8/fsstretch-archive-keyring.asc | apt-key add -
echo “deb Index of /repo/deb/freeswitch-1.8 stretch main” > /etc/apt/sources.list.d/freeswitch.list
echo “deb-src Index of /repo/deb/freeswitch-1.8 stretch main” >> /etc/apt/sources.list.d/freeswitch.list
apt-get update && apt-get install -y freeswitch-meta-all

root@astpp:~# freeswitch -version
FreeSWITCH version: 1.10.7-release-19-883d2cb662~64bit (-release-19-883d2cb662 64bit)

Hello @KNERD
8021 TCP is for event socket connection. And the screen shot you shared from vars.xml is for vanilla setup, ASTPP-FS is getting configuration from database.

Even after a reboot, still does not listen on port 5060, but after doing a restart of FreeSwitch itself, it is listening on port 5060. So something is not right

The reason could be when you reboot FS started before Mysql. You can set the priority in freeswitch daemon file freeswitch.service, or configure cron to reload profile after x seconds of reboot