[asterisk-users] What is billsec in CDR?

BERGANZ Francois francois at acropolistelecom.net
Fri May 7 12:57:31 CDT 2010


I posted a topic about the billsec.
Asterisk around to the lesser int sec.

Exemple: If the call duration is 15.9 seconds, billsec (ANSWEREDTIME) will
be 15

I could change somethings in the source to have a correct calculation.
Exemple: : If the call duration is 15.9 seconds, then billsec (ANSWEREDTIME)
will be 16.
I changes round to second nearest int second. If duration=15.4 billsec=15.
If duration=15.6 billsec=16.


François Berganz 

-----Message d'origine-----
De : asterisk-users-bounces at lists.digium.com
[mailto:asterisk-users-bounces at lists.digium.com] De la part de Jian Gao
Envoyé : jeudi 6 mai 2010 19:34
À : Asterisk Users Mailing List - Non-Commercial Discussion
Objet : Re: [asterisk-users] What is billsec in CDR?

Philipp von Klitzing wrote:
> Hi!
>
>   
>>> apps like playback do an implicit answer and this fires up the 
>>> billsec counter.
>>>   
>>>       
>> OK, here is my dialplan:
>> exten => _011X.,n,Playback(this-call-will-end-in)
>> exten =>
>> _011X.,n,Dial(SIP/${EXTEN}@${LDTrunk1},60,L(${ms}:30000))
>>
>> Is there any way that Asterisk will record the correct billsec? Or, 
>> is there a different approach?
>>     
>
> Place a ResetCDR() after your Playback() statement and before Dial().
>
> Philipp
>
>
>   

ResetCDR() works! 

Thank you very much!

--
Jian Gao
IT Technician
SJ Geophysics Ltd. <http://www.sjgeophysics.com> jian.gao at sjgeophysics.com
<mailto:jian.gao at sjgeophysics.com>
Tel: (604)582-1100

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com -- New to
Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users




More information about the asterisk-users mailing list