[Freeswitch-users] Pushing CDR Information into Zeromq

Gavin Henry gavin.henry at gmail.com
Sat Jul 7 18:07:13 MSD 2012


0mq does hold the messages.   

--  
Gavin Henry
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)


On Saturday, 7 July 2012 at 11:56, Michael Giagnocavo wrote:

>  
> But 0MQ is just the transport. You still need a broker to persist messages, participate in transactions, and so on. That’s what I was referring to, not just the transport layer acknowledgements. So if you’re just taking CDRs from FS memory and sending them out over 0MQ, what if the other side is down? In that case, aren’t you risking a lot of data, should something happen before the receiver gets up and saves all the CDRs? 0MQ isn’t really an alternative to a broker like RabbitMQ or SSSB.
>  
>  
>   
>  
>  
> CDRs should be going to a local, durable, message queue. This doesn’t mean that you need to hit disk; the messages can stay in RAM for a few seconds, under the assumption that during normal ops, they’ll get delivered immediately and there’s no need for local persistence. But when something breaks, then the CDRs can just pile up on disk, and get pumped out whenever things stabilize.
>  
>  
>   
>  
>  
> Am I missing something?
>  
>  
>   
>  
>  
> -Michael
>  
>  
>   
>  
>  
> From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of João Mesquita
> Sent: Thursday, July 05, 2012 3:09 PM
> To: FreeSWITCH Users Help
> Subject: Re: [Freeswitch-users] Pushing CDR Information into Zeromq
>  
>  
>   
>  
>  
> Michael,  
>  
>  
>   
>  
>  
>  
> You are partially correct because it depends on the socket type you use on ZeroMQ. Since the socket implemented on mod_zmq is a simple PUB/SUB, yes, messages would be discarded if they are not received by the other end. If we would use a XREQ/XREP then it would be queued until you are able to receive them.
>  
>  
>  
>  
>   
>  
>  
>  
> --  
>  
>  
>  
> João Mesquita
>  
>  
>  
> Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
>  
>  
>  
>   
>  
>  
>  
> On Thursday, July 5, 2012 at 3:08 PM, Michael Giagnocavo wrote:
> >  
> > Wouldn’t the problem with ZeroMQ be no reliable delivery of CDRs? I was under the impression that 0MQ was more for high-performance, and things like guaranteed delivery are left as an exercise to the user.
> >  
> >  
> > -Michael
> >  
> >  
> >   
> >  
> >  
> > From: freeswitch-users-bounces at lists.freeswitch.org (mailto:freeswitch-users-bounces at lists.freeswitch.org) [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of João Mesquita
> > Sent: Thursday, July 05, 2012 9:56 AM
> > To: FreeSWITCH Users Help
> > Subject: Re: [Freeswitch-users] Pushing CDR Information into Zeromq
> >  
> >  
> >   
> >  
> >  
> > I haven't actually looked at the code, but you have to look at the variables on CHANNEL_REPORTING for example. There you will see all the vars needed to produce CDR entries, but they won't be on XML format like xml_curl would create.
> >  
> >  
> >   
> >  
> >  
> >  
> > Regards,
> >  
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > --  
> >  
> >  
> >  
> > João Mesquita
> >  
> >  
> >  
> > Sent with Sparrow (http://www.sparrowmailapp.com/?sig)
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > On Thursday, July 5, 2012 at 10:37 AM, Neo Cheema wrote:
> > >  
> > > Hi all,
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > I was hoping to find a way to push CDR information into a queue.
> > >  
> > >  
> > >  
> > > Zeromq comes out as an obvious choice because mod_event_zmq already
> > >  
> > >  
> > >  
> > > exits. However, I can't find a way to configure this module to push
> > >  
> > >  
> > >  
> > > CDR info. Have any of you guys tried it?
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > Regards
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > _________________________________________________________________________
> > >  
> > >  
> > >  
> > > Professional FreeSWITCH Consulting Services:
> > >  
> > >  
> > >  
> > > consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> > >  
> > >  
> > >  
> > > http://www.freeswitchsolutions.com
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > 
> > >  
> > >  
> > >  
> > > 
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > Official FreeSWITCH Sites
> > >  
> > >  
> > >  
> > > http://www.freeswitch.org
> > >  
> > >  
> > >  
> > > http://wiki.freeswitch.org
> > >  
> > >  
> > >  
> > > http://www.cluecon.com
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > Join Us At ClueCon - Aug 7-9, 2012
> > >  
> > >  
> > >  
> > >   
> > >  
> > >  
> > >  
> > > FreeSWITCH-users mailing list
> > >  
> > >  
> > >  
> > > FreeSWITCH-users at lists.freeswitch.org (mailto: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
> > >  
> > >  
> > >  
> > >  
> >  
> >  
> >   
> >  
> >  
> >  
> >  
> >  
> > _________________________________________________________________________
> >  
> >  
> >  
> > Professional FreeSWITCH Consulting Services:
> >  
> >  
> >  
> > consulting at freeswitch.org (mailto:consulting at freeswitch.org)
> >  
> >  
> >  
> > http://www.freeswitchsolutions.com
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > 
> >  
> >  
> >  
> > 
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > Official FreeSWITCH Sites
> >  
> >  
> >  
> > http://www.freeswitch.org
> >  
> >  
> >  
> > http://wiki.freeswitch.org
> >  
> >  
> >  
> > http://www.cluecon.com
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > Join Us At ClueCon - Aug 7-9, 2012
> >  
> >  
> >  
> >   
> >  
> >  
> >  
> > FreeSWITCH-users mailing list
> >  
> >  
> >  
> > FreeSWITCH-users at lists.freeswitch.org (mailto: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
> >  
> >  
> >  
> >  
>  
>  
>   
>  
>  
>  
> _________________________________________________________________________
> Professional FreeSWITCH Consulting Services:
> consulting at freeswitch.org
> http://www.freeswitchsolutions.com
>  
> 
> 
>  
> Official FreeSWITCH Sites
> http://www.freeswitch.org
> http://wiki.freeswitch.org
> http://www.cluecon.com
>  
> Join Us At ClueCon - Aug 7-9, 2012
>  
> 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/20120707/3bdbc9e7/attachment.html 


Join us at ClueCon 2011 Aug 9-11, 2011
More information about the FreeSWITCH-users mailing list