[asterisk-bugs] [Asterisk 0012801]: Digit timeout giving negative values

noreply at bugs.digium.com noreply at bugs.digium.com
Fri Jun 6 11:23:48 CDT 2008


A NOTE has been added to this issue. 
====================================================================== 
http://bugs.digium.com/view.php?id=12801 
====================================================================== 
Reported By:                xieliwei
Assigned To:                Corydon76
====================================================================== 
Project:                    Asterisk
Issue ID:                   12801
Category:                   Functions/func_timeout
Reproducibility:            always
Severity:                   major
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
SVN Branch (only for SVN checkouts, not tarball releases):  trunk 
SVN Revision (number only!): 120859 
Disclaimer on File?:        N/A 
Request Review:              
====================================================================== 
Date Submitted:             06-05-2008 21:29 CDT
Last Modified:              06-06-2008 11:23 CDT
====================================================================== 
Summary:                    Digit timeout giving negative values
Description: 
I'm not very sure if this is a freepbx or asterisk issue since both are
trunk versions and this is a fresh install. I'll be posting this bug report
for both freepbx and asterisk.

All instances of digit timeout seem to have negative time even though a
positive value was set:

IVR
    -- Executing [s at ivr-4:5] GotoIf("SIP/xx.xx.xx.xx-083c0e40", "1?begin")
in new stack
    -- Goto (ivr-4,s,8)
    -- Executing [s at ivr-4:8] Set("SIP/xx.xx.xx.xx-083c0e40",
"TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to -2144.483
    -- Executing [s at ivr-4:9] Set("SIP/xx.xx.xx.xx-083c0e40",
"TIMEOUT(response)=10") in new stack
    -- Response timeout set to 10.000


Similarly for DISA
    -- Executing [1 at ivr-3:3] Goto("SIP/xx.xx.xx.xx-083c0e40", "disa,1,1")
in new stack
    -- Goto (disa,1,1)
    -- Executing [1 at disa:1] Set("SIP/xx.xx.xx.xx-083c0e40",
"TIMEOUT(digit)=5") in new stack
    -- Digit timeout set to -2142.483
    -- Executing [1 at disa:2] Set("SIP/xx.xx.xx.xx-083c0e40",
"TIMEOUT(response)=10") in new stack
    -- Response timeout set to 10.000

Notice that response timeout still works as normal and that the timeout
seems to be overflowing as the negative values seem to change
proportionally to the value of timeout specified.

FreePBX version is trunk-5769
====================================================================== 

---------------------------------------------------------------------- 
 xieliwei - 06-06-08 11:23  
---------------------------------------------------------------------- 
Further testing gives this:
    -- Executing [196 at from-internal:1] Set("SIP/105-0821c6a0",
"TIMEOUT(digit)=10") in new stack
    -- Digit timeout set to 10.000
    -- Executing [196 at from-internal:2] Set("SIP/105-0821c6a0",
"TIMEOUT(digit)=3") in new stack
    -- Digit timeout set to -2144.483
    -- Executing [196 at from-internal:3] Set("SIP/105-0821c6a0",
"TIMEOUT(response)=5") in new stack
    -- Response timeout set to 5.000
    -- Executing [196 at from-internal:4] NoOp("SIP/105-0821c6a0",
"d=-2144.483 r=5.000") in new stack
    -- Executing [196 at from-internal:5] Wait("SIP/105-0821c6a0", "300") in
new stack

Appears to only happen with 3 seconds?

I'm not very sure how I got into this problem. Please suggest what could
have caused this so that I know where to start to look for how to reproduce
this problem. 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
06-06-08 11:23  xieliwei       Note Added: 0087904                          
======================================================================




More information about the asterisk-bugs mailing list