Miscellaneous Procedures > Configuring Dial-Out > Configuring the /etc/generic-dial.conf File

Configuring the /etc/generic-dial.conf File
The file /etc/generic-dial.conf defines dial-out instances in the format shown in the following example.
# begin application-type [instanceID]
# end application-type
where instanceID is an optional string to identify a particular instance.
The only supported application-type is dial-out.
The following table shows the parameters that define a dial-out instance.
begin dial-out [instanceID]
Begins the dial-out instance. Optionally specify a name for the particular instance.
The device name for the port to be controlled by the generic_dial protocol. For dial-out through a wireless modem device, either ttyM1 or ttyM2.
Connection speed. Default = 9600.
Name of file from which the pppd reads options, located at /etc/ppp/peers/filename. The default outPort.pppcall filename is wireless, which tells the application to read options from the
/etc/ppp/peers/wireless file. If the administrator chooses to create another file in /etc/ppp/peers, the administrator must change the outPort.pppcall definition to specify the new filename.
The IP address of a device. The dial-out application opens a TCP socket connection to the device at the specified IP address.
One of the following options for maintaining the connection:
permanent – always connected.
on_demand – connects only when data enters through the serial port.
The inactivity time in seconds after which the connection is dropped. Any value other than zero enables the time­out. Default = 0.
appl.retry interval
Specify the time in minutes to wait before reconnecting after a connection failure.Default = 5.
The following screen example shows the tail of an /etc/generic-dial.conf file with a dial-out instance defined. Because the GSM wireless card is installed in slot1, inPort.device is defined as /dev/ttyM1. The outPort.ppppcall is defined as wireless to tell the application to read options from the /etc/ppp/peers/wireless file. outPort.remote_ip defines the IP address of the computer where the remote socket connection is to be made is 200.246.93.87. The port number is defined as 7001. An appl.retry definition is added that changes the number of retries from the default of 5 to 7.
begin dial-out Example
 
inPort.device /dev/ttyM1
 
outPort.remote_ip 200.246.93.87
 
 
To Configure the /etc/generic-dial.conf File
Perform this procedure as the first step to configure dial-out. It edits the /etc/generic-dial.conf file to configure the following:
See the examples in the file for other options that can be set.
1.
Open the etc/generic-dial.conf file for editing.
2.
begin dial-out testApp
 
inPort.device /dev/ttyS1
 
outPort.remote_ip 192.168.160.10
 
3.
Change the instance name, inPort.name, and outPort.name if desired.
4.
Make sure the device name defined for inPort.device is correct for the port where the modem is installed.
The device name for PCMCIA modem cards should be /dev/ttyM1 for slot 1or /dev/ttyM2 for slot 2.
5.
Make sure that the wireless filename defined for outPort.pppcall is correct.
The default file in /etc/ppp/peers is wireless. If you create another peers file with another name, enter it instead.
6.
Define outPort.remote_ip with IP address of the device to which the TCP socket connection is to be made.
7.
Define outPort.remote_port with the port number to which the TCP socket connection is to be made.
8.
9.

Miscellaneous Procedures > Configuring Dial-Out > Configuring the /etc/generic-dial.conf File