<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
p
        {mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:595.3pt 841.9pt;
        margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=PT-BR link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>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 &#8216;automagically&#8217;
decremented, but in the meantime the user could not receive calls, even if it
is &#8216;on-hook&#8217;.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'>Edson.<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span lang=EN-US
style='font-size:10.0pt;font-family:Arial;color:navy'><o:p>&nbsp;</o:p></span></font></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span lang=EN-US style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span lang=EN-US
style='font-size:10.0pt;font-family:Tahoma;font-weight:bold'>From:</span></font></b><font
size=2 face=Tahoma><span lang=EN-US style='font-size:10.0pt;font-family:Tahoma'>
users-bounces@openser.org [mailto:users-bounces@openser.org] <b><span
style='font-weight:bold'>On Behalf Of </span></b>Jayesh Nambiar<br>
<b><span style='font-weight:bold'>Sent:</span></b> terça-feira, 9 de maio de
2006 16:38<br>
<b><span style='font-weight:bold'>To:</span></b> Bogdan-Andrei Iancu<br>
<b><span style='font-weight:bold'>Cc:</span></b> openser<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Users] limiting
number of calls</span></font><span lang=EN-US><o:p></o:p></span></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Hi bogdan,<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>Thanks for the reply...<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>My requirement is as follows:<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- I want to limit the number of incoming calls per user can receive.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- I think, it is possible using the avpops module. But can someone
please give me a hint on where to start to implement this.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- 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.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- Is it possible in openser script to somehow set a counter.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- for eg. the counter will be set to&nbsp;2 when any user receives a
call and it will be decremented when the same user receives a call again, and
when&nbsp;the count for that user is 0, he will receive no more calls.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- This counter&nbsp;has to be enabled on a per user basis.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- Please let me know if this is possible.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>- I need to achieve this because&nbsp;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.<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>thanks in advance......<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'>jayesh.&nbsp;<o:p></o:p></span></font></p>

</div>

<div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
<b><i><span style='font-weight:bold;font-style:italic'>Bogdan-Andrei Iancu
&lt;bogdan@voice-system.ro&gt;</span></i></b> wrote:<o:p></o:p></span></font></p>

</div>

<blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 4.0pt;
margin-left:3.75pt;margin-top:5.0pt;margin-bottom:5.0pt'>

<p class=MsoNormal style='margin-bottom:12.0pt'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>Hi,<br>
<br>
the dialog module functionality is yet simple - it can monitor the call <br>
(catching BYEs and other sequential requests); if no BYE is received, <br>
the dialog will expire after a defined timeout.<br>
<br>
it can count the number of calls, but globally and not per user.<br>
<br>
regards,<br>
bogdan<br>
<br>
Jayesh Nambiar wrote:<br>
<br>
&gt; Hi,<br>
&gt; how can the dialog module help prevent the issue of missing BYEs?? Is <br>
&gt; dialog module capable of monitoring the sessions going on in openser.<br>
&gt; I also wanted to ask that if i try limiting the no. of calls that per <br>
&gt; user can receicve how do i match the invite with the byes.<br>
&gt; for eg: I may allow some users to have 5 incoming calls and other 2 <br>
&gt; and so on. So, I'll have to store that value in the DB table <br>
&gt; somewhere, and when a user receives a call, this column will be <br>
&gt; checked and the value should be decremented when he receives the <br>
&gt; invite message.<br>
&gt; But how do i again increment the value, when the user receives bye. I <br>
&gt; mean how do i write the logic to match the invite and byes so as to <br>
&gt; increment and decrement the simultaneous calls value.<br>
&gt; <br>
&gt; please help me regarding this....<br>
&gt; <br>
&gt; thanks in advance.<br>
&gt; <br>
&gt; jayesh.<br>
&gt;<br>
&gt; ------------------------------------------------------------------------<br>
&gt; Yahoo! India Answers: Share what you know. Learn something new. Click <br>
&gt; here <br>
&gt; <br>
<HTTP: in.answers.yahoo.com _x002a_http: mailanswers in mail us.rd.yahoo.com>&gt;<br>
&gt;------------------------------------------------------------------------<br>
&gt;<br>
&gt;_______________________________________________<br>
&gt;Users mailing list<br>
&gt;Users@openser.org<br>
&gt;http://openser.org/cgi-bin/mailman/listinfo/users<br>
&gt; <br>
&gt;<o:p></o:p></span></font></p>

</blockquote>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p>&nbsp;</o:p></span></font></p>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=1 width="100%" align=center>

</span></font></div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'></hr>Yahoo! India Answers: Share what you know. Learn something new. <a
href="http://us.rd.yahoo.com/mail/in/mailcricket/*http:/in.answers.yahoo.com">Click
here</a><br>
Send instant messages to your online friends - <a
href="http://messenger.yahoo.com/download.php;_ylt=Ah5_.LTcbbJtYrNKnfM5e6xwMMIF">NOW</a><o:p></o:p></span></font></p>

</div>

</div>

</body>

</html>