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 How can I have a rounded ANSWEREDTIME ? Where have I to manipulate the sources? thank you -- Francois -------------- next part -------------- A non-text attachment was scrubbed... Name: francois.vcf Type: text/x-vcard Size: 400 bytes Desc: not available Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100503/777dddb6/attachment.vcf -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/pkcs7-signature Size: 6488 bytes Desc: S/MIME Cryptographic Signature Url : http://lists.digium.com/pipermail/asterisk-users/attachments/20100503/777dddb6/attachment.bin
The values for ANSWEREDTIME are set in apps/app_followme.c and apps/app_dial.c . The values are set in seconds, so if you're looking to set nearest minute you'll just need to change the sprintf from %1d (1 decimal point x.x) to %0d (x). -----Original Message----- From: asterisk-users-bounces at lists.digium.com [mailto:asterisk-users-bounces at lists.digium.com] On Behalf Of Fran?ois BERGANZ Sent: Monday, May 03, 2010 8:19 AM To: asterisk-users at lists.digium.com Subject: [asterisk-users] BADTIME FOR ANSWEREDTIME 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 How can I have a rounded ANSWEREDTIME ? Where have I to manipulate the sources? thank you -- Francois