Okay, let's try again:<br><a href="http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object">http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object</a><br><br>-MC<br><br><div class="gmail_quote">On Thu, Feb 2, 2012 at 11:06 AM, Balamurugan Mahendran <span dir="ltr"><<a href="mailto:b2m@a-cti.com">b2m@a-cti.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><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>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br>