Quota system problem

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Quota system problem

Pedersen R.
Hi all,

I installed Opensips 1.6 + CDRTool version 6.9 and I'm not able to setup quota for postpaid users.        I added the quota column in opensips.subscriber table. And after what else to setup?
What is the change on opensips.cfg ?
Is there any complete howto (tutorial) for quota/postpaid system?
Can anyone help me??


--
Peers

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Quota system problem

osiris123d
Haven't worked with Quota yet, but perhaps this will get you started down the right path

Look at the "bye_on_timeout_flag" modparam in Dialog module
http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id


Heard about the "bye_on_timeout_flag" on this post
http://lists.opensips.org/pipermail/users/2008-October/001116.html
Reply | Threaded
Open this post in threaded view
|

Re: Quota system problem

Pedersen R.
For now,
I add quota on opensips.subscriber table;
I just change in opensips.cfg this case 1 part:

        switch ($retcode) {
        case 2:
            # Call with no limit
                        xlog("L_INFO", "Call control: no limit\n");
        case 1:
            # Call with a limit under callcontrol management (either prepaid or postpaid)
                        xlog("L_INFO", "Call control: limit under callcontrol management \n");
                if (db_is_user_in("From","quota")) {
                        sl_send_reply("403", "Call denied. Monthly Quota is spent.");
                        xlog("L_INFO","Quota atteint");
                        exit;
                } else {
                    xlog("L_INFO","Quota pas encore atteint");
                }
            break;

But the opensips.grp table is still empty, same for cdrtool.quota_usage table.
Why the quotaCheck.php cron is not doing his job?


On Tue, Feb 2, 2010 at 11:53 PM, osiris123d <[hidden email]> wrote:

Haven't worked with Quota yet, but perhaps this will get you started down the
right path

Look at the "bye_on_timeout_flag" modparam in Dialog module
http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id


Heard about the "bye_on_timeout_flag" on this post
http://lists.opensips.org/pipermail/users/2008-October/001116.html
--
View this message in context: http://n2.nabble.com/Quota-system-problem-tp4502804p4503572.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Peers

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Quota system problem

Pedersen R.
Which part of cdrtool script has to update the column cost of quota_usage ??
The table quota_usage is unchanged.

Till now, I don't have quota working

Any idea?


On Tue, Feb 2, 2010 at 11:53 PM, osiris123d <[hidden email]> wrote:

Haven't worked with Quota yet, but perhaps this will get you started down the
right path

Look at the "bye_on_timeout_flag" modparam in Dialog module
http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id


Heard about the "bye_on_timeout_flag" on this post
http://lists.opensips.org/pipermail/users/2008-October/001116.html
--
View this message in context: http://n2.nabble.com/Quota-system-problem-tp4502804p4503572.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Peers




--
Peers

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users
Reply | Threaded
Open this post in threaded view
|

Re: Quota system problem

Pedersen R.
My problem is that the function below is not returning that the call is from local:

   function isCallerLocal() {
        if (in_array($this->aNumberDomain,array_keys($this->CDRS->localDomains))) {
            $this->CallerIsLocal=true;
        }
    }

Even if  $this->aNumberDomain has the good local domain from table opensips.domain.

I need help!!!


On Wed, Feb 24, 2010 at 3:32 PM, Pedersen R. <[hidden email]> wrote:
Which part of cdrtool script has to update the column cost of quota_usage ??
The table quota_usage is unchanged.

Till now, I don't have quota working

Any idea?



On Tue, Feb 2, 2010 at 11:53 PM, osiris123d <[hidden email]> wrote:

Haven't worked with Quota yet, but perhaps this will get you started down the
right path

Look at the "bye_on_timeout_flag" modparam in Dialog module
http://www.opensips.org/html/docs/modules/devel/dialog.html#bye-on-timeout-flag-id


Heard about the "bye_on_timeout_flag" on this post
http://lists.opensips.org/pipermail/users/2008-October/001116.html
--
View this message in context: http://n2.nabble.com/Quota-system-problem-tp4502804p4503572.html
Sent from the OpenSIPS - Users mailing list archive at Nabble.com.

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users



--
Peers




--
Peers



--
Peers

_______________________________________________
Users mailing list
[hidden email]
http://lists.opensips.org/cgi-bin/mailman/listinfo/users