Skip to content

Commit

Permalink
lib_context: fix how we count caller/callee simultcalls
Browse files Browse the repository at this point in the history
  • Loading branch information
bloom1 committed Dec 13, 2024
1 parent eebaf66 commit 438dae1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions dialplan/asterisk/extensions_lib_context.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 438dae1

Please sign in to comment.