Hi, I would like to be able to log call details in Asterisk. The kind of logs that I like to generate is like this: From To Forward Time Incoming Call 604-343-3334 503-233-4454 13:33:32 Extension Routing 503-233-4454 Extension 403 13:33:32 Forwarding 503-233-4454 454-444-2334 13:33:32 where 503-233-4454 is my DID number. Basically, I would like to log how calls are being handled in Asterisk. I understand I can use AGI to log the information in database, but I am wondering if this is scalable enough for large number of users. I am using realtime CDR but it does not record the kind of detail that I am looking for. If I don't use AGI, what would be the best way to do it? Can someone please give me some advice or inputs? Thank you very much in advance for your suggestion. Thanks, Pete -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20080410/6190e2a4/attachment.htm
On 10:00, Thu 10 Apr 08, Pete Kay wrote:> Hi, > > I would like to be able to log call details in Asterisk. The kind of logs > that I like to generate is like this: > > From > To Forward Time > Incoming Call 604-343-3334 > 503-233-4454 13:33:32 > Extension > Routing 503-233-4454 > Extension > 403 13:33:32 > Forwarding > 503-233-4454 > 454-444-2334 > 13:33:32 > > where 503-233-4454 is my DID number. > > Basically, I would like to log how calls are being handled in Asterisk. I > understand > I can use AGI to log the information in database, but I am wondering if this > is scalable enough for large number of users. > I am using realtime CDR but it does not record the kind of detail that I am > looking for. > If I don't use AGI, what would be the best way to do it? Can someone please > give me some advice or inputs? > > Thank you very much in advance for your suggestion. > > Thanks, > PeteMaybe write something that connects to the AMI and listens to what happens there. -- Michiel van Baak michiel at vanbaak.eu http://michiel.vanbaak.eu GnuPG key: http://pgp.mit.edu:11371/pks/lookup?op=get&search=0x71C946BD "Why is it drug addicts and computer aficionados are both called users?"
On Thu, 10 Apr 2008, Pete Kay wrote:> Basically, I would like to log how calls are being handled in Asterisk. > I understand I can use AGI to log the information in database, but I am > wondering if this is scalable enough for large number of users.I use custom AGIs to write CDRs for every "step" of every call to a MySQL database -- 15,000 calls, 150,000 CDRs per day. I'm sure others are doing more. The AGIs are written in C. We collect a lot of information beyond standard CDRs -- agent, product, time with agent or product. Thanks in advance, ------------------------------------------------------------------------ Steve Edwards sedwards at sedwards.com Voice: +1-760-468-3867 PST Newline Fax: +1-760-731-3000