On Saturday, 7 July 2012 at 13:26, Neo Cheema wrote:
I looked around, and mod_event_zmq does infact send "all" the events.So I just need to filter the incoming messages like, hangup_completeetc to generate CDR-like info at the other end. Ofcourse, the listenershould be up all the time at the other end. So enabling mod_cdr_csvcan handle disk persistence in case worker goes down.But I also liked the idea of generating 'billsec' like variablesinside the script independently. Thanks for the inputs.On Sat, Jul 7, 2012 at 4:26 PM, Michael Giagnocavo <mgg@giagnocavo.net> wrote:Regarding “safe” variables like billsec: The issue is that most of thosethings are not calculated and set until later on in the lifecycle of arequest, well after your Lua script has run. You can access them in C byadding a state handler, but I don’t believe that’s easily exposed to “API”apps/scripts. Anthony humoured me a quite a bit trying to get that kind ofstuff working, but (at least a while ago), it was just not feasible. I wouldsuggest that your Lua script add in its own data variables that it would usein billing calculations, then let the full CDR get written, then pick upprocessing again, restore the vars from the CDR, and continue calculations.I know, it’s not the most elegant seeming approach, but it’s the onlyreliable way AFAIK.-MichaelFrom: freeswitch-users-bounces@lists.freeswitch.org[mailto:freeswitch-users-bounces@lists.freeswitch.org] On Behalf Of AviMarcusSent: Friday, July 06, 2012 4:02 AMTo: FreeSWITCH Users HelpSubject: Re: [Freeswitch-users] Pushing CDR Information into ZeromqI'm pretty sure there's a variable to have the CDR in the ESL events, but Ican't find it.-AviOn Fri, Jul 6, 2012 at 12:42 PM, Neo Cheema <neo.cheema@gmail.com> wrote:Avi,Yea. That would work as well. I just thought it would be a'nice-to-have' feature. Guess I'll go ahead with your model.RegardsOn Fri, Jul 6, 2012 at 2:07 PM, Avi Marcus <avi@avimarcus.net> wrote:I process CDRs on the same machine and then replicate the DB elsewhere.Or you could have a daemon processing the CDRs on the main machine anddoingwhatever with them.The benefit is that then you'll have file persistence of the CDRs untiltheyactually get processed...-AviOn Fri, Jul 6, 2012 at 11:10 AM, Neo Cheema <neo.cheema@gmail.com> wrote:Avi,What I really want is to provide near-real time updates of CDRs on awebpage, the webserver not necessarily being on the same machine asFreeswitch. I would hate to continuously scan DB on freeswitch machinefor latest CDR info.In a related issue, I read that the only reliable info on "calllength", billsec etc should be read from CDRs.I mean, I can't do a getvariable on session in say a Lua script, toread call length, billsec session variables. Infact I tried it and gotnull responses, even after session hangup. Is there a way to get"correct" values of these variables in the Lua script itself? It wouldmake my life simpler, because I can then just push the cdr info +custom values into any queue or webserver, without waiting for theFreeswitch to do it for me.Any Ideas?On Fri, Jul 6, 2012 at 1:18 PM, Avi Marcus <avi@avimarcus.net> wrote:xml_cdr by default writes to disk, no web server required. You want toskipthe disk, I presume..?-AviOn Fri, Jul 6, 2012 at 10:14 AM, Neo Cheema <neo.cheema@gmail.com>wrote:João,"Since the socket implemented on mod_zmq is a simple PUB/SUB, yes,messages would be discarded if they are not received by the otherend."I thought it didn't matter if the 'worker' was up before the'producer'/freeswitch started pushing in the messages. 0mq handlesthat part, if atleast one worker is connected.My main reason for looking towards 0mq was to bypass a webserver,which would be required for xml_cdr.On Fri, Jul 6, 2012 at 8:33 AM, jay binks <jaybinks@gmail.com> wrote:while we are talking about funky CDR stuff.Ive been planning to look at riak ( http://wiki.basho.com/ ) forbulkCDRstorage( storing data other than billing data ) but just not finding thetime.anyone done something similar ?The idea is to store as much data in a distributed manner, so as toaiddebugging.( not so much for billing )Jay_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org_________________________________________________________________________Professional FreeSWITCH Consulting Services:consulting@freeswitch.orghttp://www.freeswitchsolutions.comFreeSWITCH-powered IP PBX: The CudaTel Communication Serverhttp://www.cudatel.comOfficial FreeSWITCH Siteshttp://www.freeswitch.orghttp://wiki.freeswitch.orghttp://www.cluecon.comJoin Us At ClueCon - Aug 7-9, 2012FreeSWITCH-users mailing listFreeSWITCH-users@lists.freeswitch.orghttp://lists.freeswitch.org/mailman/listinfo/freeswitch-usersUNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-usershttp://www.freeswitch.org