📄 ch27.htm
字号:
the calling card entry data. </td>
</tr>
<tr>
<td WIDTH="199"><tt><font FACE="Courier"><InsertAreaCode></font></tt> </td>
<td WIDTH="391">This entry must be set to 1 or 0. If set to 1, the area code will be used
when placing calls to phone addresses that have the same area code and have a dialing
prefix that appears in the <tt><font FACE="Courier"><TollPrefixes></font></tt> entry
for this location (see the following description). </td>
</tr>
<tr>
<td WIDTH="199"><tt><font FACE="Courier"><TollPrefixes></font></tt> </td>
<td WIDTH="391">This is a list of three-digit phone address prefixes that require long
distance dialing even though they are in the same area code as the current location. In
order for TAPI to treat these as toll calls, the <tt><font FACE="Courier"><InsertAreaCode></font></tt>
value for this location must be set to 1. </td>
</tr>
<tr>
<td WIDTH="199"><tt><font FACE="Courier"><TonePulseDialing></font></tt> </td>
<td WIDTH="391">This value must be set to 1 or 0. If it is set to 0, tone dialing will be
used to place calls from this location. If it is set to 1, pulse dialing will be used. </td>
</tr>
<tr>
<td WIDTH="199"><tt><font FACE="Courier"><DisableCallWaiting></font></tt> </td>
<td WIDTH="391">This parameter contains the digit(s) that must be dialed to disable call
waiting on the line. This can be used to turn off call waiting during data transmission
calls in order to prevent loss of data during the call. </td>
</tr>
</table>
</center></div>
<h3><a NAME="ModifyingtheLocationValueswiththel">Modifying the Location Values with the <tt><font
SIZE="4" FACE="Courier">lineTranslateDialog</font></tt><font SIZE="4"> Method</font></a></h3>
<p>You can adjust the values for location entries by using the <tt><font FACE="Courier">lineTranslateDialog</font></tt>
method of the TapiLine control. To test this out, run the <tt><font FACE="Courier">TAPIDLG.EXE</font></tt>
program and select the <tt><font FACE="Courier">Telephon.ini</font></tt> button to view
the current settings for the <tt><font FACE="Courier">[Location]</font></tt> section.
Figure 27.3 shows what your screen might look like at this point. </p>
<p><a HREF="f27-3.gif"><b>Figure 27.3 : </b><i>Displaying the TELEPHON.INI file from
TAPIDLG.EXE </i></a></p>
<p>Now close the instance of <tt><font FACE="Courier">NOTEPAD.EXE</font></tt> (be sure not
to save any incidental changes you might have made). Now select the <tt><font
FACE="Courier">Line Translate Dialog</font></tt> option button and press <tt><font
FACE="Courier">Apply</font></tt>. This will bring up the Dialing Properties dialog box.
You are ready to add a new location entry into the <tt><font FACE="Courier">TELEPHON.INI</font></tt>
file. </p>
<p>Press the <tt><font FACE="Courier">New...</font></tt> button and create a new location.
Use the information in Table 27.3 and Figure 27.4 to set the location parameters. </p>
<p><a HREF="f27-4.gif"><b>Figure. 27.4 </b><i>Building a new location </i></a><br>
</p>
<p align="center"><b>Table 27.3. New location parameters.</b> </p>
<div align="center"><center>
<table BORDERCOLOR="#000000" BORDER="1" WIDTH="80%">
<tr>
<td><i>Setting Name</i></td>
<td WIDTH="134"><i>Setting Value</i> </td>
</tr>
<tr>
<td WIDTH="227">Name</td>
<td WIDTH="134">TAPI Book</td>
</tr>
<tr>
<td WIDTH="227">Area Code</td>
<td WIDTH="134">999</td>
</tr>
<tr>
<td WIDTH="227">Local Outside Line Access</td>
<td WIDTH="134">9 </td>
</tr>
<tr>
<td WIDTH="227">Long Distance Outside Line Access</td>
<td WIDTH="134">8 </td>
</tr>
<tr>
<td WIDTH="227">Disable Call Waiting</td>
<td WIDTH="134">1170 </td>
</tr>
<tr>
<td WIDTH="227">Dialing Method</td>
<td WIDTH="134">Tone Dialing </td>
</tr>
</table>
</center></div>
<p>After you enter and save the new location data, press the <tt><font FACE="Courier">Telephon.ini</font></tt>
button to bring up the <tt><font FACE="Courier">TELEPHON.INI</font></tt> file. Find the
new entry in the <tt><font FACE="Courier">[Location]</font></tt> section to see how the
dialog box updated the INI file. Your new entry should look like the one in Listing 27.12.
</p>
<hr>
<blockquote>
<b><p>Listing 27.12. The results of adding a new location to <tt><font FACE="Courier">TELEPHON.INI</font></tt>.
<br>
</b></p>
</blockquote>
<blockquote>
<tt><font FACE="Courier"><p>Location4=6,"TAPI
Book","9","8","999",1,2,0,1,"",0,"1170,"</font></tt>
</p>
</blockquote>
<hr>
<p>You have now used the TAPI dialog boxes to add new locations to your <tt><font
FACE="Courier">TELEPHON.INI</font></tt> file. Next you'll use the same dialog box to add
calling card information for the location. </p>
<h2><a NAME="CreditCardDialingInstructions"><font SIZE="5" COLOR="#FF0000">Credit Card
Dialing Instructions</font></a></h2>
<p>Another very important section in the <tt><font FACE="Courier">TELEPHON.INI</font></tt>
file is the <tt><font FACE="Courier">[Cards]</font></tt> section. This section holds
information on the calling cards defined for this workstation. The first entry in the <tt><font
FACE="Courier">[Cards]</font></tt> section tells TAPI how many calling card definitions
are in the section and the next available entry ID. Each additional entry in the <tt><font
FACE="Courier">[Cards]</font></tt> section represents one set of calling parameters.
Listing 27.13 shows what a typical <tt><font FACE="Courier">[Cards]</font></tt> section of
the <tt><font FACE="Courier">TELEPHON.INI</font></tt> file looks like. </p>
<hr>
<blockquote>
<b><p>Listing 27.13. A typical <tt><font FACE="Courier">[Cards]</font></tt> section.<br>
</b></p>
</blockquote>
<blockquote>
<tt><font FACE="Courier"><p>[Cards]<br>
Cards=23,23<br>
Card0=0,"None (Direct
Dial)","","","","",1 <br>
Card1=1,"AT&T Direct Dial via
10ATT1","","G","102881FG","10288011EFG",1 <br>
Card2=4,"MCI Direct Dial via
102221","","G","102221FG","10222011EFG",1 <br>
Card3=5,"MCI via
102220","","G","102220FG$TH","1022201EFG$TH",1
<br>
Card4=6,"MCI via
1-800-888-8000","","G","18008888000,,,,,,TH,,FG","
<br>
<font FACE="ZAPFDINGBATS">Â</font>18008888000,,,,,,TH,,011EFG",1<br>
Card5=7,"MCI via
1-800-674-0700","","G","18006740700,,,,,,TH,,FG","
<br>
<font FACE="ZAPFDINGBATS">Â</font>18006740700,,,,,,TH,,011EFG",1<br>
Card6=8,"MCI via
1-800-674-7000","","G","18006747000,,,,,,TH,,FG","
<br>
<font FACE="ZAPFDINGBATS">Â</font>18006747000,,,,,,TH,,011EFG",1<br>
Card7=9,"US Sprint Direct Dial via
103331","","G","103331FG","10333011EFG",1 <br>
Card8=10,"US Sprint via
103330","","G","103330FG$TH","1033301EFG$TH",1
<br>
Card9=11,"US Sprint via
1-800-877-8000","","G","18008778000,,,T0FG,,H"," <br>
<font FACE="ZAPFDINGBATS">Â</font>18008778000,,,T01EFG#,H",1<br>
Card10=12,"Calling Card via
0","","G","0FG$TH","01EFG$TH",1 <br>
Card11=13,"Carte France
Telecom","","T3610,H,G#","T3610,H,16,FG#"," <br>
<font FACE="ZAPFDINGBATS">Â</font>T3610,H,19,EFG#",1<br>
Card12=14,"Mercury
(UK)","","0500800800$TH,0FG","0500800800$TH,0FG","
<br>
<font FACE="ZAPFDINGBATS">Â</font>0500800800$TH,0FG",1<br>
Card13=15,"British Telecom
(UK)","","144$H,0FG","144$H,0FG","144$H,010EFG",1
<br>
Card14=16,"CLEAR Communications (New
Zealand)","","0502333$TH,OFG"," <font FACE="ZAPFDINGBATS">Â</font>0502333$TH,0FG","0502333$TH,00EFG",1<br>
Card15=17,"Telecom New
Zealand","","012,0FG?H","012,0FG?H","012,00EFG?H",1
<br>
Card16=18,"Global Card (Taiwan to
USA)","","G","0FG","0080,102880$TFG$H",1 <br>
Card17=19,"Telecom Australia via 1818
(voice)","","1818$TH,FG#","1818$TH,FG#"," <br>
<font FACE="ZAPFDINGBATS">Â</font>1818$TH,0011EFG#",1<br>
Card18=20,"Telecom Australia via 1818
(fax)","","1818$TH,FG#","1818$TH,FG#"," <br>
<font FACE="ZAPFDINGBATS">Â</font>1818$TH,0015EFG#",1<br>
Card19=21,"Optus (Australia) via
1812","","FG","FG","1812@TH,0011EFG",1 <br>
Card20=22,"Optus (Australia) via
008551812","","FG","FG","008551812@TH,0011EFG",1
<br>
Card21=3,"AT&T via
1-800-321-0288","634567890","G","18003210288$TFG$TH","
<br>
<font FACE="ZAPFDINGBATS">Â</font>18003210288$T01EFG$TH",1<br>
Card22=2,"AT&T via
10ATT0","42345678","G","102880FG$TH","1028801EFG$TH",1</font></tt>
</p>
</blockquote>
<hr>
<p>Every calling card entry has seven parts. Listing 27.14 shows the prototype entry for
the <tt><font FACE="Courier">[Cards]</font></tt> section. Table 27.4 shows the <tt><font
FACE="Courier">[Cards]</font></tt> entry parameters and short descriptions of their use. </p>
<hr>
<blockquote>
<b><p>Listing 27.14. The prototype entry for the <tt><font FACE="Courier">[Cards]</font></tt>
section.<br>
</b></p>
</blockquote>
<blockquote>
<tt><font FACE="Courier"><p>Card<index>=<CardID>,"<FriendlyName>","<ScrambledCardNum>","<SameArea>","<LongDistance>",
<br>
<font FACE="ZAPFDINGBATS">Â</font>"<International>",<Hidden></font></tt>
</p>
</blockquote>
<hr>
<p align="center"><b>Table 27.4. The card entry parameters.</b> </p>
<div align="center"><center>
<table BORDERCOLOR="#000000" BORDER="1" WIDTH="80%">
<tr>
<td><i>Parameter Name</i></td>
<td WIDTH="394"><i>Description</i> </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><CardID></font></tt> </td>
<td WIDTH="394">This is the unique card ID for this entry. </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><FriendlyName></font></tt> </td>
<td WIDTH="394">This is an easy-to-read name for the card entry (such as "ATT Calling
Card"). </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><ScrambledCardNum></font></tt> </td>
<td WIDTH="394">This is the calling card number. It is scrambled by the TAPI dialog box in
order to increase security. </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><SameArea></font></tt> </td>
<td WIDTH="394">This is the dialing rule for placing a call within the same area code
using the calling card. </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><LongDistance></font></tt> </td>
<td WIDTH="394">This is the dialing rule for placing a long distance call using the
calling card. </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><International></font></tt> </td>
<td WIDTH="394">This is the dialing rule for placing an international call using the
calling card. </td>
</tr>
<tr>
<td WIDTH="196"><tt><font FACE="Courier"><Hidden></font></tt> </td>
<td WIDTH="394">This value must be 0, 1, 2, or 3. It controls the user's access to the
calling card entry. <br>
1 = User can see and edit the entry<br>
2 = User can see, but not edit the entry<br>
3 = User can edit the entry, but not see it<br>
4 = User can neither see nor edit the entry </td>
</tr>
</table>
</center></div>
<h3><a NAME="UnderstandingtheTAPIDialingRules">Understanding the TAPI Dialing Rules</a></h3>
<p>Several entries in the <tt><font FACE="Courier">[Cards]</font></tt> section contain
dialing rules used by TAPI. These rules are expressed in a series of codes that appear as
part of the dialing string. The dialing string can contain the standard values of
"0" through "9" along with many other values. These values can be
divided into three groups:
<ul>
<li><font COLOR="#000000">Dialable digits or tones</font> </li>
<li><font COLOR="#000000">Pauses or other control values</font> </li>
<li><font COLOR="#000000">Insertion codes</font> </li>
</ul>
<p>Dialable digits or tones include 0 through 9, A through D, and # and *. TAPI recognizes
several pause or control codes and insertion codes. Table 27.5 shows the valid control and
insertion codes for TAPI dialing strings.<br>
</p>
<p align="center"><b>Table 27.5. Valid control and insertion codes for dialing strings.</b>
</p>
<div align="center"><center>
<table BORDERCOLOR="#000000" BORDER="1" WIDTH="80%">
<tr>
<td><p
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -