<div class="gmail_quote"><div class="gmail_quote"><div class="gmail_quote">Hi team,<div><br></div><div>I am trying to get these values from the lua script for custom CDR report, I am able to get few values but many variables are missing or getting null value. Any help would be appreciated.</div>





<div>

<br></div><div><div>local aa=session:getVariable(&quot;context&quot;);</div><div>local bb=session:getVariable(&quot;destination_number&quot;);</div><div>local cc=session:getVariable(&quot;caller_id_name&quot;);</div><div>







local dd=session:getVariable(&quot;caller_id_number&quot;);</div><div>local ee=session:getVariable(&quot;network_addr&quot;);</div><div>local ff=session:getVariable(&quot;ani&quot;);</div><div>local ii=session:getVariable(&quot;source&quot;);</div>







<div>local jj=session:getVariable(&quot;chan_name&quot;);</div><div>local kk=session:getVariable(&quot;uuid&quot;);</div><div>local ll=session:getVariable(&quot;created_time&quot;);</div><div>local aa1=session:getVariable(&quot;direction&quot;);</div>







<div>local bb1=session:getVariable(&quot;username&quot;);</div><div>local cc1=session:getVariable(&quot;dialplan&quot;);</div><div>local dd1=session:getVariable(&quot;caller_id_number&quot;);</div><div>local ee1=session:getVariable(&quot;unique_id&quot;);</div>







<div><br></div><div>session:execute(&quot;bridge&quot;,&quot;user/601&quot;);</div><div>session:hangup();</div><div><br></div><div>local ff1=session:getVariable(&quot;answered_time&quot;);</div><div>local hh1=session:getVariable(&quot;created_time&quot;);</div>







<div>local gg1=session:getVariable(&quot;hangup_time&quot;);</div><div>local gg2=session:getVariable(&quot;end_stamp&quot;);</div></div><div><br></div><div>I am getting values for all the above variables except end_stamp, hangup_time, duration, billsec,hangup_cause.</div>







<div><br></div><div><br></div><div>Thanks for your time.</div><div><br></div><div>Thanks,</div><div>Bala</div>
<br></div><br>
<br></div><br>
<br></div><br>