One Unified Global Perspective
Communications with a Global Perspective
Home
Intro
Contact Us
Voice over IP
PBX Solutions
Services
Support
Glossary
Open Source
Blog
Forum

WebMail





2006 Dec 29 - Fri

Emailing Call Detail Records

In a number of earlier blog entries, I developed and posted a Perl script named ciscowatcher.pl. The script attaches to a Linux based Syslog service and listens for Cisco device generated syslog messages.

One of the messages listened for is the %VOIPAAA-5-VOIP_CALL_HISTORY message generated by H.323 voice gateways. The script generates two Postgresql database files. One is a raw data file called calllog, which contains call-leg information, one call-leg is a voip leg and the other leg is a PSTN leg. With those two legs, one can determine the calling party and the called party. The script generates the database table called cdr from these two pieces of information.

This information is useful for Cisco Telephone Solutions based upon Cisco Unified Callmanager Express Systems, which do not have a real Call Detail Record capability.

Even for organizations with Cisco's Callmanager Solution, getting Call Detail Records can be a problem sometimes because of the way the SQL service is authenticated.

To tie the bow on this situation, I've added a Perl script called sendcdr.pl. It takes the information form the cdr table, formats it, and writes it out as an Excel spreadsheet file using the Spreadsheet::WriteExcel Perl Module from CPAN. The Spreadsheet module is surprisingly powerful in that it can provide bolded and centered column headers as well as properly formatted date/time stamps.

Once the spreadsheet file is generated, it is then emailed using the Mail::Sender Perl Module, also from CPAN.

By placing the script into a cron job entry, call details records can be automatically emailed on a regular basis. The only thing missing is a utility to purge call detail records once they have been emitted. That will be a subject for my next revision.

[/OpenSource/Debian/Monitoring] permanent link



Blog Content ©2008
Ray Burkholder
All Rights Reserved
ray@oneunified.net
(441) 505 7293
Available for Contract Work
Resume

RSS: Click to see the XML version of this web page.

View Ray 
Burkholder's profile on LinkedIn
technorati
Add to Technorati Favorites



December
Su Mo Tu We Th Fr Sa
         
29
           


Main Links:
Monitoring Server
SSH Tools
QuantDeveloper Code

Special Links:
Frink

Blog Links:
Sergey Solyanik
Marc Andreessen
HotGigs
Micro Persuasion
... Reasonable ...
Chris Donnan
BeyondVC
lifehacker
Trader Mike
Ticker Sense
HeadRush
TraderFeed
Stock Bandit
The Daily WTF
Guy Kawaski
J. Brant Arseneau
Steve Pavlina
Matt Cutts
Kevin Scaldeferri
Joel On Software
Quant Recruiter
Blosxom User Group
Wesner Moise
Julian Dunn
Steve Yegge

2006
Months
Dec




Mason HQ

Disclaimer: This site may include market analysis. All ideas, opinions, and/or forecasts, expressed or implied herein, are for informational purposes only and should not be construed as a recommendation to invest, trade, and/or speculate in the markets. Any investments, trades, and/or speculations made in light of the ideas, opinions, and/or forecasts, expressed or implied herein, are committed at your own risk, financial or otherwise.