<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0in;
        mso-margin-bottom-alt:auto;
        margin-left:0in;
        font-size:12.0pt;
        font-family:"Times New Roman","serif";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:"Calibri","sans-serif";
        color:#1F497D;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Am I missing something?<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Michael<o:p></o:p></span></p>
<p class="MsoNormal"><a name="_MailEndCompose"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></a></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif""> freeswitch-users-bounces@lists.freeswitch.org [mailto:freeswitch-users-bounces@lists.freeswitch.org]
<b>On Behalf Of </b>João Mesquita<br>
<b>Sent:</b> Thursday, July 05, 2012 3:09 PM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Pushing CDR Information into Zeromq<o:p></o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">Michael, <o:p></o:p></span></p>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New""><o:p> </o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Courier New"">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.<o:p></o:p></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">-- <o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">João Mesquita<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Sent with <a href="http://www.sparrowmailapp.com/?sig">Sparrow</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<p><span style="color:#A0A0A8">On Thursday, July 5, 2012 at 3:08 PM, Michael Giagnocavo wrote:<o:p></o:p></span></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">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.</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">-Michael</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"> </span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>João Mesquita<br>
<b>Sent:</b> Thursday, July 05, 2012 9:56 AM<br>
<b>To:</b> FreeSWITCH Users Help<br>
<b>Subject:</b> Re: [Freeswitch-users] Pushing CDR Information into Zeromq</span><o:p></o:p></p>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:"Courier New"">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.</span><o:p></o:p></p>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:"Courier New""> </span><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><span style="font-size:10.0pt;font-family:"Courier New"">Regards,</span><o:p></o:p></p>
</div>
</div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">-- <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">João Mesquita<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Sent with <a href="http://www.sparrowmailapp.com/?sig">
Sparrow</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
</div>
<p><span style="color:#A0A0A8">On Thursday, July 5, 2012 at 10:37 AM, Neo Cheema wrote:</span><o:p></o:p></p>
<blockquote style="border:none;border-left:solid windowtext 1.0pt;padding:0in 0in 0in 8.0pt;margin-left:0in;margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Hi all,<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">I was hoping to find a way to push CDR information into a queue.<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Zeromq comes out as an obvious choice because mod_event_zmq already<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">exits. However, I can't find a way to configure this module to push<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">CDR info. Have any of you guys tried it?<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Regards<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">_________________________________________________________________________<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Professional FreeSWITCH Consulting Services:<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Official FreeSWITCH Sites<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">Join Us At ClueCon - Aug 7-9, 2012<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">FreeSWITCH-users mailing list<o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></p>
</div>
<div>
<p style="margin:0in;margin-bottom:.0001pt"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
<div>
<p style="margin:0in;margin-bottom:.0001pt"> <o:p></o:p></p>
</div>
</div>
</div>
<div>
<div>
<p class="MsoNormal">_________________________________________________________________________<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Professional FreeSWITCH Consulting Services:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">FreeSWITCH-powered IP PBX: The CudaTel Communication Server<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.cudatel.com">http://www.cudatel.com</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Official FreeSWITCH Sites<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://wiki.freeswitch.org">http://wiki.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.cluecon.com">http://www.cluecon.com</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Join Us At ClueCon - Aug 7-9, 2012<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">FreeSWITCH-users mailing list<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a><o:p></o:p></p>
</div>
</div>
</div>
</blockquote>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
</body>
</html>