Displaying 2 results from an estimated 2 matches for "start_timestamp".
2017 Dec 27
3
Answered time on channel
...gt; always set in the "top most" channel. Below is an untested example, but is
> inspired by dialplan code I use in production. Maybe it will help.
>
> [outbound] ; this is called on the incoming (caller) channel
> exten => _X.,1,Noop
> same => n,Set(MASTER_CHANNEL(start_timestamp)=${STRFTIME(,,%s.%3q)})
> same => n,Set(CHANNEL(hangup_handler_push)=hangup_handler,s,1)
> same => n,Set(MASTER_CHANNEL(callid_ingress)=${SIPCALLID})
> same => n, *** unrelated dialplan, AGIs, etc. ***
> same => n,Dial(SIP/${EXTEN}@1.1.1.1,,U(answer_handler)b(pre_dial_
&...
2017 Dec 26
4
Answered time on channel
Hi,
I have a dial plan where I need to notify an external system when a call
was answered and when the call hung up. In both requests the start time
needs to be the same. My Dialplan looks something like this:
[outbound]
Exten => _X.,1,Dial(SIP/${EXTEN}@1.1.1.1,,U(call-answer-from-carrier))
Exten => h,1,NoOp(ANSWERED_TIME: ${ANSWEREDTIME} >>> DIAL_TIME:
${DIALEDTIME}