Re: [asterisk-users] precision of wait dialplan application

2009-05-08 Thread David Backeberg
On Wed, May 6, 2009 at 8:17 AM, Johann Steinwendtner
steinwendt...@gmx.net wrote:
 But it seems the Wait(60) lasts longer than 60 seconds:

     -- Executing [...@from_meridian:1] NoOp(DAHDI/29-1, Test 
 wait) in new stack
     -- Executing [...@from_meridian:2] Answer(DAHDI/29-1, ) in 
 new stack
     -- Executing [...@from_meridian:3] NoOp(DAHDI/29-1, Current 
 timestamp: 20090506135813) in new stack
     -- Executing [...@from_meridian:4] Wait(DAHDI/29-1, 60) in 
 new stack
     -- Executing [...@from_meridian:5] NoOp(DAHDI/29-1, Current 
 timestamp: 20090506135915) in new stack
     -- Executing [...@from_meridian:6] Hangup(DAHDI/29-1, ) in 
 new stack

 What is wrong in this example ?

Could be rounding error. Try it ten times and see if it's always that
wrong. If it's always that wrong, just do a wait(59) :-p

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users


[asterisk-users] precision of wait dialplan application

2009-05-06 Thread Johann Steinwendtner
Hello !

In order to chase after a problem I implemented the following dialplan to have 
an
answertime of exactly one minute:

exten = xxx,1,NoOp(Test wait)
exten = xxx,n,Answer
exten = xxx,n,NoOp(Current timestamp: 
${STRFTIME(${EPOCH},,%C%y%m%d%H%M%S)})
exten = xxx,n,Wait(60)
exten = xxx,n,NoOp(Current timestamp: 
${STRFTIME(${EPOCH},,%C%y%m%d%H%M%S)})
exten = xxx,n,Hangup

But it seems the Wait(60) lasts longer than 60 seconds:

 -- Executing [...@from_meridian:1] NoOp(DAHDI/29-1, Test wait) 
in new stack
 -- Executing [...@from_meridian:2] Answer(DAHDI/29-1, ) in new 
stack
 -- Executing [...@from_meridian:3] NoOp(DAHDI/29-1, Current 
timestamp: 20090506135813) in new stack
 -- Executing [...@from_meridian:4] Wait(DAHDI/29-1, 60) in new 
stack
 -- Executing [...@from_meridian:5] NoOp(DAHDI/29-1, Current 
timestamp: 20090506135915) in new stack
 -- Executing [...@from_meridian:6] Hangup(DAHDI/29-1, ) in new 
stack

What is wrong in this example ?

Regards

Hans

___
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users