title: Asterisk 13.4 cdr engine is creating 2 records per call
body: <p>This is really starting to get annoying.</p>
  
  <p>I´m using Asterisk 1.4 since 2007 to operate a flawless PBX, and it creates a SINGLE CDR per call, like any other version of asterisk would. </p>
  
  <p>Yesterday I figured an upgrade would be ok and got Asterisk 13.4.</p>
  
  <p>This damn thing is creating 2 CDRs per call... one representing the dial attempt .. and another including both the connected call and the initial dial</p>
  
  <p>I don't know where to configure the CDR engine to behave normally... that is, to record A SINGLE CDR per call.. NOT 2!!</p>
  
  <p>Any ideas?</p>
  
  <p>PS: (No, I did not change my code, no I did not config any specific lines out of the ordinary <code>cdr.conf</code>)</p>
  
  <p>Here is the debug output of the CDR engine:</p>
  
  <pre><code>0x7f51f40009a8 - Created CDR for channel SIP/900100-00000002
  0x7f51f40009a8 - Transitioning CDR for SIP/900100-00000002 from state NONE to Single
  0x7f51f4002bc8 - Created CDR for channel SIP/vox-00000003
  0x7f51f4002bc8 - Transitioning CDR for SIP/vox-00000003 from state NONE to Single
  
  Dial Begin message for SIP/900100-00000002, SIP/vox-00000003: 1448665204.00639317
  
  0x7f51f40009a8 - Processing Dial Begin message for channel SIP/900100-00000002, peer SIP/vox-00000003
  0x7f51f40009a8 - Updated Party A SIP/900100-00000002 snapshot
  0x7f51f40009a8 - Updated Party B SIP/vox-00000003 snapshot
  0x7f51f40009a8 - Transitioning CDR for SIP/900100-00000002 from state Single to Dial
  0x7f51f4002bc8 - Processing Bridge Leave for SIP/vox-00000003
  0x7f51f4002bc8 - Transitioning CDR for SIP/vox-00000003 from state Bridged to Finalized
  0x7f51f40009a8 - Transitioning CDR for SIP/900100-00000002 from state Bridged to Finalized
  0x7f51f4002bc8 - Beginning finalize/dispatch for SIP/vox-00000003
  0x7f51f4002bc8 - Dispatching CDR for Party A SIP/vox-00000003, Party B &lt;none&gt;
  
  Bridge Leave message for SIP/900100-00000002: 1448665215.00246400
  
  0x7f51f4003da8 - Created CDR for channel SIP/900100-00000002
  0x7f51f4003da8 - Transitioning CDR for SIP/900100-00000002 from state NONE to Single
  0x7f51f4003da8 - Set answered time to 1448665215.248071
  0x7f51f4003da8 - Transitioning CDR for SIP/900100-00000002 from state Single to Finalized
  0x7f51f40009a8 - Beginning finalize/dispatch for SIP/900100-00000002
  0x7f51f40009a8 - Dispatching CDR for Party A SIP/900100-00000002, Party B SIP/vox-00000003
  </code></pre>