<br><br><div class="gmail_quote">2008/11/4 Igor Zamocky <span dir="ltr">&lt;<a href="mailto:asterix@ponozky.sk">asterix@ponozky.sk</a>&gt;</span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">






<div>

<p><br></p>
<p>Did You tried&nbsp;<a href="http://www.voip-info.org/wiki/view/Asterisk+sip+limitonpeers" target="_blank">http://www.voip-info.org/wiki/view/Asterisk+sip+limitonpeers</a>&nbsp;?</p></div></blockquote><div>I didn&#39;t.<br>Now I did and&nbsp; it&#39;s working the way I wanted.<br>
<br>Meanwhile, I had found a (complex) workaround using GROUP, GROUP_COUNT and SIPPEER but limitonpeers is much more concise.<br><br>Thanks a lot. <br></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><p></p><div><div></div><div class="Wj3C7c">
<p><br></p>
<div><table style="background-color: rgb(255, 255, 255);" border="0" cellpadding="1" cellspacing="2">
<tbody><tr valign="top">
<td style="background-color: rgb(0, 0, 255);" width="1"><br>
</td>
<td width="1168">
<p><span>Hi,</span></p>
<p><br></p>
<p><span>In this thread&nbsp;</span><a href="http://lists.digium.com/pipermail/asterisk-users/2008-October/219592.html" target="_blank">http://lists.digium.com/pipermail/asterisk-users/2008-October/219592.html</a><span>&nbsp;, I wondered whether SIPPEER curcalls was working.</span></p>

<p><br></p>
<p><span>I could test this anew today. Here are my findings :</span></p>
<p><br></p>
<p><span>Alice, Bob and Carol ar all using SIP Phones.</span></p>
<p><br></p>
<p><span>Whenever Alice is calling Bob,</span></p>
<p><span>- if Carol is calling Alice, SIPPEER(Alice:curcalls) equals 0</span></p>
<p><span>- if Carol is calling Bob, SIPPEER(Bob:curcalls) equals 1</span></p>
<p><br></p>
<p><span>(Whenever Bob &nbsp;is calling Alice,</span></p>
<p><span>- if Carol is calling Alice, SIPPEER(Alice:curcalls) equals 1</span></p>
<p><span>- if Carol is calling Bob, SIPPEER(Bob:curcalls) equals 0)</span></p>
<p><br></p>
<p><span>Would you say it&#39;s expected ?</span></p>
<p><span>I would say SIPPEER:curcalls should include both inbound and outbound calls.</span></p>
<p><br></p>
<p><span>I also added a fourth Daniel SIP Phone.</span></p>
<p><span>Whenever Alice is calling Bob and Daniel is calling Alice,&nbsp;</span></p>
<p><br></p>
<p><span>SIPPEER(Alice:curcalls) equals 1 (I would wait 2)</span></p>
<p><span>SIPPEER(Bob:curcalls) equals 1 (I would wait 1)</span></p>
<p><span>SIPPEER(Daniel:curcalls) equals 0 (I would wait 0)</span></p>
<p><br></p>
<p><span>Regards</span></p>
</td>
</tr>
</tbody></table>
</div>

</div></div></div>


<br>_______________________________________________<br>
-- Bandwidth and Colocation Provided by <a href="http://www.api-digital.com" target="_blank">http://www.api-digital.com</a> --<br>
<br>
asterisk-users mailing list<br>
To UNSUBSCRIBE or update options visit:<br>
 &nbsp; <a href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">http://lists.digium.com/mailman/listinfo/asterisk-users</a><br></blockquote></div><br>