<div dir="ltr"><div class="gmail_default" style="font-size:small">the order of actions seems to be problematic. what if I issue a rename, move command, and opensips is actually at the same time writing to the file?</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Oct 2, 2020 at 9:41 AM Ben Newlin <<a href="mailto:Ben.Newlin@genesys.com">Ben.Newlin@genesys.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-US" style="overflow-wrap: break-word;">
<div class="gmail-m_7300745758249903234WordSection1">
<p class="MsoNormal">There is no automatic configuration in OpenSIPS to close and/or roll the flatstore files. You must handle it. It is a 2 step process:
<br>
<br>
* moves/renames the current file<u></u><u></u></p>
<p class="MsoNormal">* calls OpenSIPS MI command to create a new file [1]<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">I think most people do it with a scheduled cron job.<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal">[1] <a href="https://opensips.org/docs/modules/3.1.x/db_flatstore.html#mi_flat_rotate" target="_blank">
https://opensips.org/docs/modules/3.1.x/db_flatstore.html#mi_flat_rotate</a><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<p class="MsoNormal"><span style="color:black">Ben Newlin </span><u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(181,196,223);padding:3pt 0in 0in">
<p class="MsoNormal" style="margin-bottom:12pt"><b><span style="font-size:12pt;color:black">From:
</span></b><span style="font-size:12pt;color:black">Users <<a href="mailto:users-bounces@lists.opensips.org" target="_blank">users-bounces@lists.opensips.org</a>><br>
<b>Date: </b>Friday, October 2, 2020 at 12:57 AM<br>
<b>To: </b>OpenSIPS users mailling list <<a href="mailto:users@lists.opensips.org" target="_blank">users@lists.opensips.org</a>><br>
<b>Subject: </b>Re: [OpenSIPS-Users] Flatstore files missing calls<u></u><u></u></span></p>
</div>
<div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">How often the flatstore log files get closed and a new one is created? <u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">I need to move the file to another directory and it is still open.<u></u><u></u></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:12pt">Philip<u></u><u></u></span></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, Aug 13, 2020 at 11:03 AM Bogdan-Andrei Iancu <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><tt><span style="font-size:10pt">I think this is irrelevant for the topic. Again, the flatstore backend creates one file for each OpenSIPS process.</span></tt><span style="font-size:10pt;font-family:"Courier New""><br>
<br>
<tt>Regards,</tt><br>
<br>
</span><u></u><u></u></p>
<pre>Bogdan-Andrei Iancu<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>OpenSIPS Founder and Developer<u></u><u></u></pre>
<pre> <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a><u></u><u></u></pre>
<pre>OpenSIPS Summit 2020 online<u></u><u></u></pre>
<pre> <a href="https://www.opensips.org/events/Summit-2020Distributed/" target="_blank">https://www.opensips.org/events/Summit-2020Distributed/</a><u></u><u></u></pre>
<div>
<p class="MsoNormal">On 8/11/20 2:50 PM, Vic Jolin wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">What I did was increase the number of process from 4 to 8. Will that somehow work?<u></u><u></u></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Aug 11, 2020, 7:44 PM Bogdan-Andrei Iancu, <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><tt><span style="font-size:10pt">Vic,</span></tt><span style="font-size:10pt;font-family:"Courier New""><br>
<br>
<tt>Note that OpenSIPS will produce one file per process, so maybe your record is in a different file....</tt><br>
<br>
<tt>Best regards,</tt><br>
<br>
</span><u></u><u></u></p>
<pre>Bogdan-Andrei Iancu<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>OpenSIPS Founder and Developer<u></u><u></u></pre>
<pre> <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a><u></u><u></u></pre>
<pre>OpenSIPS Summit 2020 online<u></u><u></u></pre>
<pre> <a href="https://www.opensips.org/events/Summit-2020Distributed/" target="_blank">https://www.opensips.org/events/Summit-2020Distributed/</a><u></u><u></u></pre>
<div>
<p class="MsoNormal">On 8/11/20 11:43 AM, Vic Jolin wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<div>
<p class="MsoNormal">Hi Bogdan-Andrei, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">The issue is just there are a few calls not being written to the flatstore. So we were missing those calls in the cdr. I saw it in the logs. But it was not written in the flatstore file<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12pt"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Tue, Aug 11, 2020, 4:15 PM Bogdan-Andrei Iancu, <<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0in 0in 0in 6pt;margin-left:4.8pt;margin-right:0in">
<div>
<p class="MsoNormal"><tt><span style="font-size:10pt">Hi Vic,</span></tt><span style="font-size:10pt;font-family:"Courier New""><br>
<br>
<tt>The files are created upon first write into them. So be sure you are looking for the files into the right directory and be sure there is an actual write operation to the file.</tt><br>
<br>
<tt>Regards,</tt><br>
<br>
</span><u></u><u></u></p>
<pre>Bogdan-Andrei Iancu<u></u><u></u></pre>
<pre><u></u> <u></u></pre>
<pre>OpenSIPS Founder and Developer<u></u><u></u></pre>
<pre> <a href="https://www.opensips-solutions.com" target="_blank">https://www.opensips-solutions.com</a><u></u><u></u></pre>
<pre>OpenSIPS Summit 2020 online<u></u><u></u></pre>
<pre> <a href="https://www.opensips.org/events/Summit-2020Distributed/" target="_blank">https://www.opensips.org/events/Summit-2020Distributed/</a><u></u><u></u></pre>
<div>
<p class="MsoNormal">On 8/5/20 7:45 PM, Vic Jolin wrote:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5pt;margin-bottom:5pt">
<div>
<p class="MsoNormal">Hello, <u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">What are the reasons why flatstore files are not being created?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Im seeing this output in a binary journal file, and not from a normal log file I have my output logs in /var/log/messages (but we do not see it coming here as well)<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">ACC: call ended: created=1596585092;call_start_time=1596585108;duration=5;ms_duration=5268;setuptime=16;method=INVITE;from_tag=13c1b24f27e408db;to_tag=ZtNe611a9391D;call_id=2a2ac4f263616c6c0015c430<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But no flatstore file created or updated<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">But there is no flatstore files created. Is this a server issue? A resource like HD write speed? or some misconfiguration?<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><br>
<br>
<u></u><u></u></p>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>Users mailing list<u></u><u></u></pre>
<pre><a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><u></u><u></u></pre>
<pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</blockquote>
</div>
</blockquote>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<p class="MsoNormal">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a><br>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</blockquote></div>