For now, <br>I add quota on opensips.subscriber table;<br>I just change in opensips.cfg this case 1 part:<br><br> switch ($retcode) {<br> case 2:<br> # Call with no limit<br> xlog("L_INFO", "Call control: no limit\n");<br>
case 1:<br> # Call with a limit under callcontrol management (either prepaid or postpaid)<br> xlog("L_INFO", "Call control: limit under callcontrol management \n");<br>
if (db_is_user_in("From","quota")) {<br> sl_send_reply("403", "Call denied. Monthly Quota is spent.");<br> xlog("L_INFO","Quota atteint");<br>
exit;<br> } else { <br> xlog("L_INFO","Quota pas encore atteint");<br> }<br> break;<br><br>But the opensips.grp table is still empty, same for cdrtool.quota_usage table.<br>
Why the quotaCheck.php cron is not doing his job?<br><br><br><div class="gmail_quote">On Tue, Feb 2, 2010 at 11:53 PM, osiris123d <span dir="ltr"><<a href="mailto:duane.larson@gmail.com">duane.larson@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;"><br>
Haven't worked with Quota yet, but perhaps this will get you started down the<br>
right path<br>
<br>
Look at the "bye_on_timeout_flag" modparam in Dialog module<br>
<a href="http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id" target="_blank">http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id</a><br>
<br>
<br>
Heard about the "bye_on_timeout_flag" on this post<br>
<a href="http://lists.opensips.org/pipermail/users/2008-October/001116.html" target="_blank">http://lists.opensips.org/pipermail/users/2008-October/001116.html</a><br>
<font color="#888888">--<br>
View this message in context: <a href="http://n2.nabble.com/Quota-system-problem-tp4502804p4503572.html" target="_blank">http://n2.nabble.com/Quota-system-problem-tp4502804p4503572.html</a><br>
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.<br>
<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" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><br>
</font></blockquote></div><br><br clear="all"><br>-- <br>Peers<br>