In addition to the standard configuration file options, per-endpoint configuration settings can be specified in the config file. The syntax is as follows:
[EP::ALIAS]
Key Name=Value String
ALIAS
is replaced with an actual alias for an endpoint the settings
should apply to. Currently, the following options are recognized:
Capacity=10
-1
Call capacity for an endpoint. No more than Capacity
concurrent
calls will be sent to this endpoint. In case of gateways, if more than one
gateway matches a dialed number, a call will be sent to the first available
gateway (that has available capacity).
PrefixCapacities=^0049:=10,^(0044|0045):=20
N/A
Limit the capacity for certain prefixes. Regular expressions can be used to specify the prefix and specify a combined capacity for a group of prefixes. For a gateway to be considered available a.) the prefix must have capacity left and b.) the total gateway capacity (see above) may not be reached.
GatewayPriority=1
1
Apply only to gateways. Allow priority based routing in case, when more
than one gateway matches a dialed number. The smaller value the higher priority
is assigned to a gateway. A call is routed to the first available gateway
(that has available capacity) with the highest priority (the smallest
GatewayPriority
values). In case whe gateway priority contradicts prefix priority (see section
[RasSrv::GWPrefixes])
for details) prefix one has the preference.
GatewayPrefixes=0048,0049:=2,0044
N/A
Additional prefixes for this gateway. Apply only to gateways.
Special characters .
and !
can be used here to match any digit
and disable the prefix.
You may use the := syntax to set a prefix priority in the same manner as in
[RasSrv::GWPrefixes] section. If no priority is set explicitely for a Prefix, the gateway priority is used.
CalledTypeOfNumber=1
N/A
Sets Called-Party-Number type of number to the specified value for calls sent to this endpoint (0 - UnknownType, 1 - InternationalType, 2 - NationalType, 3 - NetworkSpecificType, 4 - SubscriberType, 6 - AbbreviatedType, 7 - ReservedType).
CallingTypeOfNumber=1
N/A
Sets Calling-Party-Number type of number to the specified value for calls sent to this endpoint (0 - UnknownType, 1 - InternationalType, 2 - NationalType, 3 - NetworkSpecificType, 4 - SubscriberType, 6 - AbbreviatedType, 7 - ReservedType).
Proxy=1
0
TranslateReceivedQ931Cause=17:=34
N/A
TranslateSentQ931Cause=21:=34,27:=34
N/A
Example:
[RasSrv::PermanentEndpoints]
192.168.1.1=gw1;48
192.168.1.2=gw2;48,!4850,!4860,!4869,!4888
[EP::gw1]
Capacity=60
GatewayPriority=1
[EP::gw2]
Capacity=30
GatewayPriority=2
In this example, calls will be sent to the gateway gw1
until its
capacity is fully utilized (60 concurrent calls) and then to the gateway gw2
.