[Freeswitch-users] CDR using lua script

I put the Who? in Mishehu mishehu at freeswitch.org
Fri Feb 6 05:59:57 MSK 2015


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 at 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 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/20150205/3071cb61/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list