Limiting number of calls on SIP/IAX Channnel

Anyone have any ideas on how to limit the number of active calls on a given sip/IAX channel?



if you’re using AAH, it’s easy, there’s a field in the trunk definition. i assume that sets some variable somewhere, but i don’t have access to my AAH right now so i can’t check.