<span style="font-family: Arial, Helvetica, sans-serif; font-size: 10pt"><br />
-----Original Message-----<br />
From: asterisk-users-bounces@lists.digium.com<br />
[mailto:asterisk-users-bounces@lists.digium.com] On Behalf Of Danny Dias<br />
Sent: Wednesday, October 13, 2010 12:12 PM<br />
To: Asterisk Users Mailing List - Non-Commercial Discussion<br />
Subject: [asterisk-users] checking CDR<br />
<br />
Hello Asterisk Community,<br />
<br />
Is there a way to check in asterisk cdrs and extension forwarded?<br />
<br />
I mean, i'm calling to a ISDN number, wich goes to extension 8222, but<br />
this extension is forwarded to another one, the problem is that in<br />
CDRs i am able to see the the first step of the call, but never see<br />
the forwarded extension, how can i do that?<br />
<br />
Thanks!<br />
<br />
The CDR is only going to record "all legs" on incoming calls. As you state<br />
above, your "outgoing" call is going to show as "one leg" regardless of how<br />
many "bounces" it takes.<br />
<br />
<br />
The way I have addressed this issue is using flag variables that determine how the call has originated. Inbound calls set one state and outbounds calling checks for that state if it exists we assume that it is either a call forward or a transfer. We then check headers and variables to see what state it is. We then forward the outbound call through a call to LOCAL/customeroutbund/number~trackingvars. This will cause the system to create a sperate channel leg for that part of the call. We have found it to very tricky to get this right for both blind and attended transfers as well as call forwards but you can get very close. We were loosing on 100% of our transfers and forwards and now we are down to 3%-5% of the cases where our method does not work. Or 100% method is to use an additional asterisk box that routes all toll bearing inbound and outbound calls we disable forwards and transfers there. That is where we bill from so we don't loose and $$$. Asterisk 1.8 is looking good with the CEL logging but you have to sift the records to create billing CDR's<br />
<br />
Bryant<br /></span>