Sophie

Sophie

distrib > Mandriva > 2010.1 > x86_64 > media > contrib-release > by-pkgid > aa0a0c745bf74bd0c70c4944117a40d3 > files > 162

gnugk-2.3.1-1mdv2010.1.x86_64.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>The GNU Gatekeeper: Per-Endpoint Configuration</TITLE>
 <LINK HREF="manual-12.html" REL=next>
 <LINK HREF="manual-10.html" REL=previous>
 <LINK HREF="manual.html#toc11" REL=contents>
</HEAD>
<BODY>
<A HREF="manual-12.html">Next</A>
<A HREF="manual-10.html">Previous</A>
<A HREF="manual.html#toc11">Contents</A>
<HR>
<H2><A NAME="epconfig"></A> <A NAME="s11">11.</A> <A HREF="manual.html#toc11">Per-Endpoint Configuration</A></H2>

<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:</P>

<H2><A NAME="ss11.1">11.1</A> <A HREF="manual.html#toc11.1">Section [EP::...]</A>
</H2>

<P>
<BLOCKQUOTE><CODE>
<PRE>
[EP::ALIAS]
Key Name=Value String
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P><CODE>ALIAS</CODE> should be replaced with the actual alias for the endpoint the settings
should apply to. Currently, the following options are recognized:</P>
<P>
<UL>
<LI><CODE>Capacity=10</CODE><BR>
Default: <CODE>-1</CODE><BR>
<P>Call capacity for an endpoint. No more than <CODE>Capacity</CODE> 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 which has available capacity.</P>

</LI>
<LI><CODE>PrefixCapacities=^0049:=10,^(0044|0045):=20</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>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) must not be exceeded.</P>

</LI>
<LI><CODE>GatewayPriority=1</CODE><BR>
Default: <CODE>1</CODE><BR>
<P>Applicable only to gateways. Allows priority based routing when more
than one gateway matches a dialed number. Lower values indicate a higher gateway priority.
A call is routed to the first available gateway
(that has available capacity) with the highest priority (the lowest
<CODE>GatewayPriority</CODE> values). In case the gateway priority contradicts prefix priority (see section 
<A HREF="manual-7.html#gwprefixes">[RasSrv::GWPrefixes]</A>)  
for details), prefix priority will take precedence.</P>

</LI>
<LI><CODE>GatewayPrefixes=0048,0049:=2,0044</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>Additional prefixes for this gateway. Applies only to gateways.  Special
characters <CODE>.</CODE> and <CODE>!</CODE> can be used to match any digit or to disable
the prefix.  You may use the := syntax to set a prefix priority in the same
manner as in 
<A HREF="manual-7.html#gwprefixes">[RasSrv::GWPrefixes]</A> section.  If
no priority is explicitly configured for a prefix, then the gateway priority
is used.</P>


</LI>
<LI><CODE>CalledTypeOfNumber=1</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>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).</P>

</LI>
<LI><CODE>CallingTypeOfNumber=1</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>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).</P>

</LI>
<LI><CODE>CalledPlanOfNumber=1</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>Sets Called-Numbering-Plan of number to the specified value
for calls sent to this endpoint
(0 - UnknownType, 1 - ISDN, 3 - X.121 numbering, 4 - Telex, 8 - National standard, 9 - private numbering).</P>

</LI>
<LI><CODE>CallingPlanOfNumber=1</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>Sets Calling-Numbering-Plan of number to the specified value
for calls sent to this endpoint
(0 - UnknownType, 1 - ISDN, 3 - X.121 numbering, 4 - Telex, 8 - National standard, 9 - private numbering).</P>

</LI>
<LI><CODE>Proxy=1</CODE><BR>
Default: <CODE>0</CODE><BR>
<P>Enables/disables proxying calls sent to this endpoint (0 - do not
change global proxy settings, 1 - force proxy mode, 2 - disable proxy mode).</P>

</LI>
<LI><CODE>TranslateReceivedQ931Cause=17:=34</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>Translate received cause codes in ReleaseComplete messages from this endpoint.
In the above example code 17 (User busy) will be translated into cause code 34 (No circuit/channel available).</P>

</LI>
<LI><CODE>TranslateSentQ931Cause=21:=34,27:=34</CODE><BR>
Default: <CODE>N/A</CODE><BR>
<P>Translate cause codes in ReleaseComplete messages sent out to this endpoint.
In the above example code 21 and 27 will be translated into cause code 34, because this particular gateway might deal with error code 34 better than with others.</P>

</LI>
<LI><CODE>DisableH46018=1</CODE><BR>
Default: <CODE>0</CODE><BR>
<P>Disable H.460.18/.19 for this endpoint.</P>

</LI>
</UL>
</P>
<P>Example:</P>
<P>
<BLOCKQUOTE><CODE>
<PRE>
[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
</PRE>
</CODE></BLOCKQUOTE>
</P>
<P>In this example, calls will be sent to the gateway <CODE>gw1</CODE> until its
capacity is fully utilized (60 concurrent calls) and then to the gateway <CODE>gw2</CODE>.</P>

<HR>
<A HREF="manual-12.html">Next</A>
<A HREF="manual-10.html">Previous</A>
<A HREF="manual.html#toc11">Contents</A>
</BODY>
</HTML>