ARS Route with Group Setting
Set up the ARS template and Brekeke PBX users as described below and then assign phones with the Shared Call Appearance feature enabled.
Route Template:
[General]
Route name | outbound |
Template | checked |
Group | &v8 |
Line key | checked |
Resource | &v9 |
[Patterns – OUT]
OUT – 1 | Matching patterns | Deploy patterns | |||
Priority | &v1 | From | From | ||
Max sessions | &v2 | To | sip:([0-9]{7,25})@ | To | sip:$1@&v3 |
Variable Setting:
Route Name | v1 | v2 | v3 | v8 | v9 |
1 | 90 | 1 | 192.168.200.10 | group1 | gw |
2 | 90 | -1 | 192.168.200.20 | itsp | |
3 | 100 | 1 | 192.168.200.30 | group1 | gw |
4 | 110 | 1 | 192.168.200.40 | group2 | gw |
Brekeke PBX SCA Users
User: 300
[Settings] -> [Resource map]
line/1=gw/1
line/2=gw/2
User: 301
[Settings] -> [Resource map]
line/1=gw/1
line/2=itsp/1
If user 300 makes an outbound call from shared line 1, the call will apply route “outbound*1” with resource set as “gw” and group as group1 and the call will be sent to the destination IP 192.168.200.10.
While user 300 is talking, if user 301 also makes an outbound call from shared line 1, the call will apply route “outbound*4” with the resource set as “gw” and the group as group2 and the call will be sent to the destination IP 192.168.200.40.
As explained in the above section about Max Sessions, routes in the same group use the same session counter. In this example, routes “outbound*1” and “outbound*3” with resource “gw” are both in “group1” and both routes have the [Max Sessions] variable v2 set to 1. When user 300 is making a call through route “outbound*1,” the number of sessions in group1 is 1, which will reach the [Max Sessions] in both routes “outbound*1” and “outbound*3.” Brekeke PBX will then look for the next available route with resource “gw” for user 301’s outbound call. This is route “outbound*4.”
The above example explains that the [Resource] setting is used for Brekeke PBX users to look for available routes to make outbound calls and that the [Group] setting is used to limit max sessions through the routes of both Patterns – IN and Patterns – OUT in the same group.
- Multiple groups can be set in an ARS route [Group] field with group names separated by commas.
- When a session goes though a route set with multiple groups, the session counter of the related groups will increase by 1.