[Freeswitch-dev] Would like to create and contribute a module "mod_cdr_logic"
Nazim Aghabayov
nazim.aghabayov at gmail.com
Mon May 24 13:01:56 PDT 2010
Hello Vitalie
I've made a thingy which can implement complex business logic. It's a
FastCGI daemon that works together with mod_xml_cdr
<http://wiki.freeswitch.org/wiki/Mod_xml_cdr> to process CDR records.
Right now xmlcdrd can store CDR fields into MySQL tables and/or run
custom Lua scripts against fields retrieved with XPATH expressions from
CDR body.
Functionality of xmlcdrd could be extended by writing plugins for other
databases or different script languages. Despite I'm running it in
production, it needs some polish.
Please have a look at: http://wiki.freeswitch.org/wiki/Xmlcdrd for full
description.
Sorry, my English is terrible, much worse than my Russian ) If you are
interested, we could cooperate.
Best Regards,
Nazim
On 05/22/2010 09:35 PM, Vitalii Colosov wrote:
> Hi Jan,
>
> Thanks for your inputs.
>
> Basically what you described here makes me plan to create completely
> different thing that I was planning initially.
>
> It should be "mod_cdr_mediation" - it must read the CDRs prepared by
> mod_cdr_csv, apply business rules, insert into the database and move
> successfully processed CDRs into archive directory.
>
> If to go in this direction, I would also give the possibility to
> invoke a Lua/JS script before exporting CDRs, so user will create
> complex business logic to apply on the CDR values.
>
> It will give a lot of flexibility, for example user can decide whether
> to skip some CDRs from inserting into the database, can enhance the
> values, etc...
>
> Lua/FS script will receive selected CDR fields from the session
> variables, and enhanced / new values will be sent back to the
> mod_cdr_mediation for exporting.
>
> Do you think this idea reflects what you described?
>
> Thank you,
> Vitalie
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-dev/attachments/20100525/b90dce51/attachment.html
More information about the FreeSWITCH-dev
mailing list