Queue position limit

i want option in asterisk queue for limit queue position limit, for more than 20 people in queue would play same file. example " More than 20 "

Set a maximum length for the queue and check QUEUESTATUS to distinguish the failure from, say, a timeout, or no members available, before calling pllayback.