Re: [SR-Users] Max registered users

2012-05-30 Thread Vitaliy Aleksandrov
Hello, On 5/30/12 4:12 PM, Vitaliy Aleksandrov wrote: Hi all, I'm trying to find a way to get a number of the registered user locations and if it is bigger that some limit then kamailio will not save new registrations. reg_fetch_contacts() from registrar module doesn't help as it can fetc

Re: [SR-Users] Max registered users

2012-05-30 Thread Daniel-Constantin Mierla
Hello, On 5/30/12 4:12 PM, Vitaliy Aleksandrov wrote: Hi all, I'm trying to find a way to get a number of the registered user locations and if it is bigger that some limit then kamailio will not save new registrations. reg_fetch_contacts() from registrar module doesn't help as it can fetch

Re: [SR-Users] Max registered users

2012-05-30 Thread Max Mühlbronner
Hi, just curious, why do you want to do this, cluster/distributed registrations? One solution which immediately comes to my mind: just query the db(location table) for the number of registrations, and compare the results to a value defined in your opensips script. If the number of registration

[SR-Users] Max registered users

2012-05-30 Thread Vitaliy Aleksandrov
Hi all, I'm trying to find a way to get a number of the registered user locations and if it is bigger that some limit then kamailio will not save new registrations. reg_fetch_contacts() from registrar module doesn't help as it can fetch contacts only for one user. max_contacts parameter of t