sábado, 19 de abril de 2025

Adding an Archive server to an existing Cluster!?

 

Re: Adding an Archive server to an existing Cluster!?

Postby mflorell » Fri Sep 18, 2015 8:40 am

The configuration options are in the /etc/astguiclient.conf file on each dialer. After configuring the FTP settings, you should run the FTP script that is in your crontab entry, then if everything works you can uncomment it so it runs every 3-5 minutes,

Here's an examples of the FTP script:
/usr/share/astguiclient/AST_CRON_audio_3_ftp.pl --MP3 --run-check --ftp-persistent --ftp-validate

As for the links, you will need to make sure you know where the recording files will go from webroot on your media server and adjust the astguiclient.conf FTP settings accordingly.
mflorell
Site Admin
 
Posts: 18406
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

dimensioning

 https://docs.vicibox.com/en/latest/introduction/hardware/dimensioning.html

VICIDIAL SSL installation and ocnfig step by step

 


✅ Step-by-Step Instructions


1. Install Apache2 on openSUSE

Run these commands on your Web server:

sudo zypper install apache2

sudo systemctl enable apache2

sudo systemctl start apache2

2. (Optional) Run vicibox-ssl

If you’re using a ViciBox installation, you can auto-generate and install a cert with:

sudo vicibox-ssl

3. Use Let’s Encrypt Certs from acme.sh

If you've already obtained the SSL certs using acme.sh, your cert and key files will be located here:

/root/.acme.sh/ambiorixg12-dialer.ddns.net/

Key files used:

  • ambiorixg12-dialer.ddns.net.cer → Certificate

  • ambiorixg12-dialer.ddns.net.key → Private Key

Apache will use these directly in the next step.


4. Create Apache Virtual Host for HTTPS

Create a new virtual host config file:

sudo nano /etc/apache2/vhosts.d/ambiorixg12-dialer.conf


<VirtualHost *:443>

    ServerName ambiorixg12-dialer.ddns.net

    DocumentRoot /srv/www/htdocs


    SSLEngine on

    SSLCertificateFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.cer

    SSLCertificateKeyFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.key


    <Directory "/srv/www/htdocs">

        Options Indexes FollowSymLinks

        AllowOverride All

        Require all granted

    </Directory>


    ErrorLog /var/log/apache2/ambiorix-error.log

    CustomLog /var/log/apache2/ambiorix-access.log combined

</VirtualHost>

5. Optional: Redirect HTTP to HTTPS

To redirect all HTTP requests to HTTPS:

sudo nano /etc/apache2/vhosts.d/redirect.conf
<VirtualHost *:80>
    ServerName ambiorixg12-dialer.ddns.net
    Redirect permanent / https://ambiorixg12-dialer.ddns.net/
</VirtualHost>

6.  Enable SSL Module 


sudo a2enmod ssl
sudo a2enflag SSL

7. Test Apache Configuration

sudo apachectl configtest


8. Restart Apache
sudo systemctl restart apache2

9. Test in Browser

Open:

🔗 https://ambiorixg12-dialer.ddns.net

Load balance you Phone alias..

 Postby mflorell » Sun Sep 26, 2010 2:42 pm

Let's say you have 3 servers:
10.0.0.11
10.0.0.12
10.0.0.13

and you have an agent phone you want to phone-load-balance-login across all three servers, you would need to create a phones entry for that phone on each server with a different login:
101a -> 10.0.0.11
101b -> 10.0.0.12
101c -> 10.0.0.13

Then you go into to add a new alias(101x) for this set of phone logins which has this as the extension:
101a,101b,101c

Then the agent logs in with 101x as the phone login and tada, it works!

VICI cluster installation

Here is a clearly organized, step-by-step breakdown of the ViciBox installation process across three server roles: Database, Web, and Telephony. Each section includes the expected installation output summary for reference.


🔹 1. Database Server Installation

✅ Steps:

  1. Attach ViciBox ISO to the server.

  2. Boot from ISO.

  3. Select Install when prompted.

  4. Once OS is installed, update system:

    zypper up

5 Run ViciBox installer and follow prompts to set this server as the Database Server.
---  ViciBox Install Summary  ---

Expert   : Yes
Legacy   : No
Database : Yes
Web      : No
Telephony: No
Archive  : No
Firewall : Disabled

---  Configuration Information  ---

-  Database  -
SVN Rev  : 3920
IP Addr  : 5.78.125.222
Name     : asterisk
User     : cron
Password : 1234
Cust User: custom
Cust Pass: custom1234
Port     : 3306

🔹 2. Web Server Installation
Boot from ISO or use a clean ViciBox installation.
vicibox-install
  • When prompted:

    • Enter local IP: 5.78.132.229

    • Choose Expert install: y

    • Use this server as Web server: y

    • Input database IP: 5.78.125.222

    • Enable Redirect Page: y

    • Do not enable Database, Telephony, or Archive roles.

    • Keep firewall enabled.

  • Post-install configuration:



  • nano +227 /etc/apache2/httpd.conf

  •  IncludeOptional /etc/apache2/vhosts.d/*.conf

  • cd /etc/apache2/vhosts.d/

  • and rename to  dynportal_1  dynportal-ssl_1 

  • systemctl start apache2

    systemctl status apache2


      ViciBox Install Summary  ---


  • Expert   : Yes
    Legacy   : No
    Database : No
    Web      : Yes
    Redirect : Yes
    Telephony: No
    Archive  : No
    Firewall : Enabled

    ---  Configuration Information  ---
    -  Database  -
    SVN Rev  : 3920
    IP Addr  : 5.78.125.222
    Name     : asterisk
    User     : cron
    Password : 1234
    Cust User: custom
    Cust Pass: custom1234
    Port     : 3306
  • 🔹 3. Telephony Server Installation
  • vicibox-install


  • When prompted:

    • Enter local IP: 5.78.68.242

    • Choose Expert install: y

    • Use this server as Telephony server: y

    • Do not enable Web, Database, or Archive roles.

    • Input database IP: 5.78.125.222

    • Keep firewall enabled

    • 📋 Output After Installation:

    • ---  ViciBox Install Summary  ---


      Expert   : Yes

      Legacy   : No

      Database : No

      Web      : No

      Telephony: Yes

      Archive  : No

      Firewall : Enabled


      ---  Configuration Information  ---

      -  Database  -

      SVN Rev  : 3920

      IP Addr  : 5.78.125.222

      Name     : asterisk

      User     : cron

      Password : 1234

      Cust User: custom

      Cust Pass: custom1234

      Port     : 3306

    • ------------------
    this config is after install vici   ssl

  • nano +227 /etc/apache2/httpd.conf

  •  IncludeOptional /etc/apache2/vhosts.d/*.conf

  • create this file  
  • /etc/apache2/vhosts.d/vici-ddns.conf

  • <VirtualHost *:443>
        ServerName vici.ddns.net
        DocumentRoot /srv/www/htdocs

        SSLEngine on
        SSLCertificateFile /root/.acme.sh/vici.ddns.net/vici.ddns.net.cer
        SSLCertificateKeyFile /root/.acme.sh/vici.ddns.net/vici.ddns.net.key

        <Directory "/srv/www/htdocs">
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog /var/log/apache2/vici-error.log
        CustomLog /var/log/apache2/vici-access.log combined
    </VirtualHost>
  • ------------------------------------------------------------------

  • nano +227 /etc/apache2/httpd.conf

  •  IncludeOptional /etc/apache2/vhosts.d/*.conf

  • create this file
  • /etc/apache2/vhosts.d/ambiorixg12-dialer.conf
  •     ServerName ambiorixg12-dialer.ddns.net

       # DocumentRoot /srv/www/htdocs  # Change this if your web files are elsewhere
         DocumentRoot /srv/www/htdocs

        SSLEngine on
        SSLCertificateFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.cer
        SSLCertificateKeyFile /root/.acme.sh/ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.key

        <Directory "/srv/www/htdocs">
            Options Indexes FollowSymLinks
            AllowOverride All
            Require all granted
        </Directory>

        ErrorLog /var/log/apache2/ambiorix-error.log
        CustomLog /var/log/apache2/ambiorix-access.log combined
    </VirtualHost>