[Freeswitch-dev] Would like to create and contribute a module "mod_cdr_logic"
nazim.aghabayov at gmail.com
Mon May 24 13:01:56 PDT 2010
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
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
Sorry, my English is terrible, much worse than my Russian ) If you are
interested, we could cooperate.
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,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the FreeSWITCH-dev