SCO OpenServer Handbook
Chapter 24, Adding modems

Creating a new dial dialer

Creating a new dial dialer

You can customize a dial program by editing the source file (for example, dialHA24.c) and changing modem commands embedded in the C code and then recompiling the source.

The source and a makefile for recompiling dial binaries are included in the directory /usr/lib/uucp. If you have any other kind of modem, you can modify any of the source files and create your own dialer program.


NOTE: You must have installed the SCO OpenServer Development System before you can compile a dial program.

To make a new dial program:

  1. Change directory to /usr/lib/uucp.

  2. Copy the dialer program you wish to modify and make the desired changes. For example, the dialHA24.c setup commands are located in this code segment:
    #define	MDSETUP		"ATQ0E0T&D2&C1S0=0X4S2=043\r"
    
    There are several ``defines'' in the program, each containing a different string, such as MDHANGUP, the command string to send that tells the modem to hang up (ATQ0H). Change each define as appropriate.


    NOTE: The \r is not a modem command, but a string that indicates a carriage return. All modem commands in a dialer program require a carriage return.

  3. Edit the file makefile in the directory /usr/lib/uucp and find the line that reads:
    EXES= dialHA12 dialHA24 dialHA96V dialMUL dialTBIT dialT1500 dialVA3450
    
    Add the name of the dialer program that you wish to use. When this is done, exit the file, saving the changes you made.

  4. Next, enter the following command at your shell prompt:

    make

    When the make command is finished, you have a new dialer program. This can be used in the fifth field of an entry in the Devices file.