[Home]

Summary:ASTERISK-19996: Asterisk logs two CDR entries for a Local call.
Reporter:DigitalDude (digitaldude)Labels:
Date Opened:2012-06-14 04:07:42Date Closed:2012-06-22 08:45:40
Priority:MinorRegression?No
Status:Closed/CompleteComponents:CDR/cdr_csv Channels/chan_local
Versions:1.8.7.2 1.8.13.0 Frequency of
Occurrence
Related
Issues:
Environment:LinuxAttachments:
Description:I use AMI Originate on a local channel. In case the call is answered, there are two CDR entries, one for each call: channel ;1 and ;2. However, if the call is not answered (NO ANSWER, BUSY) only a single CDR entry appears (for the ;2 channel). Isn't there any way to log a single CDR entry even if the call is answered. Naturally, it should log only the channel that traverses the dial-plan.
Comments:By: Matt Jordan (mjordan) 2012-06-22 08:45:40.704-0500

This is how Local channels behave.  

A Local channel always consists of two distinct parts - one channel that executes the dialplan that it was pointed at, and another channel that points to the application or dialplan that was specified to be connected to.  Both of these channels (denoted by the ;1 and ;2) comprise a single Local channel.

The fact that CDRs log the actions of both 'sides' of the Local channel is expected behavior and will not be changed.  Doing so in any version would be a behavior that would have significant adverse effects on a large portion of the userbase, who use - or at least expect - that information to be present.