<p dir="ltr">Use database triggers for that.</p>
<div class="gmail_quote">On Oct 1, 2015 7:44 AM, "Rodrigo Pimenta Carvalho" <<a href="mailto:pimenta@inatel.br">pimenta@inatel.br</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p><br>
</p>
<p><br>
</p>
<p>Dear OpenSIPS-users,</p>
<p><br>
</p>
<p>A requirement of my current project says that the list of registered calls, from table acc, must have no more than X records. So, I need an way of controlling how many records can be kept in acc table.</p>
<p><br>
</p>
<p>Is there some script code that allows me to limit the maximum number of records in acc table and missed_calls too? By the way, when a call is created, but the table acc has the maximum allowed number of records, it should delete the old data record and keep the
new one.</p>
<p><br>
</p>
<p>Any hint will be very helpful!</p>
<p><br>
</p>
<p>Best regards.</p>
<p> </p>
<div>
<div name="divtagdefaultwrapper">
<div><font size="2">
<div>RODRIGO PIMENTA CARVALHO<br>
Inatel Competence Center<br>
Software<br>
Ph: <a href="tel:%2B55%2035%203471%209200" value="+553534719200" target="_blank">+55 35 3471 9200</a> RAMAL 979<br>
</div>
</font></div>
</div>
</div>
</div>
</div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opensips.org">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>
<br></blockquote></div>