Caller ID in cdr log

CallerID

Сообщение drexter » Сегодня, 21:42
Hello
This prsent in cdr-custom
${CSV_QUOTE(${CDR(accountcode)})},${CSV_QUOTE(${CDR(src)})},${CSV_QUOTE(${CDR(dst)})},${CSV_QUOTE(${CDR(dcontext)})},${CSV_QUOTE(${CDR(clid)})},${CSV_QUOTE(${CDR(channel)})},${CSV_QUOTE(${CDR(dstchannel)})},${CSV_QUOTE(${CDR(lastapp)})},${CSV_QUOTE(${CDR(lastdata)})},${CSV_QUOTE(${CDR(start)})},${CSV_QUOTE(${CDR(answer)})},${CSV_QUOTE(${CDR(end)})},${CSV_QUOTE(${CDR(duration)})},${CSV_QUOTE(${CDR(billsec)})},${CSV_QUOTE(${CDR(disposition)})},${CSV_QUOTE(${CDR(amaflags)})}

The first it’s acconutcode
${CSV_QUOTE(${CDR(accountcode)})}
and the second is source
${CSV_QUOTE(${CDR(src)})}

So,the problem is…
than i made internal call everything is ok

“300”(accountcode),“300”(src),“200”,“from-internal”,""“BlockA”" <300>",“SIP/300-00001cf3”,“SIP/200-00001cf4”,“Dial”,“SIP/200,120,t”,“2013-11-28 16:54:19”,“2013-11-28 16:54:29”,“2013-11-28 16:54:37”,18,8,“ANSWERED”,“DOCUMENTATION”,

But than i made external call in the SOURCE i want to see extension number,not external number

“126”,“2345520”,“0645470820”,“Restaurant”,“2345520”,“SIP/126-00001d03”,“SIP/OUT_2345520-00001d04”,“Dial”,“SIP/OUT_2345520/0645470820,300,”,“2013-11-28 17:52:33”,“2013-11-28 17:53:02”,29,0,“NO ANSWER”,“DOCUMENTATION”

How is it possible to fix?

Trixbox/Asterisk 1.6

Thank you

These are the fields you will have to work with without rewriting the code.

http://www.voip-info.org/wiki/view/Asterisk+cdr+csv

(Trixbox is long gone and buried, I suggest you start anew with a supported version of FreePBX/asterisk)