Limit inbound calls per DID

hi

this is probably an asterisk question, but i was wondering if there’s a way to limit inbound calls per DID. how would i get this to work. I have multiple DIDs that i’d like to limit concurrent calls to.

Possible but requires custom code. You would have to have a context to receive all inbound calls, and then use the GROUP() and GROUP_COUNT() Asterisk functions to keep track of the calls.

You could potentially direct the DID to a queue with a max # of callers in queue. Failover destination of the queue could be disconnect?