sábado, 31 de mayo de 2025

hopper level


Postby mflorell » Mon Apr 19, 2010 7:44 pm

hopper level = maximum number of calls placed in one minute

We usually recommend setting the hopper level to 3 x the number of calls you expect to place every minute. You can go higher, but we would not recommend setting it to 2000 for a 10 agent campaign for example.
mflorell
Site Admin
 
Posts: 18408
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

 

http://www.vicidial.org/VICIDIALforum/viewtopic.php?f=2&t=11123

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>


  • viernes, 14 de febrero de 2025

    check top 10 table using the disk

     MariaDB [asterisk]> delete  from  vicidial_api_urls;

    Query OK, 2107654 rows affected (0.028 sec)


    MariaDB [asterisk]> SELECT      table_schema,      table_name,      ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM      information_schema.tables GROUP BY      table_schema,      table_name ORDER BY      total_size_MB DESC LIMIT 10;

    +--------------+------------------------------------+---------------+

    | table_schema | table_name                         | total_size_MB |

    +--------------+------------------------------------+---------------+

    | asterisk     | vicidial_url_log                   |        600.17 |

    | asterisk     | vicidial_api_log                   |        329.22 |

    | asterisk     | vicidial_list                      |        180.85 |

    | asterisk     | call_log                           |        105.10 |

    | asterisk     | vicidial_agent_latency_log_archive |         93.64 |

    | asterisk     | vicidial_dial_log                  |         81.70 |

    | asterisk     | vicidial_carrier_log               |         64.72 |

    | asterisk     | recording_log                      |         59.82 |

    | asterisk     | vicidial_log_extended              |         54.95 |

    | asterisk     | vicidial_log                       |         49.01 |

    +--------------+------------------------------------+---------------+

    10 rows in set (0.019 sec)


    MariaDB [asterisk]> delete  from  vicidial_api_urls;                                                                                                                    Query OK, 6 rows affected (0.002 sec)


    MariaDB [asterisk]> select * from  vicidial_api_urls limit 3\G;                                                                                                         Empty set (0.000 sec)


    ERROR: No query specified


    MariaDB [asterisk]> SELECT      table_schema,      table_name,      ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM      information_schema.tables GROUP BY      table_schema,      table_name ORDER BY      total_size_MB DESC LIMIT 10;

    +--------------+------------------------------------+---------------+

    | table_schema | table_name                         | total_size_MB |

    +--------------+------------------------------------+---------------+

    | asterisk     | vicidial_url_log                   |        600.18 |

    | asterisk     | vicidial_api_log                   |        329.22 |

    | asterisk     | vicidial_list                      |        180.85 |

    | asterisk     | call_log                           |        105.10 |

    | asterisk     | vicidial_agent_latency_log_archive |         93.64 |

    | asterisk     | vicidial_dial_log                  |         81.70 |

    | asterisk     | vicidial_carrier_log               |         64.73 |

    | asterisk     | recording_log                      |         59.82 |

    | asterisk     | vicidial_log_extended              |         54.96 |

    | asterisk     | vicidial_log                       |         49.01 |

    +--------------+------------------------------------+---------------+

    10 rows in set (0.019 sec)


    MariaDB [asterisk]> delete from  vicidial_api_log;

    Query OK, 2107675 rows affected (0.019 sec)


    MariaDB [asterisk]> SELECT      table_schema,      table_name,      ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS total_size_MB FROM      information_schema.tables GROUP BY      table_schema,      table_name ORDER BY      total_size_MB DESC LIMIT 10;

    +--------------+------------------------------------+---------------+


    lunes, 2 de diciembre de 2024

    remove the phone code from number 11 digits

     UPDATE vicidial_list 

    SET phone_code = NULL 

    WHERE LENGTH(phone_number) > 10;


    martes, 26 de noviembre de 2024

    disk clean

    Delete logs

     find /var/log/astguiclient -type f -mtime +1 -exec rm -f {} \;




    Delete all   no time restrictions
    /usr/bin/find /var/spool/asterisk/monitorDONE/ORIG -maxdepth 2 -type f -print | xargs rm -f

    delete only mp3 files other  than  7 days running this cron every  9 days

    0 0 */9 * * /usr/bin/find /var/spool/asterisk/monitorDONE/MP3 -maxdepth 2 -type f -name "*.mp3" -mtime +7 -exec rm -f {} \;


    ..............

    #!/bin/bash

    # Get the most recent binary log file name
    latest_log=$(mysql -u root -e "SHOW BINARY LOGS;" | tail -n 1 | awk '{print $1}')

    # Run FLUSH and PURGE BINARY LOGS
    mysql -u root -e "FLUSH LOGS; PURGE BINARY LOGS TO '$latest_log';"












    -------
    ./db_flush.sh

    martes, 19 de noviembre de 2024

    changing vicidial recording link

     

    Edit   user_stats.php  (https://github.com/inktel/Vicidial/blob/master/www/vicidial/user_stats.php)


         $location_public = str_replace("172.31.82.237", "dialer.1callclosers.com", $location); // changed added for change recs addresss amb.

                    $MAIN.="<td align=left><font size=2> $row[4] </td>\n";

                    $MAIN.="<td align=left><font size=2> $row[8] </td>\n";

                    $MAIN.="<td align=left><font size=2> $row[0] </td>\n";

                    $MAIN.="<td align=center><font size=2> $row[10] </td>\n";

                    //$MAIN.="<td align=right><font size=2>  $location &nbsp; </td>\n";

                        $MAIN.="<td align=right><font size=2>  $location_public &nbsp; </td>\n";




    apply  permissions for avoid 403 errors


     chmod 755 /var/spool/asterisk

    viernes, 15 de noviembre de 2024

    vicidial holliday


    Postby mflorell » Mon Oct 26, 2009 9:18 am

    There is currently no holiday function in ViciDial. You can just change the call times scheme to change the hours up to 6 days in advance.

     
    https://vicidial.org/VICIDIALforum/viewtopic.php?t=9381




    Re: Holiday definitions for temporarily closing

    Postby mflorell » Fri Oct 12, 2018 9:35 am

    The only workaround for that is to use crontab entries with SQL to alter a call time and then alter it back at those times.

    Opening, or operating, times are not able to have two active time periods in the same day.
    http://www.eflo.net/VICIDIALforum/viewtopic.php?f=4&t=38807

    miércoles, 23 de octubre de 2024

    Install viciphone and change default registration time

     1 cd /srv/www/htdocs/


    2 git clone https://github.com/vicimikec/ViciPhone.git

    3 nano /srv/www/htdocs/ViciPhone/src/js/sip.js

    3 Change Registerer.defaultExpires from 600 to 3200:



    4 Registerer.defaultExpires = 3200;

    5 Update the Webphone URL: https://ambiorixg12-dialer.ddns.net/Vic ... iphone.php

    6 Check the SIP registration logs to verify if the new registration expiration time has taken effect.

    [Oct 23 11:20:24] Contact: <sip:9cc82b9h@192.0.2.186;transport=wss>;expires=3200
    [/list]
    [/i]

    o far, everything look

    jueves, 4 de enero de 2024

    Re: Too many login attempts

     


    Re: Too many login attempts

    Postby blackbird2306 » Mon Oct 14, 2019 12:10 pm

    Why don't you wait and try it 15 minutes later? If you don't want to wait this time you can unlock the user (6666) by typing this in linux cli:
    CODE: SELECT ALL
    mysql -D asterisk -e 'UPDATE `vicidial_users` SET `failed_login_count` = "0" WHERE `user` = "6666";'

    and if you have forgotten the password for a certain user, you can change the password by this line:
    CODE: SELECT ALL
    mysql -D asterisk -e 'UPDATE `vicidial_users` SET `pass` = "HERENEWPASSWORD" WHERE `user` = "6666";'

    sábado, 18 de noviembre de 2023

    Re: Ingroups Calls showing for everyone

     

    Re: Ingroups Calls showing for everyone

    Unread postby atkins513 » Sat Nov 18, 2023 2:36 pm

    I changed the individual setting under "user modify" to only checkmark their named ingroup only. I went to the usergroup they belong to and only checkmarked for that usergroup to have access under "Allowed User Groups:" to that group only. Not "ALL-GROUPS".

    I then went to the REP's settings and changed the "Agent Choose Ingroups" to 0 as recommended by @carpenox. This was the crucial step.

    All of these together worked flawlessly. Thank you!

    lunes, 6 de noviembre de 2023

    viciphone settings

    https://docs.vicibox.com/en/latest/installation.html


    https://docs.vicibox.com/en/latest/networking/vicibox-ssl.html

    1)  vicibox-express

    2)   reboot

    3) vicibox-ssl  ( enter your  email and domain)



    4) nano /etc/asterisk/http.conf

     tlscertfile=/root/.acme.sh//ambiorixg12-dialer.ddns.net/fullchain.cer

    tlsprivatekey=/root/.acme.sh//ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.key


    check  asterisk wss status


    static*CLI> http show status

    HTTP Server Status:

    Prefix: 

    Server: Asterisk

    Server Enabled and Bound to 127.0.0.1:8088


    HTTPS Server Enabled and Bound to 0.0.0.0:8089


    Enabled URI's:

    /httpstatus => Asterisk HTTP General Status

    /ws => Asterisk HTTP WebSocket


    Enabled Redirects:

      None.




    5) Change server settings to :

    Web Socket URL:HELP

    Web Socket URL:

    wss://ambiorixg12-dialer.ddns.net:8089/ws


    6)  Webphone URL on system setting

    https://phone.viciphone.com/v3.0/viciphone.php

    Webphone URL:HELP

    7) VICI PHONE TEMPLATE


    MODIFY A CONF TEMPLATE RECORD: VICIphone
    Template ID:VICIphone
    Template Name:HELP
    Admin User Group:HELP

    type=friend

    host=dynamic

    encryption=yes

    avpf=yes

    icesupport=yes

    directmedia=no

    transport=wss

    force_avp=yes

    dtlsenable=yes

    dtlsverify=no

    dtlscertfile=/root/.acme.sh//ambiorixg12-dialer.ddns.net/fullchain.cer

    dtlsprivatekey=/root/.acme.sh//ambiorixg12-dialer.ddns.net/ambiorixg12-dialer.ddns.net.key

    dtlssetup=actpass

    rtcp_mux=yes

    context=default


    8) Container settings

    Container ID:VICIPHONE_SETTINGS

    # determines if the reg_exten is called upon successful registration

    dialRegExten : 1


    9) Add sip phones settings

    Set As Webphone:HELP
    Webphone Dialpad:HELP
    Webphone Auto-Answer:HELP
    Webphone Dialbox:HELP
    Webphone Mute:HELP
    Webphone Volume:HELP



    Webphone Extra Settings:HELP

    Template ID:HELP  


    1 cd /srv/www/htdocs/agc 


     2 cp options-example.php options.php static:/srv/www/htdocs/agc 


     3 nano options.php 

    $webphone_call_seconds  = 1;  # set to 1 or higher to have the agent phone(if set to webphone) called X seconds after login


    lunes, 25 de julio de 2022

    allow-remote-access-to-mariadb-server-on-rhel-centos

     https://shouts.dev/articles/allow-remote-access-to-mariadb-server-on-rhel-centos

    Re: Custom caller ID per area code randomness

     CAMPAIGN CID AREACODES


    If the System Setting for Areacode CIDs is enabled and the Campaign setting for Use Custom CallerID is set to AREACODE then you have the ability to define Areacode CIDs that will be used when outbound calling to leads in this specific campaign. You can add multiple callerIDs per areacode and you can activate and deactivate them each in real time. If more than one callerID is active for a specific areacode then the system will use the callerid that has been used the least number of times today. If no callerIDs are active for the areacode then the campaign CallerID or list override CallerID will be used. An areacode in this section can be from 2 to 5 digits in length, and if a shorter defined areacode overlaps with a longer areacode then the longer areacode will be used. For example, if the areacodes 31 and 312 are both defined and active for a campaign, then areacode 312 would be used for phone number 3125551212.


    Re: Custom caller ID per area code randomness

    Postby mflorell » Mon Nov 20, 2017 7:52 am

    The counters reset every day, so it will most likely dial the same one first on the second day since there is no random generator on the query that pulls it.

    martes, 19 de julio de 2022

    Re: AMD Calls Response Dead Air

     

    Re: AMD Calls Response Dead Air

    Postby mflorell » Tue Oct 29, 2019 11:54 am

    Have you tried not using AMD at all? We usually recommend to our clients that they try to not use it because of the delay it adds to routing calls to agents.

    sábado, 9 de abril de 2022

    Re: option in ingroup to goto voicemail

     

    Re: option in ingroup to goto voicemail

    Postby williamconley » Mon Mar 05, 2018 2:37 pm

    Vicibox version is incomplete. 7.0.XX (there's a third digit missing).

    This is what call menus are for. Send the caller to a menu before the ingroup. If they then land in an ingroup and you want them to have the option to exit, look at "Wait Time Option Callmenu" and "Hold Time Option Callmenu", either of which can be used to route a caller who presses a button while in an Ingroup. You can also "drop call" to a call menu, offer the caller the option to go somewhere else (such as VM) and then put them back into the ingroup if they do not choose the call menu, but they'll lose their place in line when that happens.

    miércoles, 17 de noviembre de 2021

    Zypper Cheat Sheet

    https://en.opensuse.org/images/1/17/Zypper-cheat-sheet-1.pdf