Hi Guys
Trying to setup a separate Freeswitch instance but am not able to get it to work.
Scope:
Setting up ASTPP with a separate Freeswitch instances.
I have 2 "clients" one internal and one external, I want to separate the Freeswitch servers so that each department can put as much load on the systems as they want without affecting the other.
What I have done so far.
Using release 3.6
OS: CentOS 7 64bit net-install
FS = Freeswitch (for reference)
First I do simple install script as per manual "
Quick Installation".
Install a standalone ASTPP Server as per usual, set up configure and test and working.Then a standalone Freeswitch server as below:During install Say Yes to installing ASTPP
Say Yes to installing Freeswitch
Say no to ASTPP Web UI install
After install on FS server:nano -w /etc/fail2ban/jail.local
ignoreip = ASTPP_Server_IP_here
service fail2ban restart
Allow ASTPP server IP to this FS server for FS port:iptables -I INPUT -p tcp -s ASTPP_Server_IP_here --dport 8021 -j ACCEPT
iptables -I INPUT -p udp -s ASTPP_Server_IP_here --dport 8021 -j ACCEPT
Copy /var/lib/astpp/ astpp-config.conf and astpp.lua from working ASTPP server to this new FS server.
Log into original / main ASTPP server Web UI and add this new ASTPP servers details to Switch/Freeswitch Servers.
Now SSH into the ASTPP server allow iptables connection from this new FS server for MySQL and ODBC connections:iptables -I INPUT -p tcp -s FS_Server_IP_here --dport 3306 -j ACCEPT
iptables -I INPUT -p udp -s FS_Server_IP_here --dport 3306 -j ACCEPT
iptables -I INPUT -p tcp -s FS_Server_IP_here --dport 1433 -j ACCEPT
iptables -I INPUT -p udp -s FS_Server_IP_here --dport 1433 -j ACCEPT
Add this new FS server to Fail2ban whitelist on ASTPP server:nano -w /etc/fail2ban/jail.local
ignoreip = FS_Server_IP_here
service fail2ban restart
On ASTPP serer Create a new DB user with GRANT access (in via SSH / Terminal):CREATE USER 'astppfsusr'@'%' IDENTIFIED BY 'SOMESECUREPASSWORD';
GRANT ALL PRIVILEGES ON *.* TO 'astppfsusr'@'%';
GRANT GRANT OPTION ON *.* TO 'astppfsusr'@'%';
FLUSH PRIVILEGES;
Test it by connecting to the ASTPP server from the FS server (in via SSH / Terminal)i.e.:mysql -uastppfsusr -SOMESECUREPASSWORD -hFS_Server_IP_here
update settings in ASTPP configs on FS Server:nano -w /var/lib/astpp/astpp-config.conf
nano -w /var/lib/astpp/astpp.lua
and:
nano -w /etc/odbc.ini
on FS server add the ASTPP server IP to FS servers freeswitch ACL's:nano -w /usr/local/freeswitch/conf/autoload_configs/acl.conf.xml
added:
<list name="lan" default="allow">
<node type="allow" cidr="ASTPP_Server_IP_here/32"/>
</list>
nano -w /usr/local/freeswitch/conf/autoload_configs/event_socket.conf.xml
added:
<param name="apply-inbound-acl" value="lan"/>
<!--<param name="apply-inbound-acl" value="loopback.auto"/>-->
<!--<param name="stop-on-bind-error" value="true"/>-->
When done I run is fs_cli:reloadacl
Sofia / Freeswitch stuff run on both servers via terminal:
First access CLI:fs_cli
With ngrep I can also see that when I try to connect to the FS as omne of the SIP accounts on the ASTPP server it does not work.
Below example replace SIP_USERNAME with the SIP Device, username and Domain with the SIP servers IP: