help : CDR variables not reachable to dialplan/Lua script
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
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@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@freeswitch.org http://www.freeswitchsolutions.com
FreeSWITCH-powered IP PBX: The CudaTel Communication Server http://www.cudatel.com
Official FreeSWITCH Sites http://www.freeswitch.org http://wiki.freeswitch.org http://www.cluecon.com
FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
participants (2)
-
Balamurugan Mahendran
-
Michael Collins