• News
  • Idefisk
  • Tools
  • Tutorials
  • Forum
  • Reviews
  • VoIP Providers
  • Archives
  • Gallery
ZOIPER SIP softphone
Back to Tutorials

6.10. cdr_manager.conf

The file is located in the /etc/asterisk/ directory.

This configuration file is used to enable or disable the sending of CDRs through the asterisk manager interface.

;
; Asterisk Call Management CDR
;
[general]
enabled = yes

When you are connected to the asterisk manager interface, and a call is ended, an event will be sent to everybody or everything connected to the manager interface. (If that manager interface itself is enabled of course ;-).

E.g.:
Event: Cdr
AccountCode: ...
Source: ...
Destination: ...
DestinationContext: ...
CallerID: ...
Channel: ...
DestinationChannel: ...
LastApplication: ...
LastData: ...
StartTime: ...
AnswerTime: ...
EndTime: ...
Duration: ...
BillableSeconds: ...
Disposition: ...
AMAFlags: ...
UniqueID: ...
UserField: ...


Related links:

cdr_custom.conf- change what fields are used in a CDR.


 
User Comments
Shoham (shohamlevy at gmail dot com)
17 April 2006 13:58:25
I am not sure, but I think this is the place to post the next comment:

In order to let cdr_addon_mysql register the unique ID of calls (may be very useful sometimes), you need to manually modify the Makefile of the asterisk-add-ons:
CFLAGS+=-D_GNU_SOURCE -DMYSQL_LOGUNIQUEID

Other than that, here is a proper MySQL table for CDR:
REATE TABLE `cdr` (
`uniqueid` float NOT NULL default '0',
`clid` varchar(80) NOT NULL default '',
`src` varchar(80) NOT NULL default '',
`dst` varchar(80) NOT NULL default '',
`accountcode` varchar(20) NOT NULL default '',
`amaflags` int(11) NOT NULL default '0',
`billsec` int(11) NOT NULL default '0',
`channel` varchar(80) NOT NULL default '',
`dcontext` varchar(80) NOT NULL default '',
`disposition` varchar(45) NOT NULL default '',
`dstchannel` varchar(80) NOT NULL default '',
`duration` int(11) NOT NULL default '0',
`lastapp` varchar(80) NOT NULL default '',
`lastdata` varchar(80) NOT NULL default '',
`userfield` varchar(255) NOT NULL default '',
`calldate` datetime default NULL,
PRIMARY KEY (`uniqueid`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

I hope it helps.
paldi (paldi at paldi dot cjb dot net)
14 January 2006 21:32:44
've a look at NoCDR

expample

[Sip]
exten => _X.,1,NoCDR
exten => _X.,2,Dail(..........)
...
Dov (dovb at terra dot com dot br)
09 January 2006 18:46:46
Is there a way to disable CDR from being logged at all?
 
Add Comment
Name:
Email:
Comment:
In order to prevent automatic posting on our website, we kindly request you to type in the number you see in the picture below.
Image Verification:
 

Latest Headlines:

  • T.38 faxing with Zoiper 2.15 is now easier than ever
    section: voip software
  • Asterisk 1.4.21 Released
    section: Asterisk
  • Asterisk 1.4.20 Released
    section: Asterisk
  • Asterisk 1.4.20-rc2 Released
    section: Asterisk
  • Asterisk 1.4.20-rc1 Now Available
    section: Asterisk
  • News Archives (older news)

Latest Tutorials:

  • Sending Fax from Zoiper to Zoiper using T.38
    added 08/Dec/2008 18:16
  • VMAuthenticate (dialplan application)
    added 01/Mar/2008 15:57
  • Siptronic ST-530
    added 06/Nov/2007 17:57
  • Siemens C455 IP hardphone
    added 05/Nov/2007 10:24
  • Zoiper
    added 22/Oct/2007 17:53

Latest Comments:

  • Hi, i am a problem with my phone SPA921,...
    tutorial: Linksys SPA921
  • <a href="http://www.sarkosa.com/vb">&#16...
    section: technology
  • <a href="http://www.sarkosa.com/vb">&#16...
    section: technology
  • <p><a href="http://www.htoof.com/vb">&#1...
    section: Asterisk
  • <a href="http://www.sarkosa.com/vb">&#16...
    section: Asterisk
 
contact us at: support@asteriskguru.com - asterisKGuru.com © all rights reserved   |   *asterisk is registered trademark of © Digium™