Asterisk(ver 11.22.0) EPOCH variable not updated -
i tried use epoch asterisk variable in order take timestmap perform calculation during context execution.
what during context exectuion epoch variable doesn't change value. in follwoing example, epoch ahve same value @ 1st line , last line.
[test-context] exten => 8001,1,noop(${epoch}) exten => 8001,2,do exten => 8001,3,do exten => 8001,4,do ... exten => 8001,n,noop(${epoch})
is correct? if expected behaviour how can during call processing , in acontext timestamp clauclate example elapsed time?
asterisk behaving correclty , "do something" actions buggy such completed within few ms no changes reported in epoch variable value
you dialplan correct, ${epoch} print time of execution of priority. i've tested asterisk v.11.22:
using dialplan:
exten => 997,1,noop(${epoch}) same => n,wait(10) same => n,noop(${epoch}) same => n,hangup
this result get:
-- executing [997@from-internal:1] noop("sip/1001-000047fa", "1478657120") in new stack -- executing [997@from-internal:2] wait("sip/1001-000047fa", "10") in new stack -- executing [997@from-internal:3] noop("sip/1001-000047fa", "1478657130") in new stack -- executing [997@from-internal:4] hangup("sip/1001-000047fa", "") in new stack
as can see, time difference 10 second added wait.
edit: saw running same version me. have considered priorities , final epoch running in same second?
Comments
Post a Comment