Okay, let&#39;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">&lt;<a href="mailto:b2m@a-cti.com">b2m@a-cti.com</a>&gt;</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(&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>_________________________________________________________________________<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>