Asterisk 1.6 CDR issue

Hi Guys,

I have an Asterisk 1.6.0.10 that sends the CDR in csv format and a line looks like this:

“”,“200”,“FMGL-1222#”,“from-internal”,""“sam”" <200>",“Local/FMGL-1222#@from-internal-dad0;2”,“Local/1222@from-internal-90af;1”,“Dial”,“Local/1222@from-internal/n,20,trM(auto-blkvm)”,“2010-03-23 23:40:40”,“2010-03-23 23:40:44”,4,0,“NO ANSWER”,“DOCUMENTATION”,“1269387640.34”,""

All CDR lines are going through a Call Accounting application. The problem is that I don’t know how to differ the call types, incoming, outgoing and internal. I think on the last position from CDR should be this information, but I didn’t found how to configure this on 1.6 version of Asterisk. Or maybe there is some other information on this type of CDR that could help me differ those call types.

Thank you in advance for your help,
Andrew.

You have a non-trivial dialplan (Local channels). That can make analyzing CDRs quite difficult (and sometimes impossible). In this case, one call is likely to produce more than one CDR.

Incoming, outgoing and internal are user concepts. Asterisk has no idea which is which, although some Asterisk GUIs may have.

The last field is the user field, and you, or the code generated by your GUI, must explicitly set it from the dialplan.

Thank you for your response, David.