Returning to this with some more weird behavior and and some background info. So on Asterisk 13 the following takes place
Bob is trying to call Alice, the call will be originated.
- A call is originated. According to documentation once Bob picks up his phone and the first channel is established. A CDR record is created for this and is not finalized
- A new channel is established with Bob being party A and Alice being party B (Dialed through the dial plan). As per documentation a second CDR record is created.
Here is where things get interesting. If Alice answers the call and the call completes, only one CDR record is written, with a source and destination channel listed.
If Alice doesn’t pick up then 2 cdr records appear, the last being for the first channel, with 0 duration and reported as answered, with the last application listed as hangup().
This leaves me confused as to when to expected 1 channel to appear and when 2, with the second being the originate channel’s CDR record.