[Users] limiting number of calls

Edson 4lists at gmail.com
Wed May 10 00:53:27 CEST 2006


Just consider the scenario where some connections/calls has no BYE (say
because one of the UA fails, etc). This scenario illustrates the miscount
opportunity. This can be avoided only if You count the RTP streams on a
RTPProxy configuration. In the case of such a UA fail, the sessions runs on
a time-out and after that the counter would be ‘automagically’ decremented,
but in the meantime the user could not receive calls, even if it is
‘on-hook’.

 

Edson.

 

  _____  

From: users-bounces at openser.org [mailto:users-bounces at openser.org] On Behalf
Of Jayesh Nambiar
Sent: terça-feira, 9 de maio de 2006 16:38
To: Bogdan-Andrei Iancu
Cc: openser
Subject: Re: [Users] limiting number of calls

 

Hi bogdan,

Thanks for the reply...

My requirement is as follows:

- I want to limit the number of incoming calls per user can receive.

- I think, it is possible using the avpops module. But can someone please
give me a hint on where to start to implement this.

- Now since the dialogue module is out, I dont think there wud be a problem
of missing byes as it will terminate the session after a certain timeout.

- Is it possible in openser script to somehow set a counter.

- for eg. the counter will be set to 2 when any user receives a call and it
will be decremented when the same user receives a call again, and when the
count for that user is 0, he will receive no more calls.

- This counter has to be enabled on a per user basis.

- Please let me know if this is possible.

- I need to achieve this because otherwise any user can have an 8 port or 24
port gateway registered with my openser and receive so many calls at the
same time. I want to avoid this happening.

 

thanks in advance......

jayesh. 


Bogdan-Andrei Iancu <bogdan at voice-system.ro> wrote:

Hi,

the dialog module functionality is yet simple - it can monitor the call 
(catching BYEs and other sequential requests); if no BYE is received, 
the dialog will expire after a defined timeout.

it can count the number of calls, but globally and not per user.

regards,
bogdan

Jayesh Nambiar wrote:

> Hi,
> how can the dialog module help prevent the issue of missing BYEs?? Is 
> dialog module capable of monitoring the sessions going on in openser.
> I also wanted to ask that if i try limiting the no. of calls that per 
> user can receicve how do i match the invite with the byes.
> for eg: I may allow some users to have 5 incoming calls and other 2 
> and so on. So, I'll have to store that value in the DB table 
> somewhere, and when a user receives a call, this column will be 
> checked and the value should be decremented when he receives the 
> invite message.
> But how do i again increment the value, when the user receives bye. I 
> mean how do i write the logic to match the invite and byes so as to 
> increment and decrement the simultaneous calls value.
> 
> please help me regarding this....
> 
> thanks in advance.
> 
> jayesh.
>
> ------------------------------------------------------------------------
> Yahoo! India Answers: Share what you know. Learn something new. Click 
> here 
> 
>
>------------------------------------------------------------------------
>
>_______________________________________________
>Users mailing list
>Users at openser.org
>http://openser.org/cgi-bin/mailman/listinfo/users
> 
>

 

  _____  


Yahoo! India Answers: Share what you know. Learn something new. Click
<http://us.rd.yahoo.com/mail/in/mailcricket/*http:/in.answers.yahoo.com>
here
Send instant messages to your online friends - NOW
<http://messenger.yahoo.com/download.php;_ylt=Ah5_.LTcbbJtYrNKnfM5e6xwMMIF> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.kamailio.org/pipermail/users/attachments/20060509/629c81aa/attachment.htm 


More information about the Users mailing list