[asterisk-users] Asterisk 12 CDR dst field empty - cdrlog.txt (0/1)

Matthew Jordan mjordan at digium.com
Fri Oct 17 12:37:54 CDT 2014


On Fri, Oct 17, 2014 at 11:06 AM, A.Santoro <ng at ecoricerche.it> wrote:

> On Wed, 15 Oct 2014 09:14:41 -0500, Matthew Jordan
> <mjordan at digium.com> wrote:
>
> >On Wed, Oct 15, 2014 at 1:50 AM, A.Santoro <ng at ecoricerche.it> wrote:
> >> Hi there,
> >> I have installed Asterisk version 12.6 (on Debian wheezy) and I note
> >> that, only when I make a transfer of call (attended or unattended),
> >> the fields 'dst' and 'dcontex' in the CDR are empty.
> >> This happen both in MySQL record and in CVS.
> >>
> >> Someone can confirm this event?
> >>
> >
> >Without more information, there's no way to tell why that would occur.
> >
> >Please provide a log showing the transfer with 'cdr set debug on' enabled.
> >
>
> 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>','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>','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>','valerio','SIP/valerio-00000000','SIP/fabiana-00000002','Dial','SIP/fabiana,20,rtwW',0,0,'ANSWERED',3,'1413561105.0')]
>
>
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

-- 
Matthew Jordan
Digium, Inc. | Engineering Manager
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: http://digium.com & http://asterisk.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20141017/fb948bca/attachment.html>


More information about the asterisk-users mailing list