|Summary:||ASTERISK-19996: Asterisk logs two CDR entries for a Local call.|
|Date Opened:||2012-06-14 04:07:42||Date Closed:||2012-06-22 08:45:40|
|Versions:||22.214.171.124 126.96.36.199||Frequency of|
|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.