Skip to main content

Installing Vicidial cluster & migrating from an existing installation

Upgraded Vicidial to new server hardware and VM's recently and found it extremely difficult in concept to take the plunge.  The below guide is a brief to demystify how to install it using Vicibox v9.  If you are migrating from an existing there are special steps to do, these are are optional steps are marked as #migrate.


Vicidial Server Cluster overview:

Vicidial servers have the role types: Database, Telephony, Web, Archive. Based upon the infratructure intent these can be one one or many m/c's; we choose to have each of these servers as a separete instances. When seperate, the servers need to be installed in the order: database, archive, web, Telephony (n times). Each can be done in under 10m, though the database took us about 20m given the size of our tar.gz is ~200mb.

Pre-requisite & assumption:

Download ViciBox ISO (here's a list of download for vicibox)

You can install VM's rapidly from HyperV; created a Gen 1 box; setting the ISO as the installation CD.

Steps to install each server:

It's a similar install for each server installation: install OS, establish networking, get appropriate SVN version (critical if performing a migration/restore), install vicidial. It's the last step that varies depending on the server type. Complete the setup of each server before moving on to the next.

1) Install ViciBox (using ISO)

2) run from CLI: yast lan

  (affirm networking works by ping google.com)

Before proceeding to 3, if this is a migration/restore:

cd /usr/src/astguiclient/

svn checkout -r 3426 svn://svn.eflo.net:3690/agc_2-X/trunk

(where 3426 is the desired SVN obtained from observing the value in the UI of the existing Vici Admin, Server Settings page.)

Should output a lot of obtain files, concluding with:

  Checked out revision 3426.

3) Run: vicibox-install

This is where you'll need to specify the server role.  Each question is important to answer appropriately, else you may need to start all over.  (You've been warned! h/t mflorell)

#migrate Database Backup & Copy

Backup existing database using ADMIN_backup.pl. I decided to not include log & archives and from the legacy database server ran the command:

/usr/share/astguiclient/ADMIN_backup.pl --db-only --db-without-logs --db-without-archives

This creates a file named like [ipaddress].tar.gz.

You'll later copy this using scp from the original server to the new server:

scp /var/log/astguiclient/archive/10.1.1.50_ALL_5.tar.gz root@10.83.90.119:/root

(obviously replacing the file name and IP address with your own)

Telephony (VoIP) Server:

For the VoIP server, you will be prompted to answer:

Will this server be used as a Telephony server? [y/N] : y

---> Is this the first server in a cluster? [y/N] :

If you are #migrating, pay attention to answer the second question with a N.

If the following error occurs:

Telephony server already exists! Server was previously installed.

Then you'll need to delete the server record.  Do this in the Vicidial GUI (or in mysql from the servers table). Then repeat the vicibox-install step.

After installing the Telephony server, the server status should show in Vicidial.  If it shows up with a red status, make sure that the server registration has the correct Asterisk version in the vicidial GUI Admin, Server, Asterisk Version. The version should match the name shown in asterisk when connecting via ssh and running asterisk -rvvv. For example: 13.27.0-vici.

Comments

Popular posts from this blog

Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)

Windows Networking Firewall failure Error Upon trying to open and configure the Windows built-in Firewall, you receive the error: "Windows Firewall can not run because another program or service is running that might use the Network Address Translation component (IPNat.sys)" Cause is due to settings left in by "Routing and Remote Access" service. Even if the service is stopped, Windows will still report this error because the network card bindings are still being held by RRAS. Disable RRAS by opening the MMC for it and "Disable Remote Access and Routing". This can also be found by Right -clicking "My Computer", opening the Service and Application node. By Disabling RRAS in this way, the network protocol interface bindings are removed allowing for the Windows Firewall and Connection Sharing service to take over.

VB.Net code to control mouse movement and click

VB.Net code to perform mouse movements and clicks. Include references at the top of the class code file to Windows interface libraries: Public Declare Auto Function SetCursorPos Lib "User32.dll" (ByVal X As Integer, ByVal Y As Integer) As Integer Public Declare Auto Function GetCursorPos Lib "User32.dll" (ByRef lpPoint As Point) As Integer Public Declare Sub mouse_event Lib "user32" Alias "mouse_event" (ByVal dwFlags As Integer, ByVal dx As Integer, ByVal dy As Integer, ByVal cButtons As Integer, ByVal dwExtraInfo As Integer) Some fixed constant values will be needed, so include these as basic names: Public Const MOUSEEVENTF_LEFTDOWN = &H2 Public Const MOUSEEVENTF_LEFTUP = &H4 Public Const MOUSEEVENTF_MIDDLEDOWN = &H20 Public Const MOUSEEVENTF_MIDDLEUP = &H40 Public Const MOUSEEVENTF_RIGHTDOWN = &H8 Public Const MOUSEEVENTF_RIGHTUP = &H10 Public Const MOUSEEVENTF_MOVE = &H1 This

Remove Acrobat Toolbar Plugin From Outlook and Office

After installing Acrobat Reader or Professional, a toolbar surfaces in Microsoft Office applications. It wouldn't be so bad except that even when you select to remove the Plugin, it comes right back after the office application restarts. Worse yet, the toolbar puts itself on a new line each time, reducing the usable window size. Since I rarely use this toolbar and would rather open Acrobat explicitly to use the print, email, or save as PDF features, I got rid of the toolbar. Adobe doesn't make this easy, forcing the toolbar to always be visible, unfortunately you have to modify the windows registry. Warning, don't casually modify the windows registry; since it effectivley controls Windows and most applications. 1. Begin by closing the office applications. 2. Then click start, Run, and type: regedit 3. Browse to the below registry keys and delete each one. Note that HKEY_LOCAL_MACHINE is referenced as HKLM in regedit. Outlook HKEY_LOCAL_MACHINE \Software\Adobe\Acrobat\PD