Skip to main content
  • Products
    • Overview
    • Features
    • Screen Capture
    • Agent evaluation / score cards
    • Speech Analytics
    • Recording Announcement
    • Videos
    • Online demo
    • Quote
    • Download
  • Solutions
    • Businesses
    • Contact centers
    • Financial institutions
    • Healthcare
    • MiFID II compliance
    • Telecom service providers
    • Traders
  • Compatibility
    • AudioCodes
    • Avaya
    • BroadSoft
    • Cisco
    • Genband
    • IPC
    • Metaswitch
    • Oracle AcmePacket
    • SIPREC recording
    • Sonus
  • Documentation
    • User Guide
    • Administration Guide
    • Developer Guide
    • MiaRec v.3 (old) documentation
    • Resource library
    • Videos
  • Support
    • Submit a request
    • Check your existing requests
    • TeamViewer QuickSupport
  • Blog
  • Company
    • About MiaRec
    • Contact us
    • Our clients
    • Become a partner
    • News
    • Careers
    • Events
    • Testimonials

Legacy documentation

  • Legacy documentation
    • Passive call recording setup
      • What is port mirroring?
      • Virtual machine + passive recording
      • Configuring NIC for passive recording (port mirroring)
      • Enable packets pass-through for port mirroring traffic
        • AVG Internet Security
        • BitDefender Internet Security
        • ESET Smart Security 4
      • How to configure port mirroring on different switches
        • Cisco Catalyst 2960 Series Switches
        • D-Link DES-3010
        • Dell PowerConnect 2700 Series
        • Netgear FS726T
        • TP-LINK TL-SL2428WEB
      • Port Mirroring in complex call scenarios
      • Switches with port mirroring
    • Manual installation (deprecated) on Linux
      • Installation on Linux (Centos/RedHat) manually (deprecated)
        • Install MiaRec Web portal
          • Install PostgreSQL
          • Install Python 3
          • Install Apache web server
          • Install Redis cache
          • Install MiaRec web application
          • Install Celery task manager
        • Install MiaRec Recorder
          • SystemD start-up script (Centos 7.x)
          • Upstart start-up script (Centos 6.x)
          • Init.d start-up script
        • Install MiaRec Screen Recording Controller
        • Configure firewall
        • Verify services status
      • Installation on Linux (Ubuntu) manually (deprecated)
        • Install MiaRec Web portal
          • Install PostgreSQL
          • Install Python
          • Install Apache web server
          • Install Redis cache
          • Install MiaRec web application
          • Install Celery task manager
        • Install MiaRec Recorder
        • Configure firewall
    • Manual update on Linux (deprecated)
      • Update MiaRec Web portal
      • Update MiaRec recorder files
    • Cisco TAPI integration
      • Add TAPI user for MiaRec application
      • Configure Cisco TAPI TSP driver
      • Verify Cisco TAPI configuration
      • Enable Cisco TAPI interface in MiaRec
Home › Legacy documentation › Manual installation (deprecated) on Linux › Installation on Linux (Centos/RedHat) manually (deprecated) ›
 

Install MiaRec Recorder

1. Install required packages

yum install libpcap

2. Download MiaRec installation files:

Fill the download form to request URL to MiaRec recorder installation files.

wget CONTACT_US_FOR_URL

Extract:

tar -xzvf miarec-*.tar.gz
cd miarec-*

3. Install MiaRec recorder

Copy binary file to /usr/local/bin/

cp miarec /usr/local/bin/

Copy configuration files to /etc/miarec/

mkdir /etc/miarec
cp miarec.ini /etc/miarec/
cp -r sqlconfig /etc/miarec/

Create /var/lib/miarec directory. It will be used as current directory when running MiaRec process. MiaRec process reads SOAP wsdl file from current directory and stores some temporary files there.

mkdir /var/lib/miarec
cp WebServices.wsdl /var/lib/miarec/

Create log directories

mkdir -p /var/log/miarec

Create directory for recording files

mkdir -p /var/miarec/recordings

4. Create startup script

There is a few variants of start-up scripts depending on OS and version:

  • SystemD for RedHat / CentOS 7 or newer
  • Upstart for RedHat /CentOS 6 and Ubuntu 14.04 LTS
  • Init.d script for other OS versions

5. Edit miarec.ini configuration file

vi /etc/miarec/miarec.ini

Change database connection settings (host, port, database, user, password). There are two places in INI files, where you need to edit database settings:

5.1. Module which loads configuration from database

#-----------------------------------------------------------------
#    SQLConfig
#-----------------------------------------------------------------
#  Loading configuration from SQL database
#-----------------------------------------------------------------
################################################################################
[SQLConfig]
################################################################################

#  Database Driver type.
#  Supported values: 
#    PostgreSQL
#-------------------------------------------------------------------------------
Driver=PostgreSQL
#-------------------------------------------------------------------------------


#  Host of database server
#-------------------------------------------------------------------------------
Host=127.0.0.1:5432
#-------------------------------------------------------------------------------


#  Database name
#-------------------------------------------------------------------------------
Database=miarecdb
#-------------------------------------------------------------------------------


#  Username and password for accessing database. Should have write permissions.
#-------------------------------------------------------------------------------
Username=miarec
Password=password
#-------------------------------------------------------------------------------

5.2. Module, which writes call detail records (CDRs) to database:

#-----------------------------------------------------------------
#  Configuration section for SQLCallsLog module. This module stores calls log into database
#  Supported call events:
#    start,connect,update,stop,stream_start,stream_stop
#-----------------------------------------------------------------
################################################################################
[SQLCallsLog]
################################################################################

#  Database Driver type.
#  Supported values: 
#    PostgreSQL
#-------------------------------------------------------------------------------
Driver=PostgreSQL
#-------------------------------------------------------------------------------


#  Host of database server
#-------------------------------------------------------------------------------
Host=127.0.0.1:5432
#-------------------------------------------------------------------------------


#  Database name
#-------------------------------------------------------------------------------
Database=miarecdb
#-------------------------------------------------------------------------------


#  Username and password for accessing database. Should have write permissions.
#-------------------------------------------------------------------------------
Username=miarec
Password=password
#-------------------------------------------------------------------------------

6. Restart MiaRec service

When using Upstart:

initctl stop miarec
initctl start miarec

When using init.d or SystemD:

service miarec restart

Child pages

  • SystemD start-up script (Centos 7.x)
  • Upstart start-up script (Centos 6.x)
  • Init.d start-up script
‹ Install Celery task manager up SystemD start-up script (Centos 7.x) ›
  • Printer-friendly version
MiaRec, Inc. © 2020. All Rights Reserved. | Terms of Use | Privacy Statement | Cancellation Policy