Asterisk CDR

Good day, I wrote a post here, but I believe that was not delivered, I’m in trouble with the asterisk cdr, cdx x transfer, of you would like help, documentation something. When a transfer with * 2, occurs in the asterisk cdr insert a second time and I lose the number that called me, there is some path something to solve this problem and continue the connection with the number that originated

If you want useful fall logging in the presence of transfers, use Call Event Logging. It was created because CDRs don’t handle non-trivial calls well and attempts to make them do so inevitably broke something else.

For quick and dirty solution just save the caller id in the cdr userfield.