[Freeswitch-users] help : CDR variables not reachable to dialplan/Lua script
Balamurugan Mahendran
b2m at a-cti.com
Thu Feb 2 22:06:21 MSK 2012
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20120203/6d247357/attachment.html
Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users
mailing list