1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62
|
<sect>Per-Endpoint Configuration
<label id="epconfig">
<p>
In addition to the standard configuration file options, per-endpoint configuration
settings can be specified in the config file. The syntax is as follows:
<sect1>Section [EP::...]
<p>
<tscreen><verb>
[EP::ALIAS]
Key Name=Value String
</verb></tscreen>
<tt/ALIAS/ is replaced with an actual alias for an endpoint the settings
should apply to. Currently, the following options are recognized:
<itemize>
<item><tt/Capacity=10/<newline>
Default: <tt/-1/
<p>
Call capacity for an endpoint. No more than <tt/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).
<item><tt/GatewayPriority=1/<newline>
Default: <tt/1/
<p>
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
<tt/GatewayPriority/ values).
<item><tt/GatewayPrefixes=0048,0049,0044/<newline>
Default: <tt>N/A</tt>
<p>
Additional prefixes for this gateway. Apply only to gateways.
Special characters <tt/./ and <tt/!/ can be used here to match any digit
and disable the prefix.
</itemize>
Example:
<tscreen><verb>
[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
</verb></tscreen>
In this example, calls will be sent to the gateway <tt/gw1/ until its
capacity is fully utilized (60 concurrent calls) and then to the gateway <tt/gw2/.
|