Summary:ASTERISK-15526: Billing Differences between Carrier and Asterisk
Reporter:Cian (cianmaher)Labels:
Date Opened:2010-01-27 05:47:26.000-0600Date Closed:2011-06-07 14:01:03
Versions:Frequency of
Description:Some background:

We are using Asterisk 1.6.2 with a Sagonma A108D card. We are using this server for SS7 to SIP. I have enable asterisk CDR's on this box and am collecting the cdr's into mysql. We connect to our carrier via ss7.

Our Problem:

Asterisk is reporting different durations for calls when compared to trace extracted from w1g1 (The signaling link)


Carrier is reporting a duration of 10.4 seconds, sangoma trace is reporting a duration of 10.402 but asterisk is reporting a duration of 11.

Here is the dial plan being executed:

exten => _X.,1,noop(SS7 Call Start)
exten => _X.,n,Set(CALLERID(ani)=0${CALLERID(ani)})
exten => _X.,n,Set(CALLERID(num)=0${CALLERID(num)})
exten => _X.,n,ResetCDR()
exten => _X.,n,Dial(SIP/1000/${EXTEN})
exten => _X.,n,Hangup

Obviously this is something to do with start and end times of calls and possible where or how asterisk considers the call started or finished. However ss7boost does not pass the call to asterisk until answer confirmation is sent so i would expect asterisk to be as similar as possible.

I have set initiatedsecond=no but still have this issue. just not as much!

Can anyone put some light on this?

Comments:By: Håkon Nessjøen (haakon) 2010-01-28 04:47:31.000-0600

Maybe you should look at:

By: Leif Madsen (lmadsen) 2010-01-28 10:03:31.000-0600

Closing as this is a duplicate of an existing issue.

By: Cian (cianmaher) 2010-01-28 15:41:13.000-0600

Wait there is a big difference in the ticket that you say is a duplicate. In that ticket i request information on how it is possible to show milliseconds in the cdr table. In this ticket I am trying to establish why there is a difference, trying to understand what might be causing this delay as someone other there must of had issues like this before when trying to check duration differences between carrier grade switches and asterisk.

Can this please be reopened?

By: Leif Madsen (lmadsen) 2010-01-28 16:24:27.000-0600

You just reopened it :)

By: snuffy (snuffy) 2010-01-28 21:45:44.000-0600

Asterisk has always just recorded the seconds to CDR, but it did internally have the capabilities to show down to the microsecond level but it was not available to userspace CDR.

With the case it has been linked to we are enabling the user to retrieve the higher precision output.

By: Leif Madsen (lmadsen) 2010-01-29 13:50:10.000-0600

snuffy: so this IS a duplicate right?

By: Håkon Nessjøen (haakon) 2010-01-29 14:25:35.000-0600

I think, cianmaher, it might be easier to etablish why there is a difference, if you try the patch in the other ticket, hence giving much more precision(read: more data) to work with. This way we will also see if it is a stable difference all the time, or a varying difference.

By: Leif Madsen (lmadsen) 2010-02-01 12:32:48.000-0600

I'm suspending this issue for now, as it looks like the issue this is related to is likely something that could resolve this issue. If after patching and discussing on the other issue, something else appears to be the issue here, please open a new issue describing what the other issue is unable to resolve.