ECHI Converter

Get Version

0.4.0

→ ‘echi-converter’

The ECHI (External Call History Interface) Converter

Provides a Ruby based utility for fetching Avaya CMS / ECHI files in binary/ASCII form from an FTP server, converting them, if necessary, to ASCII and then inserting them into a database via ActiveRecord. With this utility you only need the standard Avaya CMS Release 13 or better without any additional software or utilities from Avaya, as this utility will process either binary or ASCII output from the Avaya CMS.

Status

This release is now in production use within Call Centers using the Avaya CMS. The utility successfully and reliably imports the data provided by the Avaya CMS ECHI into various databases, including Microsoft Sqlserver, Oracle and MySQL. This provides the repository of call segments that may then be used to provide detailed Cradle to Grave reporting for the call center.

Features

The utility provides the following capabilities:

  1. Support of ActiveRecord (means you may use Oracle, MySQL, MS-SQL, Postgres, DB2, ODBC, etc)
  2. Generate your schema via ActiveRecord Migrations automatically
  3. Fetch Binary or ASCII CSV files from the Avaya CMS platform via FTP
  4. Insert the records into the defined database table using database transactions, via ActiveRecord, on a per file basis to support recovery on failure
  5. Change schema structure via YML configuration file to accommodate various releases of the ECHI format
  6. Supports inserting data from the various ’.dat’ files provided by the Avaya CMS into associated tables
  7. Runs as a daemon (via fork) on Posix and a service on Windows
  8. Has a watchdog process on Posix or you may set a service watch on Windows
  9. Support for UTF8 encoding
  10. Allows for multiple FTP sessions to be used for greater performance (via green threads)
  1. Table names:
    1. echi_records – stores all ECHI data
    2. echi_logs – stores a log entry for each file processed
    3. echi_acds – stores the data from the acd.dat file
    4. echi_agents – stores the data from the agname.dat file
    5. echi_aux_reasons – stores the data from the aux_rsn.dat file
    6. echi_cwcs – stores data from the cwc.dat file
    7. echi_splits – stores data from the split.dat file
    8. echi_trunk_groups – stores data from the tkgrp.dat file
    9. echi_vdns – stores data from the vdn.dat file
    10. echi_vectors – stores data from the vector.dat file

What ECHI-Converter is not

  1. A reporting engine
  2. A set of database maintenance scripts

Requirements

  1. Ruby v1.8.6+
  2. Rubygems v1.2+
  3. ActiveRecord v2.1+
  4. ActiveSupport v2.1+
  5. Daemons v1.0.10+ (for Linux only)
  6. FasterCSV v1.2.3+
  7. Rake v0.8.1+
  8. UUIDTools v1.0.3+
  9. Win32-service v.0.6.1+ (for Windows only)
  10. Hoe v1.7+
  11. Avaya CMS ECHI Release 12+ enabled and configured to send to an FTP server

Installing

sudo gem install echi-converter

or

gem install echi-converter

Setup

First, create the directory with all of the project files where you will run this application from:

echi-converter create myproject

Once you have installed a project into your preferred directory, you then need to configure for your environment. The first step is to modify each of these files:

  1. config/application.yml
    1. Change each of the ‘echi’ settings for connecting to your local FTP server where the CMS puts the ASCII/binary files
    2. Select which schema you would like to use (ie – extended_version12.yml) based on what you have in place
  2. config/database.yml
    1. Change to match your local database and database login credentials, full ActiveRecord support
    2. Note: Your database user and database must exist before running rake, as rake will then create the schema

Once this is complete, then simply run these commands from the project directory:

  1. rake migrate (creates the tables required for the system)
  2. echi-converter (starts the server daemon, refer to its usage)

Note: When using a Windows FTP server, you must configure the FTP server to provide a UNIX directory listing format.

Usage

  1. echi-converter create myproject – create the local project to run the ECHI converter from
  2. echi-converter upgrade myproject – location of project to upgrade after a new gem is installed

For POSIX:

  1. echi-converter run myproject – Run the ECHI converter interactively from the location given
  2. echi-converter start myproject – Start the ECHI converter in daemon mode from the location given
  3. echi-converter stop myproject – Stop the ECHI converter daemon
  4. echi-converter restart myproject – Restart the ECHI converter
  5. echi-converter zap myproject – If there has been an unexpected close and the system still thinks the converter is running, clean up the pid files

For MS-Windows:

  1. echi-converter install myproject – install the service (must specify complete path such as c:\path\to\my\project – if the directory name or path has any spaces, please enclose the “myproject” in double quotes )
  2. echi-converter start – start the service
  3. echi-converter stop – stop the service
  4. echi-converter pause – pause the service
  5. echi-converter resume – resume the service
  6. echi-converter status – returns the status of a configured service
  7. echi-converter delete – delete the service”
  1. If you would like to run the script interactively, you may also execute this command:
    1. ruby “c:\myproject\lib\main_win32.rb”

Multi-byte character support:

  1. If you require multi-byte character support be sure to set your database to ‘utf8’ as well as uncomment the option ‘encoding: utf8’ in the config/database.yml file

Demonstration of usage

Start the daemon/service:

echi-converter start myproject

Stop the daemon/service:

echi-converter stop myproject

Supported Platforms

While the use of Ruby allows for operation on a multitude of platforms, these are the platforms that have actually been tested on. If you have success running on other platforms, please feel free to provide details on the Google Group.

Operating Systems

  1. POSIX
  2. Windows XP SP2
  3. Windows 2000
  4. Windows 2003

Databases

  1. MySQL
  2. Microsoft Sqlserver
  3. DB2
  4. Sqlite3
  5. Postgres
  6. Oracle

FTP Servers

  1. VSFTP
  2. Windows 2003/XP FTP Servers (When using a Windows FTP server, you must configure the FTP server to provide a UNIX directory listing format.)

Related Avaya Documentation for ECHI

  1. Avaya Call Management System Release 14 External Call History Interface
  2. Avaya Call Management System Release 13 External Call History Interface

Screencast

You may view the screencast on howto install and use the ECHI-Converter here.

Forum

Please report questions here:

Google Groups – ECHI Converter

Please report bugs here:

Ruby Forge Bug Tracker – ECHI Converter

How to submit patches

Read the 8 steps for fixing other people’s code and for section 8b: Submit patch to Google Groups, use the Google Group above.

The trunk repository is svn://rubyforge.org/var/svn/echi-converter/trunk for anonymous access.

License

This code is free to use under the terms of the LGPL license.

Contact

Comments are welcome. Send an email to jason [at] goecke.net.

Other Recommended Open Source Projects

  1. Asterisk – is the world’s leading open source PBXi, telephony engine, and telephony applications toolkit, link here.
  2. Adhearsion – is an open-source, unconventional voice framework that ties technologies together neatly, link here.

Dr Nic, 22nd July 2008
Theme extended from Paul Battley