 * dial - modem dialer for linux 2.2.x on x86

 * Copyright (C) 1999 by Jaroslav Benkovsky, <pvt.benkovsk@pvtnet.cz>
 * 
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.

 *
 * RCS: $Header: /home/benkovsk/worx/dial/RCS/README,v 1.1 1999/09/10 10:43:22 benkovsk Exp benkovsk $
 *

I have made this program as a quick hack to dial phone numbers
from addressbook, since the old and easy way of 
'echo "ATDP 0123" >/dev/modem' does not work with my 2.2.10
kernel. I do not know, when or why was the change introduced,
but it's reality for me.

The problem is that now the serial port device requires
opening in non-blocking mode and making some ioctls.

Dial homepage:
  http://www.pvtnet.cz/www/pvt.benkovsk/unix/

Please send bugs, bugfixes, corrections and suggestions to
  pvt.benkovsk@pvtnet.cz

Routines check_io, mputs and mgets has been adapted from
minicom by Miquel van Smoorenburg. Files sysdep1.c and sysdep.h
has been grabbed from the same source.

Some command line info:
Usage: dial [options] [command, ...]

commands:
                   WORD    number to dial with ATDP or ATDT
  --raw,       -r  WORD    raw string to send to modem
  --command    -c  WORD    same as raw, but automatically append ^M~ in the end
  --answer     -a  WORD    search for string in output. If string is empty (""),
                             the first available line is read.
  --number     -n  WORD    same as: WORD; -a OK -c ATH
  --wait       -w  NUM     sleep for specified # of seconds
  --timeout    -t  NUM     max # of seconds  to wait for next answer. Default
                             timeout is 5 seconds, dialing sets it to 60.

options:
  --device,    -d  WORD    specify modem device (default /dev/modem)
  --speed,     -s  NUM     specify comm speed (default 57600)
  --pulse-dial             dial using ATDP prefix (default)
  --tone-dial              dial using ATDT prefix
  --no-reset,  -z          do not initialize modem
  --verbose,   -v          be verbose
  --help,      -h          show this help


				Happy dialing :-)
				Jarda Benkovsky
				pvt.benkovsk@pvtnet.cz
