yes just now tried that but result is same. I tried to do it in lua just to utilize freewitch.dbh otherwise there are some straight forward modules. In Lua I can also use luarun to avoid blocking of call thread in case of DB related locks. On Fri, Feb 6, 2015 at 8:29 AM, I put the Who? in Mishehu < mishehu@freeswitch.org> wrote:
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:
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}....."
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)
_________________________________________________________________________ Professional FreeSWITCH Consulting Services: consulting@freeswitch.orghttp://www.freeswitchsolutions.com
Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon....
FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.frees...
_________________________________________________________________________ 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