<div dir="ltr"><div dir="ltr">On Thu, Nov 28, 2019 at 10:32 AM Benoit Panizzon <<a href="mailto:benoit.panizzon@imp.ch">benoit.panizzon@imp.ch</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hi Gang<br>
<br>
According to:<br>
<a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip#Asterisk12Configuration_res_pjsip-endpoint_device_state_busy_at" rel="noreferrer" target="_blank">https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip#Asterisk12Configuration_res_pjsip-endpoint_device_state_busy_at</a><br>
<br>
And endpoint should return busy if this number is reached.<br>
<br>
We have PBX Trunks registering to the Asterisk.<br>
<br>
So we want to limit the number of concurrent calls to a PBX and return<br>
busy, if more than the configured number of channels are in use.<br>
<br>
I set for example:<br>
<br>
device_state_busy_at=4 to limit the trunk to 4 channels so 400kbit/s<br>
can be assured by QOS measure.<br>
<br>
But when testing, I noticed caller don't get busy.<br>
<br>
pjsip show endpoints happily shows 5 of 4 channels in use.<br>
<br>
Do I have to query the device state from the dialplan and manually<br>
return busy?<br></blockquote><div><br></div><div>The option strictly controls device state. Any enforcement of a limit for calling does not exist, and is up to you to do using various methods. Device state could be queried and used, or GROUP[1] and GROUP_COUNT[2]. </div></div><div><br></div>[1] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP">https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP</a><div>[2] <a href="https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP_COUNT">https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP_COUNT</a><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div style="font-family:tahoma,sans-serif"><font color="#073763">Joshua C. Colp</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Senior Software Developer</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Sangoma Technologies</font></div><div style="font-family:tahoma,sans-serif"><font color="#073763">Check us out at</font> <a href="http://www.sangoma.com/" style="color:rgb(17,85,204)" target="_blank">www.sangoma.com</a></div></div></div></div></div></div></div></div></div></div></div>