<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">All of this should already be in the b legs cdr, why would you need a lua script to calculate it?<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jul 12, 2016, at 12:46 AM, Chandra Adhikari &lt;<a href="mailto:chandraadhikari91@gmail.com" class="">chandraadhikari91@gmail.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><span style="font-size:12.8px" class="">Hi All,</span><div style="font-size:12.8px" class=""><br class=""></div><div style="font-size:12.8px" class=""><div class="">The following attachment file is a lua script for calculate the leg B pickup time and hangup time. But the issue, the duration is calculating from the outbound initiate time.</div><div class=""><br class=""></div><div class="">How to get the leg B answered time from inside the lua script?</div><div class=""><br class=""></div><div class="">I'm not using cdr logs.</div><div class=""><br class=""></div></div></div></div></blockquote></div><br class=""></div></body></html>