From 438dae13d6107f7b94fb96caa5949ea7f1358d2f Mon Sep 17 00:00:00 2001 From: Alexandre Fournier Date: Fri, 13 Dec 2024 17:19:18 -0500 Subject: [PATCH] lib_context: fix how we count caller/callee simultcalls --- dialplan/asterisk/extensions_lib_context.conf | 2 -- 1 file changed, 2 deletions(-) diff --git a/dialplan/asterisk/extensions_lib_context.conf b/dialplan/asterisk/extensions_lib_context.conf index 43d040d7..4c72327e 100644 --- a/dialplan/asterisk/extensions_lib_context.conf +++ b/dialplan/asterisk/extensions_lib_context.conf @@ -16,13 +16,11 @@ same = n,GotoIf($[${ARG1}]?:end) same = n,GotoIf($["${ARG1}" == "-1"]?no_caller) same = n,GotoIf($["${GROUP_COUNT(${ARG1}@WAZO_USER)}" >= "${WAZO_CALLER_SIMULTCALLS}"]?caller_full) same = n,Set(GROUP(WAZO_USER)=${ARG1}) -same = n,Set(OUTBOUND_GROUP_ONCE=${ARG1}@WAZO_USER) same = n(no_caller),GotoIf($[${EXISTS(${ARG2})}]?:end) same = n,NoOp(Counting calls for destination ${ARG2}@WAZO_USER) same = n,GotoIf($["${GROUP_COUNT(${ARG2}@WAZO_USER)}" >= "${WAZO_CALLEE_SIMULTCALLS}"]?dest_full) -same = n,Set(GROUP(WAZO_USER)=${ARG2}) same = n,Set(OUTBOUND_GROUP_ONCE=${ARG2}@WAZO_USER) same = n(end),Return(0)