Hello Asterisk Community, Is there a way to check in asterisk cdrs and extension forwarded? I mean, i'm calling to a ISDN number, wich goes to extension 8222, but this extension is forwarded to another one, the problem is that in CDRs i am able to see the the first step of the call, but never see the forwarded extension, how can i do that? Thanks!
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Dias Sent: Wednesday, October 13, 2010 12:12 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] checking CDR Hello Asterisk Community, Is there a way to check in asterisk cdrs and extension forwarded? I mean, i'm calling to a ISDN number, wich goes to extension 8222, but this extension is forwarded to another one, the problem is that in CDRs i am able to see the the first step of the call, but never see the forwarded extension, how can i do that? Thanks! The CDR is only going to record "all legs" on incoming calls. As you state above, your "outgoing" call is going to show as "one leg" regardless of how many "bounces" it takes.
Hi, (Following is for asterisk 1.4) For the forwarded calls, you should see two entries in the cdr, and this is because a forwarded call is actually two separate calls. You have to look in the channel and dstchannel fields of the cdr to match the call ids of the calls to figure out which calls were forwarded. Incoming call's channel value and outgoing call's dstchannel value will be the same, except a comma and digit at the end, showing if it was the first call on that id, second, third or more. I have programmed two billing systems, and this is how I catch forwarded calls and bill them, works perfectly fine. Though it is confusing. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-10-13 1:21 PM, "Danny Dias" <ing.diasdanny at gmail.com> wrote: Hello Asterisk Community, Is there a way to check in asterisk cdrs and extension forwarded? I mean, i'm calling to a ISDN number, wich goes to extension 8222, but this extension is forwarded to another one, the problem is that in CDRs i am able to see the the first step of the call, but never see the forwarded extension, how can i do that? Thanks! -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101013/b8faf54d/attachment.htm
-----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Danny Dias Sent: Wednesday, October 13, 2010 12:12 PM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: [asterisk-users] checking CDR Hello Asterisk Community, Is there a way to check in asterisk cdrs and extension forwarded? I mean, i'm calling to a ISDN number, wich goes to extension 8222, but this extension is forwarded to another one, the problem is that in CDRs i am able to see the the first step of the call, but never see the forwarded extension, how can i do that? Thanks! The CDR is only going to record "all legs" on incoming calls. As you state above, your "outgoing" call is going to show as "one leg" regardless of how many "bounces" it takes. 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 Bryant -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101013/1ab6ab81/attachment.htm
The real question is are you having the phone forward the calls or is your dial plan redirecting to outbound calling? Bryant ---------------------------------------- From: "Zeeshan Zakaria" <zishanov at gmail.com> Sent: Wednesday, October 13, 2010 2:16 PM To: "Asterisk Users Mailing List - Non-Commercial Discussion" <asterisk-users at lists.digium.com> Subject: Re: [asterisk-users] checking CDR Hi, (Following is for asterisk 1.4) For the forwarded calls, you should see two entries in the cdr, and this is because a forwarded call is actually two separate calls. You have to look in the channel and dstchannel fields of the cdr to match the call ids of the calls to figure out which calls were forwarded. Incoming call's channel value and outgoing call's dstchannel value will be the same, except a comma and digit at the end, showing if it was the first call on that id, second, third or more. I have programmed two billing systems, and this is how I catch forwarded calls and bill them, works perfectly fine. Though it is confusing. Zeeshan A Zakaria -- www.ilovetovoip.com On 2010-10-13 1:21 PM, "Danny Dias" <ing.diasdanny at gmail.com> wrote: Hello Asterisk Community, Is there a way to check in asterisk cdrs and extension forwarded? I mean, i'm calling to a ISDN number, wich goes to extension 8222, but this extension is forwarded to another one, the problem is that in CDRs i am able to see the the first step of the call, but never see the forwarded extension, how can i do that? Thanks! -- _____________________________________________________________________ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to Asterisk? Join us for a live introductory webinar every Thurs: http://www.asterisk.org/hello asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20101013/a6b7cab9/attachment.htm