DID based channel allocation

How can block the channel for incoming DID based in asterisk

What do you exactly mean by saying block the channel?

for the particular DID only 10 calls should come.more than 10 calls it should reject

Use GROUP_COUNT() function

This thread would be helpful Limit Concurrent Calls per DID using one peer in sip.conf