[asterisk-dev] Dial() channel start. answer, end time variables values

ast guy astguy at gmail.com
Thu Apr 27 08:03:17 MST 2006


I have an application that is being executed through dialplan,

1. Answer channel
2. Execute Myapp

After going through the cdr structure inside ast_channel  structure,
my question comes,
variables
start,answer,end are timeval structure

ast_channel->cdr->start.tv_sec
ast_channel->cdr->answer.tv_sec
ast_channel->cdr->end.tv_sec

gives timestamp value of calling channel leg or the called channel leg ?

Caller <------------------>Myapp<-----------------------> Called

I want to get start,answer,end values of channel b/w Myapp and Called


regards,
-ag



More information about the asterisk-dev mailing list