I was wondering if the OP is still around, as I was thinking of doing something similar, but having a few different parameters:
- Rather than have the DID group determine the number of channels, use the existing incominglimit field to set the channel limit. Since incoming limit is deprecated in asterisk 1.6+, and the value exists in the a2b db, may as well use it for something useful.
- Rather than limiting the channels per DID, I would limit the channels either per SIP registration (using the incoming limit), This would allow a bit more flexibility, when having sip trunk customers that may want 20 trunks. We may have a customer with 20 DID's but only want 8 channels.
Carlos.
|