Asterisk 12 CDR Dst Field Empty – Cdrlog.txt (0/1)

Home » Asterisk Users » Asterisk 12 CDR Dst Field Empty – Cdrlog.txt (0/1)
Asterisk Users 1 Comment

The requested log is attached.

In the last lines of the file there are the records of the call transfer:

[Oct 17 17:52:14] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT
INTO cdr
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)
VALUES ({ ts ‘2014-10-17 17:51:45’ },'”valerio”
‘,’valerio’,’106′,’ebali_segreteria’,’SIP/valerio-00000000′,’SIP/fabiana-00000001′,’Dial’,’SIP/fabiana,20,rtwW’,24,23,’ANSWERED’,3,’1413561105.0′)]

[Oct 17 17:52:15] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT
INTO cdr
(calldate,clid,src,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)
VALUES ({ ts ‘2014-10-17 17:52:10’ },'”valerio”
‘,’valerio’,’SIP/valerio-00000000′,’SIP/francesca-00000003′,’Dial’,’SIP/fabiana,20,rtwW’,4,4,’ANSWERED’,3,’1413561105.0′)]

[Oct 17 17:52:15] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT
INTO cdr
(calldate,clid,src,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)
VALUES ({ ts ‘2014-10-17 17:52:10’ },'”valerio”
‘,’valerio’,’SIP/valerio-00000000′,’SIP/fabiana-00000002′,’Dial’,’SIP/fabiana,20,rtwW’,0,0,’ANSWERED’,3,’1413561105.0′)]

Thanks in advance. Eco

One thought on - Asterisk 12 CDR Dst Field Empty – Cdrlog.txt (0/1)

  • Please go ahead and open an issue at issues.asterisk.org, and attach the log file.

    This issue is occurring due to a fix we put in to make CDRs behave closer to how they did in previous versions of Asterisk with Macros. In versions of Asterisk prior to Asterisk 12, invoking a Macro did not change the destination field in the CDR (which maps to the current extension in the dialplan). In the CDRs with no ‘dst’ field, the first application invoked is a Macro, and the code is incorrectly ignoring the extension. Since there is no other extension to populate the CDR with, nothing gets filled in.

    Thanks –

    Matt