Resolved - Problem with CDR - wrong SRC

We have a problem with CDR records.
Sometimes the SRC number in the CDR gets the value of the DST.
I run debug and checked the value if CDR(src) and it is FINE:
exten => _X.,n,NoOp(${CDR(src)})
However both in the Master.csv and the cdr table in mysql the value of the SRC is the DST.
The problem is random and does NOT happen all the times.
In most cases the CDRs are fine.

Any ideas?


The problem was with a company that had all devices with same caller id. I guess it is an Asterisk bug, when Asterisk get few calls (same time) with same caller id, the cdr SRC gets messed up.