Brian Degenhardt from Digium has posted information on the new CDR type logging that is being created. This will make a significant difference but will be available at the same time as CDR:
Murf and I have been working on a new branch that provides an alternate method for logging calls called Channel Event Logging or CEL. Despite naming the branch 'newcdr', this will not replace CDRs, but add an additional mechanism. Part of the need for this work grew from the disjoint between the fancy event-based logging capabilities of Switchvox, and the limitations of traditional CDRs. This branch is our attempt to satisfy the existing needs of Switchvox in a way that's usable to the community as a whole.
The main feature of Switchvox's logging is how it logs each event that occurs in the call. Here's a screenshot illustrating this, which shows each extension the system hits, a directed pickup event, and an assisted transfer.
By logging calls like this, we accomplish two goals that are sometimes challenging to do with just CDRs: First, we can accurately track each participant who was on a call. For example, the call in the screenshot above will show up in Switchvox when you search for calls that hit extension 800, even though it was just a transient IVR. The second thing this allows us to do is represent accurate call counts. Even though the above call passed through 4 different extensions, it's still just one call.
So that's the requirements for the CEL branch: a general purpose logging system that is able to carry on the existing Switchvox features. Let me talk specifically about the individual pieces, and why they were done:
First, CEL is based on asterisk's new event system. Each CEL backend just subscribes to the AST_EVENT_CEL and then acts on those events by putting them in the database or writing out to a log file. Asterisk's event subsystem is designed to work across the network, so a future direction is definitely to combine CEL events from multiple distributed systems in some manner.
Each event looks very much like an asterisk manager event. If you've ever tried to write code that tries to track calls based on manager events, you might know how tricky it is tracking channel name changes and transfers. To make this easier, murf has created a variable called linkedid, which is simply the oldest uniqueid of any channel involved in the call. By tracking linkedid, it's very easy to know which events belong to which logical call. To identify the end of the call, there is a CEL_LINKEDID_END event which signifies the hangup of the last channel with a given linkedid.
We've also extended the behavoir of a channel's accountcode. We've tied accountcode much more tightly to the channel it's set on, and added the CHANNEL(peeraccount) variable, which identifies the accountcode of the person you're talking to. While this slightly changes the existing behavior of accountcode, I'm confident that it won't affect anyone's real-world usage. On the upside, it's now much easier to figure out which account is involved in calls that go through many transfers, parks, unparks, and bridges.
The final change in the newcdr branch is the addition of CHANNEL(hangupsource) which allows asterisk to log which channel or action was responsible for a hangup. For example, if you're on a SIP call that suddenly ends, CHANNEL(hangupsource) will contain the channel name that issued the SIP BYE. If your dialplan executes Hangup(), CHANNEL(hangupsource) will be set to "dialplan/app". Check out the last event on the screenshot above to see this in action.
If these things sound interesting to you, I'd love to get any feedback at all. Here's the location of the branch:
http://svn.digium.com/svn/asterisk/team/group/newcdr
cheers
-bmd
Current Rating: 6/10 (2 votes) Similar Articles (Based on Title)*-dev Developers meeting at von - September 10, 2006 Olle has posted details of the developers meeting at VON.
*-dev Open Source Pavilion at AstriCon: Your project wanted - July 31, 2009 John Todd has posted a note to let people know that Digium will give you a free booth and passes to Astricon for an Open Source project.
pa1688: AR1688 ip phone hardware reference design version 4.02 annoucement - September 28, 2006 The new Open Source IAX2 phone chip has been completed and will start appearing in phones shortly. The latest version uses an Open Source compiler as well, which will improve the licensing situation.
Proposal for T.38 transparent gateway design in Asterisk - April 29, 2010 Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:
NEW => Asterisk Event Monitor - June 1, 2006 Earl Terwilliger has posted details of a new event monitor for Asterisk released under GPL.
Testers Needed Issue 16965 DBGet response does not end with a Complete event - March 19, 2010 Ryan Bullock is looking for people to test a patch he has written to fix the DBGet Action.
Asterisk-Dev: New Channel Driver: chan_bluetooth - October 21, 2004 Theo Zourzouvillys has posted details of a prerelease version of the Asterisk bluetooth channel driver.
UNISTIM channel driver available - March 12, 2005 Andres has posted details of a release from Cedric Hans of a UNISTIM channel driver for Asterisk.
*-Dev: New h.323 channel driver - May 11, 2005 BKW has posted details of new OpenH.323 stack for Asterisk.
VoIP Magazine: Intel and Digium Jointly Develop Channel Driver - September 23, 2005 BKW pointed out an article on a colaboration between Digium and Intel.
*-Dev: Announcing chan_ss7, a GPLed SS7 channel driver - October 27, 2005
Original Content (C) 2004-2010
Matt Riddell

Icons by: FastIcon.com
|
Asterisk and Kamailio (openser) realtime integration August 5, 2010 Average Vote: 10
Daniel-Constantin Mierla posted a writeup on combining Asterisk and Kamailio.
AstriDevCon: October 29th, Washington DC August 23, 2010 Average Vote: 10
John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.
VoIP-Info: FFasterisk Video file converter August 25, 2006 Average Vote: 10
The wiki has a link to a new piece of software for converting video to the format required for Asterisk.
Code Review: SRTP support for Asterisk March 12, 2009 Average Vote: 10
Terry Wilson has moved his SRTP branch onto the Digium review board.
The Everything Asterisk Video Collection August 5, 2010 Average Vote: 10
Steven Sokol has posted a blog entry on Asterisk Video Resources.
Voip-Forum: Lots of new articles March 12, 2005 Average Vote: 10
Oej's Voip-Forum.com site has posted lots of new news articles while I've been away. Hopefully you found them via the asterisk-docs site. If not I've bookmarked them for you.
Interview with Mark Spencer November 26, 2004 Average Vote: 9.9
We have managed to get an interview with Mark Spencer AKA Markster. Mark Spencer is the creator of Asterisk and by far the most active developer.
Asterisk and Kamailio realtime integration tutorial May 24, 2010 Average Vote: 9.9
Daniel-Constantin Mierla has posted a link to a tutorial on integrating Asterisk and Kamailio using realtime.
Asterisk IPv6 update February 1, 2010 Average Vote: 9.8
Olle has posted an update on IPV6 in Asterisk and a link to a blog post of his.
Proposal for T.38 transparent gateway design in Asterisk April 29, 2010 Average Vote: 9.8
Kevin Fleming has posted a proposed design for a transparent T.38 gateway for Asterisk:
Back to life July 21, 2010 Average Vote: 9.8
Hey all - I am back online after some pretty big projects which have taken all my time. Will be updating the Asterisk news over the next few days.
GUI changes from Trixbox, FreePBX, 2600hz, BlueBox September 1, 2010 Average Vote: 9.8
Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.
Announcing Adhearsion 0.8.5 August 25, 2010 Average Vote: 9.8
Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.
app_swift v2.0 released July 21, 2010 Average Vote: 9.8
Like a few of these news stories that I will be posting over the next couple of days this is a little old - hope it is not something you have already seen. This one is for a new version of the app_swift text-to-speech module for Asterisk 1.2, 1.4, and 1.6.
Monitoring Asterisk with Munin January 7, 2010 Average Vote: 9.7
I had a few requests for these munin plugins after some discussion on one of the Asterisk lists and thought people might like them.
libpri 1.4.11.4 Now Available September 3, 2010 The Asterisk Development Team has announced the release of libpri 1.4.11.4.
New CDR Stats Package September 1, 2010 This one has been a long time coming. A new CDR stats package from Star2Billing to replace the 7 year old stalwart for viewing Asterisk call detail records.
GUI changes from Trixbox, FreePBX, 2600hz, BlueBox September 1, 2010 Ok, bear with me on this one. If you understand all the ramifications, FreePBX has split to a new project called BlueBox contained within the 2600hz project. This obviously has implications for Trixbox that uses FreePBX to provide quite a bit of functionality.
RazorQuotePBP Asterisk Payment Module August 31, 2010 RazorQuote has sent us a press release about the launch of RazorQuotePBP, a native Asterisk module that allows any Asterisk connected device to accept credit card payments.
CloudVox: Install an open source Asterisk phone app and get 250 dollars August 30, 2010 CloudVox is running a competition for people to receive 250 dollars for writing up some documentation for Open Source applications on CloudVox - first in first served.
AstriCon approaches August 25, 2010 John Todd has posted a note about the upcoming AstriCon conference in Washington, DC, and the innovation awards.
Announcing Adhearsion 0.8.5 August 25, 2010 Ben Klang has posted a note about the latest release of Adhearsion - a framework for developing Asterisk based solutions using Ruby.
Asterisk 1.8.0-beta4 Now Available August 25, 2010 The Asterisk Development Team has announced the release of Asterisk 1.8.0-beta4.
AstriDevCon: October 29th, Washington DC August 23, 2010 John Todd has posted a note about the AstriDevCon conference which occurs within the Astricon conference.
The XV Commandments of IVR August 17, 2010 An update on the 15 tips for creating effective IVR systems by Allison Smith - the Voice of Asterisk.
|