<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Le 08/11/2017 à 20:35, John Kiniston a écrit :<br>
<blockquote type="cite"
cite="mid:CAFJQOGf2ES4e6SVzfQqtm1eyZN2FvnD69EXRcPvDpocJxyG=Rg@mail.gmail.com">
<div dir="ltr">The easiest thing to do might be to limit the peer
to 11 calls in your sip.conf or pjsip.conf and then use the
GROUP and GROUP_COUNT functions to limit the extension to 10
concurrent calls, Then when you get call #11 who is high
priority you can allow it through or otherwise return busy.<br>
<br>
<a
href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_GROUP"
moz-do-not-send="true">https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_GROUP</a><br>
<br>
<a
href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_GROUP_COUNT"
moz-do-not-send="true">https://wiki.asterisk.org/wiki/display/AST/Asterisk+15+Function_GROUP_COUNT</a><br>
</div>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Nov 7, 2017 at 4:21 AM, Jean
Aunis <span dir="ltr"><<a
href="mailto:jean.aunis@prescom.fr" target="_blank"
moz-do-not-send="true">jean.aunis@prescom.fr</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">Hello,<br>
<br>
Has anyone already implemented some sort of call preemption
in Asterisk ? I am trying to achieve something like this :<br>
<br>
- I want to limit the number of calls on a given SIP peer to
10<br>
<br>
- on the other hand, some calls have higher priority than
others<br>
<br>
- when the ceiling of 10 calls is reached and a call with a
high priority is attempted, I would like to drop a call with
a lower priority to let the new one go through<br>
<br>
Monitoring the ceiling is easy with channel groups, but it
is does not help in implementing call preemption since there
is no function to retrieve all the channels of a given
group.<br>
<br>
Does anyone have an idea ?<br>
<br>
Regards<span class="HOEnZb"><font color="#888888"><br>
<br>
Jean Aunis<br>
<br>
</font></span><br>
</blockquote>
</div>
</div>
</blockquote>
Thank you for your answer. I'm already using GROUP and GROUP_COUNT
to limit the amount of calls. The problem is that I do not want to
drop the last incoming call, I want to drop one of the calls
previously set up in the same group, in order to leave room to the
new call. Unfortunately, it seems here is no function to list all
the channels being part of a given group.<br>
</body>
</html>