On Thu, Nov 28, 2019 at 10:32 AM Benoit Panizzon <[email protected]>
wrote:

> Hi Gang
>
> According to:
>
> https://wiki.asterisk.org/wiki/display/AST/Asterisk+13+Configuration_res_pjsip#Asterisk12Configuration_res_pjsip-endpoint_device_state_busy_at
>
> And endpoint should return busy if this number is reached.
>
> We have PBX Trunks registering to the Asterisk.
>
> So we want to limit the number of concurrent calls to a PBX and return
> busy, if more than the configured number of channels are in use.
>
> I set for example:
>
> device_state_busy_at=4 to limit the trunk to 4 channels so 400kbit/s
> can be assured by QOS measure.
>
> But when testing, I noticed caller don't get busy.
>
> pjsip show endpoints happily shows 5 of 4 channels in use.
>
> Do I have to query the device state from the dialplan and manually
> return busy?
>

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].

[1] https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP
[2]
https://wiki.asterisk.org/wiki/display/AST/Asterisk+17+Function_GROUP_COUNT

-- 
Joshua C. Colp
Senior Software Developer
Sangoma Technologies
Check us out at www.sangoma.com
-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to