[Freeswitch-users] help : CDR variables not reachable to dialplan/Lua script
Michael Collins
msc at freeswitch.org
Fri Feb 3 00:30:08 MSK 2012
Okay, let's try again:
http://wiki.freeswitch.org/wiki/Lua#Special_Case:_env_object
-MC
On Thu, Feb 2, 2012 at 11:06 AM, Balamurugan Mahendran <b2m at a-cti.com>wrote:
> Hi team,
>
> 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.
>
> local aa=session:getVariable("context");
> local bb=session:getVariable("destination_number");
> local cc=session:getVariable("caller_id_name");
> local dd=session:getVariable("caller_id_number");
> local ee=session:getVariable("network_addr");
> local ff=session:getVariable("ani");
> local ii=session:getVariable("source");
> local jj=session:getVariable("chan_name");
> local kk=session:getVariable("uuid");
> local ll=session:getVariable("created_time");
> local aa1=session:getVariable("direction");
> local bb1=session:getVariable("username");
> local cc1=session:getVariable("dialplan");
> local dd1=session:getVariable("caller_id_number");
> local ee1=session:getVariable("unique_id");
>
> session:execute("bridge","user/601");
> session:hangup();
>
> local ff1=session:getVariable("answered_time");
> local hh1=session:getVariable("created_time");
> local gg1=session:getVariable("hangup_time");
> local gg2=session:getVariable("end_stamp");
>
> I am getting values for all the above variables except end_stamp,
> hangup_time, duration, billsec,hangup_cause.
>
>
> Thanks for your time.
>
> Thanks,
> Bala
>
>
>
>
>
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>
>
>
>
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>
> FreeSWITCH-users mailing list
> FreeSWITCH-users at lists.freeswitch.org
> http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
> http://www.freeswitch.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120202/f10980a5/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list