Manual configuration and installation

This section describes the manual installation of the XiVO CC components. In most cases you SHOULD NOT follow this page, and install the XiVO CC components via the xivocc-installer package (see Installation).


You SHOULD NOT follow this page to install XiVO CC. We leave this page here :

  • to document how to install only a subset of the XiVO CC components (since it is not currently possible via the xivocc-installer package).
  • to help with reconfiguring XiVO for XiVO CC after it has been restored from backup
  • as a reference


Since XiVO PBX 2017.06 some parts of the installation were moved from xivocc-installer to installation of XiVO PBX.


We will assume your XiVO CC server meets the following requirements:

  • OS : Debian 8 (jessie), 64 bit
  • the latest stable version of Docker is installed
  • the latest stable version of Docker-compose is installed
  • the XiVO PBX is reachable on the network
  • the XiVO PBX is setup with users, queues and agents, you must be able to place and answer calls.

Note : Install only stable version of docker and docker compose.

We will make the following assumptions :

  • the XiVO PBX has the IP
  • some data (incoming calls, internal calls etc.) might be available on XiVO (otherwise, you will not see anything in the Post Installation Check List).
  • the XiVO CC server has the IP

XiVO PBX configuration

PostgreSQL configuration

Firstly, allow access to PostgreSQL from the outside. Edit /etc/postgresql/9.4/main/postgresql.conf:

listen_addresses = '*'

Add this line to /etc/postgresql/9.4/main/pg_hba.conf:

host asterisk all md5

Create a user stats with read permissions :

sudo -u postgres psql asterisk << EOF

And run xivo-service restart all to apply these modifications.

AMI configuration

  • Add file /etc/asterisk/manager.d/02-xivocc.conf directory with the following content, replacing X.X.X.X by your xucserver IP address :
secret = xucpass
read = system,call,log,verbose,command,agent,user,dtmf,originate,dialplan
write = system,call,log,verbose,command,agent,user,dtmf,originate,dialplan
writetimeout = 10000
  • And reload the AMI :
asterisk -rx "manager reload"
asterisk -rx "manager show user xuc" and check your if previous configuration is displayed.

CEL Configuration

  • Replace content of file /etc/asterisk/cel.conf by the following :
enable = yes
apps = dial,park,queue

enabled = yes
  • and reload the cel module in Asterisk :
asterisk -rx "module reload cel"

Customizations in the web interface

  • Create a user xuc in Services -> IPBX -> Users with the following parameters:
  • CTI login : xuc
  • CTI password : 0000
  • profil supervisor
  • Create a Web Services user in Configuration -> Web Services Access with the following parameters :
  • Login : xivows
  • Password : xivows
  • Host :

Make sure Multiqueues call stats sharing is enabled in Services -> IPBX -> Advanced configuration tab.

Phone integration

Do not forget to follow configuration steps detailed in Required configuration for phone integration.

Packages for the recording

Still on the XiVO PBX, install the package which will handle the recording.

See Recording paragraph in installation section.

XiVO CC configuration

Now we switch to the installation of the XiVO CC server.

Install ntp server

apt-get install ntp

XiVO CC server and XiVO PBX server must be synchronized to the same source.

Enable Docker LogRotate

Docker container log output to /dev/stdout and /dev/stderr. The Docker container log file is saved in /var/lib/docker/containers/[CONTAINER ID]/[CONTAINER_ID]-json.log.

Create a new Logrotate config file for your Docker containers in the Logrotate folder /etc/logrotate.d/docker-container.

/var/lib/docker/containers/*/*.log {
  rotate 7

You can test it with logrotate -fv /etc/logrotate.d/docker-container. You should get some output and a new log file with suffix [CONTAINER ID]-json.log.1 should be created. This file is compressed in next rotation cycle.

Retrieve the configuration script and launch it:

Containers installation


During the installation, you will be asked for :

  • the XiVO IP address (e.g.
  • the number of weeks to keep for the statistics
  • the number of weeks to keep for the recording files
  • the external IP of the machine (i.e. the adress used afterwards for http URLs)

The number of weeks to keep statistics must be higher than the number of weeks to keep recordings. Recording purging is based on the statistic data, so the statistic data must not be removed before purging recordings.

Create the following alias in your .bashrc file:

vi ~/.bashrc
alias dcomp='docker-compose -p xivocc -f /etc/docker/compose/docker-xivocc.yml'

Containers modification

The yml file /etc/docker/compose/docker-xivocc.yml should have the correct tag version for each imeage.

Check also that the XIVO_CTI_VERSION is correct for the xuc container.

xivo_replic :
  image: xivoxc/xivo-db-replication:2016.03.latest

xivo_stats :
  image: xivoxc/xivo-full-stats:2016.03.latest

  image: xivoxc/pack-reporting:2016.03.latest

  image: xivoxc/config-mgt:2016.03.latest

  image: xivoxc/recording-server:2016.03.latest

  image: xivoxc/xuc:2016.03.latest


  image: xivoxc/xucmgt:2016.03.latest

Starting XivoCC

Then you can launch the XiVO CC with the following command :

dcomp up -d

List XivoCC services :

# dcomp ps
           Name                         Command               State                        Ports
xivocc_config_mgt_1         bin/config-mgt-docker            Up>9000/tcp
xivocc_elasticsearch_1      / elas ...   Up>9200/tcp,>9300/tcp
xivocc_fingerboard_1        /bin/sh -c /usr/bin/tail - ...   Up
xivocc_kibana_volumes_1     /bin/sh -c /usr/bin/tail - ...   Up
xivocc_nginx_1              nginx -g daemon off;             Up       443/tcp,>80/tcp
xivocc_pack_reporting_1     /bin/sh -c echo            ...   Up
xivocc_pgxivocc_1           / postgres   Up>5432/tcp
xivocc_postgresvols_1       /bin/bash                        Exit 0
xivocc_recording_server_1   bin/recording-server-docker      Up>9000/tcp
xivocc_reporting_rsync_1    /usr/local/sbin/     Up>873/tcp
xivocc_spagobi_1            /bin/sh -c /root/        Up>8080/tcp
xivocc_timezone_1           /bin/bash                        Exit 0
xivocc_xivo_replic_1        /usr/local/bin/ /o ...   Up
xivocc_xivo_stats_1         /usr/local/bin/ /o ...   Up
xivocc_xivocclogs_1         /bin/bash                        Exit 0
xivocc_xuc_1                bin/xuc_docker                   Up>9000/tcp
xivocc_xucmgt_1             bin/xucmgt_docker                Up>9000/tcp