Skip to main content

Limiting the number of calls a tenant can make

Posted by cbbs70a on Mon, 03/25/2013

All;
I'm using Thirdlane MTE 6.1.1.12 and Asterisk 1.8.11-cert10. What I want to do is limit the maximum number of calls that a tenant can make. After looking through the dial plan, I see references to this in the macro tl-dialout-base including a variable called TL_ENABLE_MAXCALLS_CHECK. However, I do not see anywhere in the dial plan where this is set. If its not set anywhere, then the dial plan will jump over the max calls test. Did I miss something here, or is this a mistake in the script?
Thanks;
Frank


Submitted by cbbs70a on Mon, 03/25/2013 Permalink

Yes, I saw that. Thank you, but it doesn't really answer my question about the actual implementation of the feature. The limit that is set under Tenant Management (maxcalls) is written in tenants.include and in the Astdb in the key /TL/TENANT/${tenant}/maxusers, but I don't see where the variable ${TL_ENABLE_MAXCALLS_CHECK} is set. If it is not set, then the dial plan will jump over the max calls test.
Regards;
Frank

Submitted by chris on Wed, 03/27/2013 Permalink

That gets set under PBX Settings -> Global Variables in Thirdlane. You should see the value written out under the globals context in extensions.conf.