Hi all Asterisk is logging every call in /var/log/asterisk/cdr-csv/Master.csv in a format like this:: "","frisi","s","<last extension>","""005572908060frisi"" <friessnegger>","SIP/sebastianstrasse.at-1be7fab0","","BackGround", "loccata/6308384b6bc39696f05ef4c9ad1e7ea0","2007-02-16 15:56:07","2007-02-16 15:56:07","2007-02-16 15:56:41",34,34,"ANSWERED","DOCUMENTATION" these lines give you the callerid/name, the duration of the call, the last called extension, the application that was run, and some other information. i'm having phone-trees caller can navigate through and obtain information (eg. a museum guide) and would need more information (for statistics) such as: * entry point of the call * how much time did the caller spend on each extension * end point of the call i already though about an agi script that logs the current ${ANSWEREDTIME} to a custom logfile each time an extension was called and evaluate these logfile using awstats or analog. but i'm sure there are other solutions around. any pointers? regards, fRiSi -- phone: +43 5572 908060, fax: +43 5572 908060-77 Schmelzh?tterstra?e 26a, 6850 Dornbirn, Austria http://www.lovelysystems.com
On 6/13/07, Harald Friessnegger <harald.friessnegger@lovelysystems.com> wrote:> Hi all > > > Asterisk is logging every call in > /var/log/asterisk/cdr-csv/Master.csv in a format like this:: > > "","frisi","s","<last extension>","""005572908060frisi"" > <friessnegger>","SIP/sebastianstrasse.at-1be7fab0","","BackGround", > "loccata/6308384b6bc39696f05ef4c9ad1e7ea0","2007-02-16 15:56:07","2007-02-16 > 15:56:07","2007-02-16 15:56:41",34,34,"ANSWERED","DOCUMENTATION" > > these lines give you the callerid/name, the duration of the call, the last > called extension, the application that was run, and some other information. > > i'm having phone-trees caller can navigate through and obtain information > (eg. a museum guide) and would need more information (for statistics) such > as: > * entry point of the call > * how much time did the caller spend on each extension > * end point of the call > > > i already though about an agi script that logs the current ${ANSWEREDTIME} > to a custom logfile each time an extension was called and evaluate these > logfile using awstats or analog. > > but i'm sure there are other solutions around. > any pointers?I have IVR tree logging trough ResetCDR(w) at each check-point. You can use that as starting point, and set some additional CDR fields for extra info you need. Regards, Atis