Skip to content

Commit

Permalink
Merge pull request #130 from wazo-platform/fix-outbound-simultcalls
Browse files Browse the repository at this point in the history
lib_context: fix how we count caller/callee simultcalls

Reviewed-by: Charles <contact@charleslanglois.dev>
  • Loading branch information
wazo-community-zuul[bot] authored Dec 13, 2024
2 parents eebaf66 + 438dae1 commit 3bbacf1
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 3bbacf1

Please sign in to comment.