[OpenSIPS-Users] Limit calls over IP between Opensips Servers
Bogdan-Andrei Iancu
bogdan at opensips.org
Thu Nov 29 18:33:59 CET 2012
Hi Bakko,
I suggest to create a share dialog profile (see
http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id293598 and
use the "s" flag in combination with cachedb_url -
http://www.opensips.org/html/docs/modules/1.8.x/dialog.html#id293718).
Configure this profile on both servers (pointing to same Redis server)
and the profile will be shared between the 2 servers.
Where to place the upper limit, up to you - can be hardcoded in script,
can be loaded from DB at startup time, can be fetched also from redis,
can be a shared global variable in script.
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 11/28/2012 08:59 PM, Bakko wrote:
> Hello list,
>
> I'm trying to limit outbound numbers calls over client IP
>
> I'm using Redis Cluster between two opensips servers to share the
> numbers of calls.
>
> All work fine. I can see on Redis server the current calls of each
> client.
>
> The only "problem" is I don't know where put the max numbers of calls
> to compare two numbers (max calls permitted and current calls).
>
> Can I create a new table on the Opensips database whit two record like
> client IP and maxcalls an then query the table with AVPOPS module?
>
> Thank you
>
> Regards
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
More information about the Users
mailing list