System Administration Guide: Resource Management and Network Services

UUCP /etc/uucp/Dialcodes File

The /etc/uucp/Dialcodes file enables you to define dial-code abbreviations that can be used in the Phone field in the /etc/uucp/Systems file. You can use the Dialcodes files to provide additional information about a basic phone number that is used by several systems at the same site.

Each entry has the following format:

abbreviation dial-sequence

abbreviation represents the abbreviation that is used in the Phone field of the Systems file and dial-sequence represents the dial sequence that is passed to the dialer when that particular Systems file entry is accessed. The following table shows the correspondences between the two files.

Table 40–6 Correspondences Between Dialcodes and Systems Files

 

Field Names 

 

 

 

 

 

Dialcodes 

Abbreviation

Dial-Sequence 

 

 

 

 

Systems 

System-Name 

Time 

Type 

Speed 

Phone

Chat Script 

The following table contains sample entries in a Dialcodes file.

Table 40–7 Entries in the Dialcodes File

Abbreviation 

Dial-sequence 

NY

1=212

jt

9+847

In the first row, NY is the abbreviation to appear in the Phone field of the Systems file. For example, the Systems file might have the following entry:

NY5551212

When uucico reads NY in the Systems file, it searches the Dialcodes file for NY and obtains the dialing sequence 1=212. This is the dialing sequence needed for any phone call to New York City. This sequence includes the number 1, an “equal sign” (=) meaning pause and wait for a secondary dial tone, and the area code 212. uucico sends this information to the dialer, then returns to the Systems file for the remainder of the phone number, 5551212.

The entry jt 9=847- would work with a Phone field such as jt7867 in the Systems file . When uucico reads the entry that contains jt7867 in the Systems file, it sends the sequence 9=847-7867 to the dialer, if the token in the dialer-token pair is \T.