6I am using asterisk 1.4.5 and storing cdr in mysql . Here's example of one cdr generated 2007-06-26 00:44:28 682345xxx 6823456xxx s macro-dialout-trunk SIP/343684-09544f20 SIP/provider-0938de98 Dial SIP/provider/1386734xxxx|300| 28 5 60 1 0 ANSWERED I have maximum entries like this one in my cdr . Here outbound extension is shown as 's' and creates problem but still i can manage to get outgoing number in SIP//provider/number . However in between at many many places there are cdr's generated in old way like this one ( its same as generated by previous versions ). 2007-06-26 00:38:13 68234xxxx 68234xxxx 190437xxxx from-internal SIP/343684-0954bf88 SIP/prov-09544f20 ResetCDR w 29 17 60 1 0 ANSWERED Here it again shows properly the outgoing number instead of 's' . In both cases 68234xxx is my caller id . I am using freepbx along with asterisk . However this is very much confusing .. why is asterisk generating 2 types of cdr ? Is it a bug ?