ASTPP (v6.0) installation

By Yevgeniya Suminova on 2023-06-22

 

Contents

Introduction. 1

Prerequisits. 1

Procedure. 1

Next steps (this section must be updated). 1

References. 1

End of document. 1

 

Introduction

We have installed new version of ASTPP – v6.0  and there are quite some changes during the installation process.

For us, there are following differences:

·         The OS system is no longer CentOS 7 but Debian 11

·         A Personal Access Token was necessary to provide. It was obtained by creating a Freeswitch SignalWire account.

·         The procedure of creating an SSL certificate has changed (due to the change in OS)

·         We also were surprised that in order to be able to make calls (even local) the SIP profile has to be activated or started:

Switch” => “SIP profiles” => “Profile Action = Start

 

 

Prerequisits

1.        VPS server Debian 11

2.        To know how to point domain/subdomain to an IP

Note! Everywhere where the info is highlighted in yellow, you need to replace it with your data (IP or domain or whatever else).

 

Procedure

1.       Order /reinstall a VPS with Debian 11 operation system.

 

2.       Download the latest version of the ASTPP here

3.       Unzip downloaded folder

4.       Enter via command prompt to the downloaded and unzipped folder. I use Cygwin in my example.

cd ‘this_is _your_folder_path’

5.       Copy with “scp” command the “install.sh” file to the new Debian 11 server:

scp install.sh debian@51.79.54.205:

6.       Enter via SSH to the server.

ssh debian@51.79.54.205

7.       Change to root user

sudo su

8.       type “ls” to make sure that the “install.sh” file is there:

ls

9.       Move “install.sh” file to the “/usr/src/” directory

mv install.sh /usr/src/

10.   Enter that directory

cd /usr/src/

11.   Check again that “install.sh” file is there:

ls

12.   Give necessary permission to the file:

chmod +x install.sh

13.   Proceed with installation

./install.sh

14.   You will be asked for a Personal Access Token. You can create new one by login here: Freeswitch SignalWire account.

These are the instructions: HOWTO Create a SignalWire Personal Access Token

Or you can use the existing one if available. Check that with management.

 

15.   You will need to agree with the license. Hit Enter until you reach 100%

16.   Type “YES” and Enter

17.   Enter domain: billing.4z.com

18.   Enter email address. I took contact@4z.com

 

19.   At some point you will need to respect following instructions:

Debian 11 OS: If you are using Debian 11 OS, in MySQL configuration, start by selecting the 'Debian Buster' repository, and then select 'OK' for the configuration part.

 

20.   You will be asked several times if you want to continue, saying that some additional space will be used, etc…

Always type “Y” and hit “Enter”

 

21.   You will be asked to enter some information like Country, email, etc…:

CH

.

.

4z.com

.

.

contact@4z.com

22.   You will be asked: Do you want to install and configure Fail2ban ? (y/n) => Hit “y”

 

23.   Fill fail2ban@4z.com for both client’s and sender email addresses:

24.   You will see the following passwords. Save them and do not lose them, else you will not be able to enter the database!!!!

25.   Reboot your server:

systemctl reboot

26.   At this step you should point your domain/subdomain to your astpp server’s IP address. We do not explain in this document how to do it.
4z.com team can use these instructions that should help

If/when your domain/subdomain points to your asttp’s IP, then continue with the next steps.

 

27.   Login back to the server via ssh

ssh debian@51.79.54.205

28.   Change to root user

sudo su

29.   Enter in the main directory

cd

30.   Now we need to generate SSL certificate. For that, install certbot:

sudo apt install certbot python3-certbot-nginx

31.   Generate the certificate for your domain

sudo certbot --nginx -d billing.4z.com

32.   You will be requested an email address.
Use contact@4z.com

33.   It will ask you the following:

34.   Type “Y”

35.   Type “N” for the next question:

36.   You will see “Congratulations!” if it is successful.

37.   Install ngrep (network packet analyzer)

sudo apt install ngrep

38.   Type “Y”

39.   Install nano

sudo apt install nano

40.   Type “Y”

41.   Now go to web interface https://billing.4z.com and change admin’s password

42.   Bravo! You are done for the moment!

Next steps (this section must be updated)

See (or get back to) this doc

References

V4.0.1 installation doc: https://docs.switzernet.com/3/public/210311-astpp-instalation/

SSL certificate tutorial: https://www.digitalocean.com/community/tutorials/how-to-secure-nginx-with-let-s-encrypt-on-debian-11

https://docs.switzernet.com/3/public/210410-astpp-problem-in-invoices-template/

https://docs.switzernet.com/3/company/210408-changing-email-field-format-for-importing-customers/

https://docs.switzernet.com/3/public/210407-astpp-paths-and-conf-files/

https://docs.switzernet.com/3/public/210531-astpp-notification-email-issue-fix/

End of document

***

© 4z.com