[Home]

Summary:ASTERISK-14476: TIMEOUT(absolute) return negative value
Reporter:Yuri (ys)Labels:
Date Opened:2009-07-16 04:46:12Date Closed:2009-07-16 16:47:13
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Functions/func_timeout
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:
TIMEOUT(absolute) in my asterisk 1.6.1.1 always return negative value.
In asterisk 1.4 all ok.

dialplan testcase:

exten =>test,1, SET(TIMEOUT(absolute)= 30)
exten =>test,n, NOOP(${TIMEOUT(absolute)})

-- Executing [001@test:1] Set("SIP/test-0825b014", "TIMEOUT(absolute)= 30") in new stack
Channel will hangup at 2009-07-16 12:46:36.938 MSD.
   -- Executing [001@test:2] NoOp("SIP/test-0825b014", "-30.000") in new stack



****** ADDITIONAL INFORMATION ******

I think function ast_tvdiff_ms() in funcs/func_timeout.c has incorect parameters order.

Must be:
snprintf(buf, len, "%.3f", ast_tvdiff_ms(chan->whentohangup, myt) / 1000.0);

Sorry, but I can't now generate and attach simple diff file for this issue.
Comments:By: Digium Subversion (svnbot) 2009-07-16 16:45:15

Repository: asterisk
Revision: 206877

U   trunk/funcs/func_timeout.c

------------------------------------------------------------------------
r206877 | dvossel | 2009-07-16 16:45:15 -0500 (Thu, 16 Jul 2009) | 6 lines

TIMEOUT(absolute) returned negative value.

(closes issue ASTERISK-14476)
Reported by: ys


------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=206877

By: Digium Subversion (svnbot) 2009-07-16 16:45:48

Repository: asterisk
Revision: 206878

_U  branches/1.6.2/
U   branches/1.6.2/funcs/func_timeout.c

------------------------------------------------------------------------
r206878 | dvossel | 2009-07-16 16:45:48 -0500 (Thu, 16 Jul 2009) | 12 lines

Merged revisions 206877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r206877 | dvossel | 2009-07-16 16:45:14 -0500 (Thu, 16 Jul 2009) | 6 lines
 
 TIMEOUT(absolute) returned negative value.
 
 (closes issue ASTERISK-14476)
 Reported by: ys
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=206878

By: Digium Subversion (svnbot) 2009-07-16 16:46:27

Repository: asterisk
Revision: 206879

_U  branches/1.6.1/
U   branches/1.6.1/funcs/func_timeout.c

------------------------------------------------------------------------
r206879 | dvossel | 2009-07-16 16:46:27 -0500 (Thu, 16 Jul 2009) | 12 lines

Merged revisions 206877 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk

........
 r206877 | dvossel | 2009-07-16 16:45:14 -0500 (Thu, 16 Jul 2009) | 6 lines
 
 TIMEOUT(absolute) returned negative value.
 
 (closes issue ASTERISK-14476)
 Reported by: ys
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=206879

By: Digium Subversion (svnbot) 2009-07-16 16:47:13

Repository: asterisk
Revision: 206880

_U  branches/1.6.0/

------------------------------------------------------------------------
r206880 | dvossel | 2009-07-16 16:47:12 -0500 (Thu, 16 Jul 2009) | 11 lines

Blocked revisions 206877 via svnmerge

........
 r206877 | dvossel | 2009-07-16 16:45:14 -0500 (Thu, 16 Jul 2009) | 6 lines
 
 TIMEOUT(absolute) returned negative value.
 
 (closes issue ASTERISK-14476)
 Reported by: ys
........

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=206880