<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("context");</div><div>local bb=session:getVariable("destination_number");</div><div>local cc=session:getVariable("caller_id_name");</div><div>
local dd=session:getVariable("caller_id_number");</div><div>local ee=session:getVariable("network_addr");</div><div>local ff=session:getVariable("ani");</div><div>local ii=session:getVariable("source");</div>
<div>local jj=session:getVariable("chan_name");</div><div>local kk=session:getVariable("uuid");</div><div>local ll=session:getVariable("created_time");</div><div>local aa1=session:getVariable("direction");</div>
<div>local bb1=session:getVariable("username");</div><div>local cc1=session:getVariable("dialplan");</div><div>local dd1=session:getVariable("caller_id_number");</div><div>local ee1=session:getVariable("unique_id");</div>
<div><br></div><div>session:execute("bridge","user/601");</div><div>session:hangup();</div><div><br></div><div>local ff1=session:getVariable("answered_time");</div><div>local hh1=session:getVariable("created_time");</div>
<div>local gg1=session:getVariable("hangup_time");</div><div>local gg2=session:getVariable("end_stamp");</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>