Did you try using instead api_reporting_hook instead ? You really want to do your CDR logging in the CS_REPORTING state, not CS_HANGUP.
-- Yossi Neiman On 02/05/2015 08:29 PM, John Nash wrote:But when this executes many of the parameters passed to script as nil like billsec , How can I get all parameters related to CDR (Like other CDR modules)I am trying to insert CDR using a lua script.
<action application="export" data="nolocal:api_hangup_hook=luarun cdr2.lua ${start_stamp} ${created_time} ${progress_time} ${progress_media_time} ${answer_stamp} ${end_stamp} ${duration} ${billsec}....."
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.org http://www.freeswitchsolutions.com Official FreeSWITCH Sites http://www.freeswitch.org http://confluence.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
_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting@freeswitch.org
http://www.freeswitchsolutions.com
Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.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