[asterisk-bugs] [Asterisk 0015542]: app_waituntil does not wait on 1.6.1

Asterisk Bug Tracker noreply at bugs.digium.com
Sun Aug 2 05:44:06 CDT 2009


A NOTE has been added to this issue. 
====================================================================== 
https://issues.asterisk.org/view.php?id=15542 
====================================================================== 
Reported By:                Trevmeister
Assigned To:                
====================================================================== 
Project:                    Asterisk
Issue ID:                   15542
Category:                   Applications/app_waituntil
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     feedback
Asterisk Version:           SVN 
Regression:                 No 
SVN Branch (only for SVN checkouts, not tarball releases): 1.6.1 
SVN Revision (number only!): 207287 
Request Review:              
====================================================================== 
Date Submitted:             2009-07-21 07:47 CDT
Last Modified:              2009-08-02 05:44 CDT
====================================================================== 
Summary:                    app_waituntil does not wait on 1.6.1
Description: 
app_waituntil always believes the argument passed to it is the past.  It
never causes a wait, and passes to the next entry in the dialplan.  

This appears to work correctly in SVN 1.6.2.

====================================================================== 

---------------------------------------------------------------------- 
 (0108513) Trevmeister (reporter) - 2009-08-02 05:44
 https://issues.asterisk.org/view.php?id=15542#c108513 
---------------------------------------------------------------------- 
WaitUntil worked fine on SVN 1.6.2 r207364 through r209626.  When I updated
to r209992 this evening, WaitUntil began failing again.  I downgraded to
209626, and the problem went away.  

The only files changed in the update to r209992 were:
U    pbx/pbx_config.c
U    channels/misdn/isdn_lib.c
U    channels/misdn/ie.c
U    apps/app_milliwatt.c
U    main/Makefile
U    main/db1-ast/mpool/mpool.c
U    main/event.c
U    main/pbx.c
U    utils/frame.c

So the issue has to reside in one of those files.  

Relevant dialplan entries:
exten => 8463,n,Verbose(2,WaitUntil ${FutureTime})
exten => 8463,n,WaitUntil(${FutureTime})
exten => 8463,n(beep),Playtones(!800/500,0)

For reference, the variable FutureTime is rounded up to the next 10-second
increment from when initially called

Console output:
Rev 209626 (WaitUntil works properly)
[Aug  2 03:26:17]     -- Executing [8463 at internal:22]
Verbose("SIP/4000-09274688", "2,WaitUntil 1249208780") in new stack
[Aug  2 03:26:17]   == WaitUntil 1249208780
[Aug  2 03:26:17]     -- Executing [8463 at internal:23]
WaitUntil("SIP/4000-09274688", "1249208780") in new stack
[Aug  2 03:26:20]     -- Executing [8463 at internal:24]
PlayTones("SIP/4000-09274688", "!800/500,0") in new stack


Rev 209992 (WaitUntil broken)
[Aug  2 03:31:22]     -- Executing [8463 at internal:22]
Verbose("SIP/4000-09836410", "2,WaitUntil 1249209090") in new stack
[Aug  2 03:31:22]   == WaitUntil 1249209090
[Aug  2 03:31:22]     -- Executing [8463 at internal:23]
WaitUntil("SIP/4000-09836410", "1249209090") in new stack
[Aug  2 03:31:22] NOTICE[20041]: app_waituntil.c:95 waituntil_exec:
WaitUntil called in the past (now 1249209082, arg 1249209090)
[Aug  2 03:31:22]     -- Executing [8463 at internal:24]
PlayTones("SIP/4000-09836410", "!800/500,0") in new stack 

Issue History 
Date Modified    Username       Field                    Change               
====================================================================== 
2009-08-02 05:44 Trevmeister    Note Added: 0108513                          
======================================================================




More information about the asterisk-bugs mailing list