i want to configure the max concurrend call feature on a tenant, in the tenant settings i have set this to 2, but it doesnt seem to have any effect when i try to place more then 2 calls, the inbound context seems to be like this
exten => 1234,1,Set(DIALED_PUBLIC_NUMBER=${EXTEN})
exten => 1234,2,Set(DIALED_NUMBER=${EXTEN})
exten => 1234,3,Set(status=${DB(TL/TENANT/Tenant_name/status)})
exten => 1234,4,GotoIf($["${status}" != "0"]?7)
exten => 1234,5,Playback(ss-noservice)
exten => 1234,6,Congestion
exten => 1234,7,GotoIf($["${TL_ENABLE_MAXCALLS_CHECK}" != "1"]?15)
exten => 1234,8,Set(MAXCALLS=${DB(TL/TENANT/Tenant_name/maxcalls)})
exten => 1234,9,GotoIf($["${MAXCALLS}" = ""]?15)
exten => 1234,10,Set(GROUP(callpaths)=Tenant_name)
exten => 1234,11,NoOp(GROUP_COUNT = ${GROUP_COUNT(Tenant_name@callpaths)})
exten => 1234,12,GotoIf($[${GROUP_COUNT(Tenant_name@callpaths)} > ${MAXCALLS}]?13:15)
exten => 1234,13,Playback(ss-noservice)
exten => 1234,14,Hangup
exten => 1234,15,GotoIfTime(*,*,*,*?from-outside-1234-Tenant_name,${EXTEN},1)
when i look in de console it seems like when the incoming calls gets ad "exten => 1234,7,GotoIf($["${TL_ENABLE_MAXCALLS_CHECK}" != "1"]?15)" it goes to rule number 15, so it skippes the maxcalls check, where do you edit the setting that it checks for max concurrend calls
PBX Settings -> Global Variables
if you upgraded from an older MTE before the feature existed, the global variable wont be present so add that variable and set it to 1