[asterisk-users] Asterisk 1.6.0 CDR billsec and duration not working from h extension
Steve Murphy
murf at digium.com
Thu Oct 9 17:35:06 CDT 2008
On Thu, 2008-10-09 at 14:09 -0700, Eric Chamberlain wrote:
> Can someone tell me what I am doing wrong? Why doesn't CDR(duration)
> or CDR(billsec) return the correct values?
>
> cdr.conf
>
> endbeforehexten=yes
>
>
Eric--
To fix a problem, I had to reshuffle things around in the
asterisk core; one involves posting the CDR just after a bridge
ends; and therefore, before the hangup exten is run. To fix this,
I inserted a loop to run the hangup exten just after the
bridge ends; This all introduced a crash and some hopefully
short-lived problems with asterisk while we find and work out the
kinks.
I believe that Russell has held back the fixes from 1.6.0 until
the dust settles. But in 1.4 svn, the new code is in place;
I do have a crash bug report filed against it, and am waiting for
the reporter to give enough info to debug it, but I get positive
reports from most.
So, my advice is to back up to a version where the h exten works with
CDR calls;
and then skip forward when the fixes are included. You'll have to suffer
with the bugs that prompted the fixes, but if you haven't noticed them
before, you might not for a while longer.
Sorry to disturb the user community wrt to CDR's, but the bugs are
tough to kill and getting one usually has unintended, negative
side-affects. If
I knew of a better way, I'd be doing it that way... gee, I thought I
was doing it the "better way"!
The current fixes did go to patch on bug reports, and the user community
is always invited to test these out and report. If no-one does that,
then
we stick it in and folks get problems... sorry!
murf
> extensions.conf
>
> [macro-Dial]
> ; ${ARG1} - Dial String
>
> exten => s,1,Dial(${ARG1},,M(post-dial))
>
> exten => h,1,NoOp(Call was hung up - ${CDR(duration)} seconds long,
> billed for ${CDR(billsec)} seconds)
>
>
> The log shows:
>
> -- Executing [h at macro-Dial:1] NoOp("SIP/10.10.10.170-b7d94f78",
> "Call was hung up - 0 seconds long, billed for 0 seconds") in new stack
>
>
> But cdr-csv/Master.csv has logged time values for duration and billsec:
>
> "","5105550000","+4155550001","pop-inbound","""15105550000""
> <5105550000>","SIP/10.10.10.170-b7d94f78","SIP/
> voipprovider.com-089ae8a0","Dial","SIP/15105550000:password::authname at voipprovider.com
> ,,M(post-dial)","2008-10-09 20:59:00","2008-10-09
> 20:59:03","2008-10-09 20:59:08",
> 8,5,"ANSWERED","DOCUMENTATION","1223585940.35"
>
>
> --
> Eric Chamberlain
--
Steve Murphy
Software Developer
Digium
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3227 bytes
Desc: not available
Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20081009/5eb91e73/attachment.bin
More information about the asterisk-users
mailing list