Re: [SR-Users] Get duration in cnxcc:call-shutdown event

2013-07-20 Thread Jayesh Nambiar
Thanks for the quick reply Carlos. Really appreciate it. Thanks, --- Jayesh On Sat, Jul 20, 2013 at 9:13 PM, Carlos Ruiz Díaz wrote: > The lack of values in some of the standard pseudo variables is a > limitation of the dialog module which does not provide the necessary > information in the

Re: [SR-Users] Get duration in cnxcc:call-shutdown event

2013-07-20 Thread Carlos Ruiz Díaz
The lack of values in some of the standard pseudo variables is a limitation of the dialog module which does not provide the necessary information in the event route block in cases when the call is forced to end. You can calculate the duration using: * $var(duration) = $TS - $dlg(start_ts);* * *

[SR-Users] Get duration in cnxcc:call-shutdown event

2013-07-19 Thread Jayesh Nambiar
Hello, Is there a straight forward way of getting the duration of the call in cnxcc-call-shutdown event. The $DLG_lifetime returns NULL as the dialog does not exist. I dont get the value of $DLG_lifetime even in dialog:end event when the call ends through cnxcc module. Even the cdr flag of acc modu