<div dir="ltr">Hi there.<div><br></div><div>I&#39;m trying to get the call duration in seconds using ESL, but it looks like the channel variables are not being set correctly.</div><div><br></div><div>In CHANNEL_HANGUP events, I see the following variables:</div><div><br></div><div><div>  &#39;Caller-Profile-Created-Time&#39; =&gt; &#39;1420586926995761&#39;,</div><div>  &#39;Caller-Channel-Created-Time&#39; =&gt; &#39;1420586926995761&#39;,</div><div>  &#39;Caller-Channel-Answered-Time&#39; =&gt; &#39;1420586929503733&#39;,</div><div>  &#39;Caller-Channel-Progress-Time&#39; =&gt; &#39;0&#39;,</div><div>  &#39;Caller-Channel-Progress-Media-Time&#39; =&gt; &#39;1420586929203735&#39;,</div><div>  &#39;Caller-Channel-Hangup-Time&#39; =&gt; &#39;0&#39;,</div></div><div><br></div><div>I would expect to generate the duration of the call by subtracting Caller-Channel-Answered-Time from Caller-Channel-Hangup-Time, but the hangup time is 0.  The actual call in this case was 45 seconds long.</div><div><br></div><div>What can I do use Freeswitch events to compute call duration?</div><div><br></div><div>Thanks!</div><div><br></div><div><br></div></div>