[asterisk-users] ${ANSWEREDTIME} Broken on 1.2.13?

Joshua Colp jcolp at digium.com
Mon May 7 09:38:49 MST 2007


Barton Fisher wrote:
> No matter what I do, ${ANSWEREDTIME} is always 0, even on the most 
> simplest dial plan such as:
> Using  Asterisk 1.2.13
> 
> exten => 77,1,Answer
> exten => 77,2,Playback(custom/dax/S300) ; one minute file
> exten => 77,3,Noop(${ANSWEREDTIME})
> exten => 77,4,Hangup
> 
>    -- Executing Answer("SIP/5402-b7b45f58", "") in new stack
>    -- Executing Playback("SIP/5402-b7b45f58", "custom/dax/S300") in new 
> stack
>    -- Playing 'custom/dax/S300' (language 'en')
>    -- Executing NoOp("SIP/5402-b7b45f58", "") in new stack
>    -- Executing Hangup("SIP/5402-b7b45f58", "") in new stack
> 
> What gives on this simple thing?
> 
> Bart
> 

Slight correction: It is NULL, not 0. Something can't be broken that was 
never expected to work or coded to work... ANSWEREDTIME only gets set by 
app_dial when you dial something else and it is answered or not answered.

Joshua Colp
Software Developer
Digium, Inc.



More information about the asterisk-users mailing list