<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Oct 17, 2014 at 11:06 AM, A.Santoro <span dir="ltr"><<a href="mailto:ng@ecoricerche.it" target="_blank">ng@ecoricerche.it</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Wed, 15 Oct 2014 09:14:41 -0500, Matthew Jordan<br>
<<a href="mailto:mjordan@digium.com">mjordan@digium.com</a>> wrote:<br>
<br>
>On Wed, Oct 15, 2014 at 1:50 AM, A.Santoro <<a href="mailto:ng@ecoricerche.it">ng@ecoricerche.it</a>> wrote:<br>
>> Hi there,<br>
>> I have installed Asterisk version 12.6 (on Debian wheezy) and I note<br>
>> that, only when I make a transfer of call (attended or unattended),<br>
>> the fields 'dst' and 'dcontex' in the CDR are empty.<br>
>> This happen both in MySQL record and in CVS.<br>
>><br>
>> Someone can confirm this event?<br>
>><br>
><br>
>Without more information, there's no way to tell why that would occur.<br>
><br>
>Please provide a log showing the transfer with 'cdr set debug on' enabled.<br>
><br>
<br>
The requested log is attached.<br>
<br>
In the last lines of the file there are the records of the call<br>
transfer:<br>
<br>
[Oct 17 17:52:14] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT<br>
INTO cdr<br>
(calldate,clid,src,dst,dcontext,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)<br>
VALUES ({ ts '2014-10-17 17:51:45' },'"valerio"<br>
<valerio>','valerio','106','ebali_segreteria','SIP/valerio-00000000','SIP/fabiana-00000001','Dial','SIP/fabiana,20,rtwW',24,23,'ANSWERED',3,'1413561105.0')]<br>
<br>
[Oct 17 17:52:15] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT<br>
INTO cdr<br>
(calldate,clid,src,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)<br>
VALUES ({ ts '2014-10-17 17:52:10' },'"valerio"<br>
<valerio>','valerio','SIP/valerio-00000000','SIP/francesca-00000003','Dial','SIP/fabiana,20,rtwW',4,4,'ANSWERED',3,'1413561105.0')]<br>
<br>
[Oct 17 17:52:15] VERBOSE[4314] cdr_adaptive_odbc.c: > [INSERT<br>
INTO cdr<br>
(calldate,clid,src,channel,dstchannel,lastapp,lastdata,duration,billsec,disposition,amaflags,uniqueid)<br>
VALUES ({ ts '2014-10-17 17:52:10' },'"valerio"<br>
<valerio>','valerio','SIP/valerio-00000000','SIP/fabiana-00000002','Dial','SIP/fabiana,20,rtwW',0,0,'ANSWERED',3,'1413561105.0')]<br>
<br clear="all"></blockquote></div><br></div><div class="gmail_extra">Please go ahead and open an issue at <a href="http://issues.asterisk.org">issues.asterisk.org</a>, and attach the log file.<br><br></div><div class="gmail_extra">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.<br><br></div><div class="gmail_extra">Thanks -<br><br>Matt<br></div><div class="gmail_extra"><br>-- <br><div dir="ltr"><div>Matthew Jordan<br></div><div>Digium, Inc. | Engineering Manager</div><div>445 Jan Davis Drive NW - Huntsville, AL 35806 - USA</div><div>Check us out at: <a href="http://digium.com" target="_blank">http://digium.com</a> & <a href="http://asterisk.org" target="_blank">http://asterisk.org</a></div></div>
</div></div>