[Home]

Summary:ASTERISK-16042: BAD ROUND TIME FOR ANSWEREDTIME
Reporter:Berganz Francois (fcois93)Labels:
Date Opened:2010-05-03 08:17:43Date Closed:2011-06-07 14:04:59
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Applications/app_dial
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:Hello,

I saw that Asterisk don't calcultate fine the ANSWEREDTIME.
I want that when ANSWEREDTIME =~ 5.6 become 6  and if =~10.3 become 10
because, now, if ANSEREDTIME =~ 15.9, it become 15! it isn't correct


I need something like that to have a rounded ANSWEREDTIME but I don't know where manipulate it.

if ($ANSWEREDTIME <= [0-9].*\.5){
 $ANSWEREDTIME = [0-9].*
}else{
 $ANSWEREDTIME = `[0-9].* + 1`
}


--
Francois
Comments:By: Paul Belanger (pabelanger) 2010-05-03 08:45:18

Thanks for your comments. This does not appear to be a bug report and we are closing it. We appreciate the difficulties you are facing, but it would make more sense to raise your question in the support tracker, http://www.asterisk.org/support