[Freeswitch-users] CDR using lua script

John Nash john.nash778 at gmail.com
Fri Feb 6 06:55:32 MSK 2015


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 at 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 at freeswitch.orghttp://www.freeswitchsolutions.com
>
> Official FreeSWITCH Siteshttp://www.freeswitch.orghttp://confluence.freeswitch.orghttp://www.cluecon.com
>
> FreeSWITCH-users mailing listFreeSWITCH-users at lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-users
> UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org
>
>
>
> _________________________________________________________________________
> 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/20150206/27b0c7fe/attachment.html 


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