The file /etc/generic-dial.conf defines dial-out instances in the format shown in the following example.The following table shows the parameters that define a dial-out instance.
Begins the dial-out instance. Optionally specify a name for the particular instance. inPort.name name A label for the incoming port to be used in log messages. 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. inPort.speed speed Connection speed. Default = 9600. inPort.datasize number inPort.stopbits number Gateway or interface address used for the route. outPort.name name A label for the outgoing port to be used in log messages. outPort.pppcall filename 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. outPort.remote_ip IP_address The IP address of a device. The dial-out application opens a TCP socket connection to the device at the specified IP address. outPort.remote_port port Remote TCP port to which the socket connection is made. One of the following options for maintaining the connection:
• permanent – always connected.
• on_demand – connects only when data enters through the serial port. outPort.timeout timeout The inactivity time in seconds after which the connection is dropped. Any value other than zero enables the timeout. 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.
inPort.name InPortinPort.device /dev/ttyM1outPort.name OutPortoutPort.pppcall wirelessoutPort.remote_ip 200.246.93.87outPort.remote_port 7001Perform this procedure as the first step to configure dial-out. It edits the /etc/generic-dial.conf file to configure the following:
• The IP address and the port number of the device to which the TCP socket connection is to be made.
1. Open the etc/generic-dial.conf file for editing.
inPort.name InPortinPort.device /dev/ttyS1outPort.name OutPortoutPort.pppcall wirelessoutPort.remote_ip 192.168.160.10outPort.remote_port 7002outPort.connection on_demand
3.
4. Make sure the device name defined for inPort.device is correct for the port where the modem is installed.
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.